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

[Test] New API version for Microsoft.Addons preview/2020-03-01 #3693

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"parameters": {
"api-version": "2020-03-01",
"subscriptionId": "d18d258f-bdba-4de1-8b51-e79d6c181d5e"
},
"responses": {
"200": {
"body": [
{
"oneTimeCharge": "onReenabled",
"supportPlanType": "standard",
"enabled": false
},
{
"oneTimeCharge": "onReenabled",
"supportPlanType": "advanced",
"enabled": false
},
{
"oneTimeCharge": "no",
"supportPlanType": "essential",
"enabled": true
}
]
},
"404": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"parameters": {
"api-version": "2020-03-01"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "Microsoft.Addons/supportProviders/supportPlanTypes/read",
"display": {
"provider": "Microsoft Addons",
"resource": "supportPlanTypes",
"operation": "Get Canonical support plan state",
"description": "Get the specified Canonical support plan state."
}
},
{
"name": "Microsoft.Addons/supportProviders/supportPlanTypes/write",
"display": {
"provider": "Microsoft Addons",
"resource": "supportPlanTypes",
"operation": "Adds a Canonical support plan.",
"description": "Adds the Canonical support plan type specified."
}
},
{
"name": "Microsoft.Addons/supportProviders/supportPlanTypes/delete",
"display": {
"provider": "Microsoft Addons",
"resource": "supportPlanTypes",
"operation": "Removes the Canonical support plan",
"description": "Removes the specified Canonical support plan"
}
},
{
"name": "Microsoft.Addons/supportProviders/canonical/supportPlanTypes/get",
"display": {
"provider": "Microsoft Addons",
"resource": "supportProviders",
"operation": "Gets available Canonical support plan types.",
"description": "Gets the available Canonical support plan types as well as some extra metadata on their enabled status."
}
},
{
"name": "Microsoft.Addons/register/action",
"display": {
"provider": "Microsoft Addons",
"resource": "register",
"operation": "Register for Microsoft.Addons",
"description": "Register the specified subscription with Microsoft.Addons"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"parameters": {
"api-version": "2020-03-01",
"subscriptionId": "d18d258f-bdba-4de1-8b51-e79d6c181d5e",
"providerName": "Canonical",
"planTypeName": "Standard"
},
"responses": {
"200": {
"body": {
"properties": {
"provisioningState": "Succeeded"
},
"id": "subscriptions/d18d258f-bdba-4de1-8b51-e79d6c181d5e/providers/Microsoft.Addons/supportProviders/canonical/supportPlanTypes/Standard",
"name": "Standard",
"type": "Microsoft.Addons/supportProvider"
}
},
"201": {
"body": {
"properties": {
"provisioningState": "Purchasing"
},
"id": "subscriptions/d18d258f-bdba-4de1-8b51-e79d6c181d5e/providers/Microsoft.Addons/supportProviders/canonical/supportPlanTypes/Standard",
"name": "Standard",
"type": "Microsoft.Addons/supportProvider"
}
},
"404": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"parameters": {
"api-version": "2020-03-01",
"subscriptionId": "d18d258f-bdba-4de1-8b51-e79d6c181d5e",
"providerName": "Canonical",
"planTypeName": "Standard"
},
"responses": {
"202": {
"headers": {
"location": "https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Addons/supportProviders/{providerName}/supportPlanTypes/{planTypeName}?api-version=2020-03-01"
},
"body": {
"properties": {
"provisioningState": "Cancelling"
},
"id": "subscriptions/d18d258f-bdba-4de1-8b51-e79d6c181d5e/providers/Microsoft.Addons/supportProviders/canonical/supportPlanTypes/Standard",
"name": "Standard",
"type": "Microsoft.Addons/supportProvider"
}
},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"parameters": {
"api-version": "2020-03-01",
"subscriptionId": "d18d258f-bdba-4de1-8b51-e79d6c181d5e",
"providerName": "Canonical",
"planTypeName": "Standard"
},
"responses": {
"200": {
"body": {
"properties": {
"provisioningState": "Succeeded"
},
"id": "subscriptions/d18d258f-bdba-4de1-8b51-e79d6c181d5e/providers/Microsoft.Addons/supportProviders/canonical/supportPlanTypes/Standard",
"name": "Standard",
"type": "Microsoft.Addons/supportProvider"
}
},
"404": {}
}
}
10 changes: 10 additions & 0 deletions specification/addons/resource-manager/readme.go.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,20 @@ azure-arm: true

``` yaml $(go) && $(multiapi)
batch:
- tag: package-2020-03
- tag: package-2018-03
- tag: package-2017-05
```

### Tag: package-2020-03 and go

These settings apply only when `--tag=package-2020-03 --go` is specified on the command line.
Please also specify `--go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>`.

``` yaml $(tag)=='package-2020-03' && $(go)
output-folder: $(go-sdk-folder)/services/preview/addons/mgmt/2020-03-01/addons
```

### Tag: package-2018-03 and go

These settings apply only when `--tag=package-2018-03 --go` is specified on the command line.
Expand Down
25 changes: 24 additions & 1 deletion specification/addons/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,16 @@ These are the global settings for the Addons API.

``` yaml
openapi-type: arm
tag: package-2018-03
tag: package-2020-03
```

### Tag: package-2020-03

These settings apply only when `--tag=package-2020-03` is specified on the command line.

``` yaml $(tag) == 'package-2020-03'
input-file:
- Microsoft.Addons/preview/2020-03-01/addons-swagger.json
```

### Tag: package-2018-03
Expand Down Expand Up @@ -127,10 +136,24 @@ output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-addons

``` yaml $(java) && $(multiapi)
batch:
- tag: package-2020-03
- tag: package-2018-03
- tag: package-2017-05
```

### Tag: package-2020-03 and java

These settings apply only when `--tag=package-2020-03 --java` is specified on the command line.
Please also specify `--azure-libraries-for-java=<path to the root directory of your azure-sdk-for-java clone>`.

``` yaml $(tag) == 'package-2020-03' && $(java) && $(multiapi)
java:
namespace: com.microsoft.azure.management.addons.v2020_03_01
output-folder: $(azure-libraries-for-java-folder)/sdk/addons/mgmt-v2020_03_01
regenerate-manager: true
generate-interface: true
```

### Tag: package-2018-03 and java

These settings apply only when `--tag=package-2018-03 --java` is specified on the command line.
Expand Down