Skip to content
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
Expand Up @@ -327,7 +327,7 @@
"200": {
"description": "The ADP account was successfully deleted."
},
"201": {
"202": {
"description": "The ADP account will be deleted asynchronously."
},
"204": {
Expand Down Expand Up @@ -580,7 +580,7 @@
"200": {
"description": "The Data Pool was successfully deleted."
},
"201": {
"202": {
"description": "The Data Pool will be deleted asynchronously."
},
"204": {
Expand Down Expand Up @@ -674,12 +674,13 @@
"Succeeded",
"Failed",
"Canceled",
"Accepted",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this enum marked as "modelAsString": false?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I followed the same pattern for ProvisioningState from other RPs. Why do you think it should it be true? I would like an enum to be generated in the SDK.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Closed enums (modelAsString: false) have proven to be version intolerant (over time). If you can commit to never, ever add a new provisioning state value, then this is ok.

"Provisioning",
"Deleting"
],
"x-ms-enum": {
"name": "ProvisioningState",
"modelAsString": false
"modelAsString": true
}
}
}
Expand Down Expand Up @@ -749,12 +750,13 @@
"Succeeded",
"Failed",
"Canceled",
"Accepted",
"Provisioning",
"Deleting"
],
"x-ms-enum": {
"name": "ProvisioningState",
"modelAsString": false
"modelAsString": true
}
},
"locations": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"responses": {
"200": {},
"201": {},
"202": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"responses": {
"200": {},
"201": {},
"202": {},
"204": {}
}
}
24 changes: 24 additions & 0 deletions specification/adp/resource-manager/readme.azureresourceschema.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
## AzureResourceSchema

These settings apply only when `--azureresourceschema` is specified on the command line.

### AzureResourceSchema multi-api

``` yaml $(azureresourceschema) && $(multiapi)
batch:
- tag: schema-adp-2020-07-01-preview

```

Please also specify `--azureresourceschema-folder=<path to the root directory of your azure-resource-manager-schemas clone>`.

### Tag: schema-adp-2020-07-01-preview and azureresourceschema

``` yaml $(tag) == 'schema-adp-2020-07-01-preview' && $(azureresourceschema)
output-folder: $(azureresourceschema-folder)/schemas

# all the input files in this apiVersion
input-file:
- Microsoft.AutonomousDevelopmentPlatform/preview/2020-07-01-preview/adp.json

```
7 changes: 7 additions & 0 deletions specification/adp/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ swagger-to-sdk:
after_scripts:
- bundle install && rake arm:regen_all_profiles['azure_mgmt_adp']
- repo: azure-cli-extensions
- repo: azure-resource-manager-schemas
after_scripts:
- node sdkauto_afterscript.js adp/resource-manager
```

## Go
Expand All @@ -79,3 +82,7 @@ See configuration in [readme.typescript.md](./readme.typescript.md)
## CSharp

See configuration in [readme.csharp.md](./readme.csharp.md)

## AzureResourceSchema

See configuration in [readme.azureresourceschema.md](./readme.azureresourceschema.md)