Skip to content

Commit

Permalink
ProviderHub: Swagger doc update (Azure#12680)
Browse files Browse the repository at this point in the history
* RPaaS 2020.11.20 GA specs

* update readme

* prettier fix and add custom words

* spelling

* update SDKs

* go sdk

* update providerhub swagger

* resolve circular dependency

* validations fix

* camel case

* resource type registrations operationIds

* linter

* update readme

* fix validation

* update property

* required request body parameters

* update path

* update response payload

Co-authored-by: Wendy Chang <wendychang@microsoft.com>
Co-authored-by: Wendy Chang <wendychang@gmail.com>
  • Loading branch information
3 people authored and mkarmark committed Jul 20, 2021
1 parent d704f2d commit 2949127
Show file tree
Hide file tree
Showing 19 changed files with 299 additions and 210 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
"subscriptionId": "ab7a8701-f7ef-471a-a2f4-d0ebbf494f77",
"providerNamespace": "Microsoft.Contoso",
"api-version": "2020-11-20",
"BaselineArmManifestLocation": "EastUS2EUAP",
"Environment": "Prod"
"checkinManifestParams": {
"baselineArmManifestLocation": "EastUS2EUAP",
"environment": "Prod"
}
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,12 @@
"providerNamespace": "Microsoft.Contoso",
"rolloutName": "brazilUsShoeBoxTesting",
"api-version": "2020-11-20",
"customRolloutSpecification": {
"properties": {
"specification": {
"Canary": {
"regions": [
"brazilus"
]
}
"properties": {
"specification": {
"canary": {
"regions": [
"brazilus"
]
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,30 @@
"providerNamespace": "Microsoft.Contoso",
"api-version": "2020-11-20",
"notificationRegistrationName": "fooNotificationRegistration",
"NotificationRegistrationProperties": {
"notificationMode": "EventHub",
"messageScope": "RegisteredSubscriptions",
"includedEvents": [
"*/write",
"Microsoft.Contoso/employees/delete"
],
"notificationEndpoints": [
{
"locations": [
"",
"East US"
],
"notificationDestination": "/subscriptions/ac6bcfb5-3dc1-491f-95a6-646b89bf3e88/resourceGroups/mgmtexp-eastus/providers/Microsoft.EventHub/namespaces/unitedstates-mgmtexpint/eventhubs/armlinkednotifications"
},
{
"locations": [
"North Europe"
],
"notificationDestination": "/subscriptions/ac6bcfb5-3dc1-491f-95a6-646b89bf3e88/resourceGroups/mgmtexp-northeurope/providers/Microsoft.EventHub/namespaces/europe-mgmtexpint/eventhubs/armlinkednotifications"
}
]
"properties": {
"properties": {
"notificationMode": "EventHub",
"messageScope": "RegisteredSubscriptions",
"includedEvents": [
"*/write",
"Microsoft.Contoso/employees/delete"
],
"notificationEndpoints": [
{
"locations": [
"",
"East US"
],
"notificationDestination": "/subscriptions/ac6bcfb5-3dc1-491f-95a6-646b89bf3e88/resourceGroups/mgmtexp-eastus/providers/Microsoft.EventHub/namespaces/unitedstates-mgmtexpint/eventhubs/armlinkednotifications"
},
{
"locations": [
"North Europe"
],
"notificationDestination": "/subscriptions/ac6bcfb5-3dc1-491f-95a6-646b89bf3e88/resourceGroups/mgmtexp-northeurope/providers/Microsoft.EventHub/namespaces/europe-mgmtexpint/eventhubs/armlinkednotifications"
}
]
}
}
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
"subscriptionId": "ab7a8701-f7ef-471a-a2f4-d0ebbf494f77",
"providerNamespace": "Microsoft.Contoso",
"api-version": "2020-11-20",
"OperationsContent": {
"Contents": [
"OperationsPutContent": {
"contents": [
{
"Name": "Microsoft.Contoso/Employees/Read",
"Display": {
"Provider": "Microsoft.Contoso",
"Resource": "Employees",
"Operation": "Gets/List employee resources",
"Description": "Read employees"
"name": "Microsoft.Contoso/Employees/Read",
"display": {
"provider": "Microsoft.Contoso",
"resource": "Employees",
"operation": "Gets/List employee resources",
"description": "Read employees"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"subscriptionId": "ab7a8701-f7ef-471a-a2f4-d0ebbf494f77",
"providerNamespace": "Microsoft.Contoso",
"api-version": "2020-11-20",
"ProviderRegistration": {
"properties": {
"properties": {
"providerType": "Internal",
"providerVersion": "2.0",
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"providerNamespace": "Microsoft.Contoso",
"resourceType": "employees",
"api-version": "2020-11-20",
"ResourceTypeRegistration": {
"properties": {
"properties": {
"routingType": "Default",
"regionality": "regional",
"regionality": "Regional",
"endpoints": [
{
"apiVersions": [
Expand All @@ -18,7 +18,7 @@
"East US",
"North Europe"
],
"requiredfeatures": [
"requiredFeatures": [
"<feature flag>"
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,24 @@
"api-version": "2020-11-20",
"resourceType": "testResourceType",
"sku": "testSku",
"SkuResource": {
"properties": {
"skuSettings": [
{
"name": "freeSku",
"tier": "Tier1",
"kind": "Standard"
},
{
"name": "premiumSku",
"tier": "Tier2",
"kind": "Premium",
"costs": [
{
"meterId": "xxx"
}
]
}
]
}
"properties": {
"skuSettings": [
{
"name": "freeSku",
"tier": "Tier1",
"kind": "Standard"
},
{
"name": "premiumSku",
"tier": "Tier2",
"kind": "Premium",
"costs": [
{
"meterId": "xxx"
}
]
}
]
}
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,24 @@
"resourceType": "testResourceType",
"sku": "testSku",
"nestedResourceTypeFirst": "nestedResourceTypeFirst",
"SkuResource": {
"properties": {
"skuSettings": [
{
"name": "freeSku",
"tier": "Tier1",
"kind": "Standard"
},
{
"name": "premiumSku",
"tier": "Tier2",
"kind": "Premium",
"costs": [
{
"meterId": "xxx"
}
]
}
]
}
"properties": {
"skuSettings": [
{
"name": "freeSku",
"tier": "Tier1",
"kind": "Standard"
},
{
"name": "premiumSku",
"tier": "Tier2",
"kind": "Premium",
"costs": [
{
"meterId": "xxx"
}
]
}
]
}
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,24 @@
"sku": "testSku",
"nestedResourceTypeFirst": "nestedResourceTypeFirst",
"nestedResourceTypeSecond": "nestedResourceTypeSecond",
"SkuResource": {
"properties": {
"skuSettings": [
{
"name": "freeSku",
"tier": "Tier1",
"kind": "Standard"
},
{
"name": "premiumSku",
"tier": "Tier2",
"kind": "Premium",
"costs": [
{
"meterId": "xxx"
}
]
}
]
}
"properties": {
"skuSettings": [
{
"name": "freeSku",
"tier": "Tier1",
"kind": "Standard"
},
{
"name": "premiumSku",
"tier": "Tier2",
"kind": "Premium",
"costs": [
{
"meterId": "xxx"
}
]
}
]
}
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,24 @@
"nestedResourceTypeFirst": "nestedResourceTypeFirst",
"nestedResourceTypeSecond": "nestedResourceTypeSecond",
"nestedResourceTypeThird": "nestedResourceTypeThird",
"SkuResource": {
"properties": {
"skuSettings": [
{
"name": "freeSku",
"tier": "Tier1",
"kind": "Standard"
},
{
"name": "premiumSku",
"tier": "Tier2",
"kind": "Premium",
"costs": [
{
"meterId": "xxx"
}
]
}
]
}
"properties": {
"skuSettings": [
{
"name": "freeSku",
"tier": "Tier1",
"kind": "Standard"
},
{
"name": "premiumSku",
"tier": "Tier2",
"kind": "Premium",
"costs": [
{
"meterId": "xxx"
}
]
}
]
}
},
"responses": {
Expand Down
Loading

0 comments on commit 2949127

Please sign in to comment.