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

[Hub Generated] Review request for Microsoft.ChangeAnalysis to add version preview/2020-04-01-preview #8981

Merged
Show file tree
Hide file tree
Changes from 30 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
87707ff
New Readme Config File
alexaloni Apr 8, 2020
b88e44e
New Go Language Readme Config File
alexaloni Apr 8, 2020
2900661
New Typescript Language Readme Config File
alexaloni Apr 8, 2020
26de02c
New Python Language Readme Config File
alexaloni Apr 8, 2020
f317100
New C# Language Readme Config File
alexaloni Apr 8, 2020
486c882
New Ruby Language Readme Config File
alexaloni Apr 8, 2020
3936148
New Swagger Spec File
alexaloni Apr 8, 2020
15a3efb
New Swagger Example Spec File
alexaloni Apr 8, 2020
0f97011
add swagger spec second time
Apr 8, 2020
ed86b9f
trying to fix violations #1
Apr 8, 2020
b497be3
adding descriptions and schema tag for default error
Apr 9, 2020
4a15aaf
removing required location element from proxy resource.
Apr 9, 2020
eaba2d3
adding prettifier fixed
Apr 9, 2020
5a07e88
update 3
Apr 14, 2020
bc860cf
update 4
Apr 14, 2020
b41c5a9
update 5
Apr 14, 2020
814485d
update 6
Apr 15, 2020
2cc5e95
update 7
Apr 15, 2020
7cc6dc6
update 8
Apr 15, 2020
e3eb646
update 9
Apr 15, 2020
0fa3c15
update 10
Apr 15, 2020
7361345
update 11
Apr 15, 2020
a9d5d8c
update 12
Apr 15, 2020
c94d45d
update 13
Apr 15, 2020
9c00be1
update 14
Apr 15, 2020
90be23b
update 15
Apr 15, 2020
cc8f039
update 16
Apr 15, 2020
a444027
update 17
Apr 15, 2020
741fe10
update 18
Apr 15, 2020
4a15edc
Adds suppression to readme
alexaloni Apr 15, 2020
4c69ff2
updating comments of few models
Apr 19, 2020
8acbff5
changing description of few elements
May 7, 2020
f596cc2
Merge branch 'v2-dev-changeanalysis-Microsoft.ChangeAnalysis-2020-04-…
May 7, 2020
8a8a8db
prettier run:
May 8, 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

Large diffs are not rendered by default.

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"
}
}
}
}
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"
}
}
}
}
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": {}
}
}
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"
}
}
}
}
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"
}
}
}
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"
}
}
}
}
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 specification/changeanalysis/resource-manager/readme.csharp.md
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 specification/changeanalysis/resource-manager/readme.go.md
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 specification/changeanalysis/resource-manager/readme.md
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 specification/changeanalysis/resource-manager/readme.python.md
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
```
Loading