Skip to content

Commit

Permalink
chore: jsonfmt servicebus (#6247)
Browse files Browse the repository at this point in the history
* chore: jsonfmt servicebus

Ran `jsonfmt -w "specification/servicebus/**/*.json"`

* fix: Remove "description" from example result
  • Loading branch information
nschonni authored and sergey-shandar committed Jun 12, 2019
1 parent c7a6b47 commit 8024b7e
Show file tree
Hide file tree
Showing 123 changed files with 837 additions and 467 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"ipFilterRuleName": "sdk-IPFilterRules-7337"
},
"responses": {
"200": { },
"204": { }
"200": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"resourceGroupName": "ResourceGroup",
"api-version": "2018-01-01-preview",
"subscriptionId": "Subscription",
"ipFilterRuleName": "sdk-IPFilterRules-7337",
"ipFilterRuleName": "sdk-IPFilterRules-7337",
"parameters": {
"properties": {
"ipMask": "13.78.143.246/32",
Expand All @@ -27,4 +27,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@
},
"202": {}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
"202": {},
"204": {}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@
},
"202": {}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"virtualNetworkRuleName": "sdk-VirtualNetworkRules-9191"
},
"responses": {
"200": { },
"204": { }
"200": {},
"204": {}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,21 @@
"defaultAction": "Deny",
"virtualNetworkRules": [
{
"subnet": { "id": "/subscriptions/854d368f-1828-428f-8f3c-f2affa9b2f7d/resourcegroups/alitest/providers/Microsoft.Network/virtualNetworks/myvn/subnets/subnet2" },
"subnet": {
"id": "/subscriptions/854d368f-1828-428f-8f3c-f2affa9b2f7d/resourcegroups/alitest/providers/Microsoft.Network/virtualNetworks/myvn/subnets/subnet2"
},
"ignoreMissingVnetServiceEndpoint": true
},
{
"subnet": { "id": "/subscriptions/854d368f-1828-428f-8f3c-f2affa9b2f7d/resourcegroups/alitest/providers/Microsoft.Network/virtualNetworks/myvn/subnets/subnet3" },
"subnet": {
"id": "/subscriptions/854d368f-1828-428f-8f3c-f2affa9b2f7d/resourcegroups/alitest/providers/Microsoft.Network/virtualNetworks/myvn/subnets/subnet3"
},
"ignoreMissingVnetServiceEndpoint": false
},
{
"subnet": { "id": "/subscriptions/854d368f-1828-428f-8f3c-f2affa9b2f7d/resourcegroups/alitest/providers/Microsoft.Network/virtualNetworks/myvn/subnets/subnet6" },
"subnet": {
"id": "/subscriptions/854d368f-1828-428f-8f3c-f2affa9b2f7d/resourcegroups/alitest/providers/Microsoft.Network/virtualNetworks/myvn/subnets/subnet6"
},
"ignoreMissingVnetServiceEndpoint": false
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,21 @@
"defaultAction": "Deny",
"virtualNetworkRules": [
{
"subnet": { "id": "/subscriptions/subscriptionid/resourcegroups/alitest/providers/Microsoft.Network/virtualNetworks/myvn/subnets/subnet2" },
"subnet": {
"id": "/subscriptions/subscriptionid/resourcegroups/alitest/providers/Microsoft.Network/virtualNetworks/myvn/subnets/subnet2"
},
"ignoreMissingVnetServiceEndpoint": true
},
{
"subnet": { "id": "/subscriptions/subscriptionid/resourcegroups/alitest/providers/Microsoft.Network/virtualNetworks/myvn/subnets/subnet3" },
"subnet": {
"id": "/subscriptions/subscriptionid/resourcegroups/alitest/providers/Microsoft.Network/virtualNetworks/myvn/subnets/subnet3"
},
"ignoreMissingVnetServiceEndpoint": false
},
{
"subnet": { "id": "/subscriptions/subscriptionid/resourcegroups/alitest/providers/Microsoft.Network/virtualNetworks/myvn/subnets/subnet6" },
"subnet": {
"id": "/subscriptions/subscriptionid/resourcegroups/alitest/providers/Microsoft.Network/virtualNetworks/myvn/subnets/subnet6"
},
"ignoreMissingVnetServiceEndpoint": false
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"operation": "Get namespace availability."
}
},
{
{
"name": "Microsoft.ServiceBus/register/action",
"display": {
"provider": "Microsoft Azure ServiceBus",
Expand Down Expand Up @@ -298,4 +298,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@
],
"operationId": "Operations_List",
"x-ms-examples": {
"OperationsList": { "$ref": "./examples/SBOperations_List.json" }
"OperationsList": {
"$ref": "./examples/SBOperations_List.json"
}
},
"description": "Lists all of the available ServiceBus REST API operations.",
"parameters": [
Expand Down Expand Up @@ -75,7 +77,9 @@
],
"operationId": "Namespaces_List",
"x-ms-examples": {
"NameSpaceList": { "$ref": "./examples/NameSpaces/SBNameSpaceList.json" }
"NameSpaceList": {
"$ref": "./examples/NameSpaces/SBNameSpaceList.json"
}
},
"description": "Gets all the available namespaces within the subscription, irrespective of the resource groups.",
"externalDocs": {
Expand Down Expand Up @@ -115,7 +119,9 @@
],
"operationId": "Namespaces_ListByResourceGroup",
"x-ms-examples": {
"NameSpaceListByResourceGroup": { "$ref": "./examples/NameSpaces/SBNameSpaceListByResourceGroup.json" }
"NameSpaceListByResourceGroup": {
"$ref": "./examples/NameSpaces/SBNameSpaceListByResourceGroup.json"
}
},
"description": "Gets the available namespaces within a resource group.",
"externalDocs": {
Expand Down Expand Up @@ -158,7 +164,9 @@
],
"operationId": "Namespaces_CreateOrUpdate",
"x-ms-examples": {
"NameSpaceCreate": { "$ref": "./examples/NameSpaces/SBNameSpaceCreate.json" }
"NameSpaceCreate": {
"$ref": "./examples/NameSpaces/SBNameSpaceCreate.json"
}
},
"description": "Creates or updates a service namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent.",
"externalDocs": {
Expand Down Expand Up @@ -222,7 +230,9 @@
],
"operationId": "Namespaces_Delete",
"x-ms-examples": {
"NameSpaceDelete": { "$ref": "./examples/NameSpaces/SBNameSpaceDelete.json" }
"NameSpaceDelete": {
"$ref": "./examples/NameSpaces/SBNameSpaceDelete.json"
}
},
"description": "Deletes an existing namespace. This operation also removes all associated resources under the namespace.",
"externalDocs": {
Expand Down Expand Up @@ -267,7 +277,9 @@
],
"operationId": "Namespaces_Get",
"x-ms-examples": {
"NameSpaceGet": { "$ref": "./examples/NameSpaces/SBNameSpaceGet.json" }
"NameSpaceGet": {
"$ref": "./examples/NameSpaces/SBNameSpaceGet.json"
}
},
"description": "Gets a description for the specified namespace.",
"externalDocs": {
Expand Down Expand Up @@ -308,7 +320,9 @@
],
"operationId": "Namespaces_Update",
"x-ms-examples": {
"NameSpaceUpdate": { "$ref": "./examples/NameSpaces/SBNameSpaceUpdate.json" }
"NameSpaceUpdate": {
"$ref": "./examples/NameSpaces/SBNameSpaceUpdate.json"
}
},
"description": "Updates a service namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent.",
"parameters": [
Expand Down Expand Up @@ -1349,4 +1363,4 @@
"description": "The Virtual Network Rule name."
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.ServiceBus/CheckNameSpaceAvailability": {
"/subscriptions/{subscriptionId}/providers/Microsoft.ServiceBus/CheckNameSpaceAvailability": {
"post": {
"tags": [
"Namespaces"
Expand Down Expand Up @@ -126,7 +126,7 @@
}
}
}
},
},
"/subscriptions/{subscriptionId}/providers/Microsoft.ServiceBus/namespaces": {
"get": {
"tags": [
Expand Down Expand Up @@ -1946,7 +1946,7 @@
],
"description": "AuthorizationRule properties."
},
"SharedAccessAuthorizationRuleGetResource": {
"SharedAccessAuthorizationRuleGetResource": {
"properties": {
"properties": {
"x-ms-client-flatten": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"api-version": "2016-07-01",
"subscriptionId": "e2f361f0-3b27-4503-a9cc-21cfba380093",
"parameters": {
"location": "West US",
"location": "West US",
"properties": {
"rights": [
"Listen",
Expand All @@ -21,8 +21,13 @@
"id": "/subscriptions/e2f361f0-3b27-4503-a9cc-21cfba380093/resourceGroups/Default-ServiceBus-WestUS/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace8341/AuthorizationRules/sdk-Authrules9875",
"name": "sdk-Authrules9875",
"type": "Microsoft.ServiceBus/AuthorizationRules",
"properties": { "rights": [ "Listen", "Send" ] }
"properties": {
"rights": [
"Listen",
"Send"
]
}
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
"namespaceName": "sdk-Namespace8341",
"authorizationRuleName": "sdk-RelayAuthRules-01",
"resourceGroupName": "Default-ServiceBus-WestUS",
"api-version": "2015-08-01",
"api-version": "2015-08-01",
"subscriptionId": "e2f361f0-3b27-4503-a9cc-21cfba380093"
},
"responses": {
"200": {},
"204": {}
"204": {}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"parameters": {
"namespaceName": "sdk-Namespace8341",
"authorizationRuleName": "sdk-Authrules9875",
"authorizationRuleName": "sdk-Authrules9875",
"resourceGroupName": "sdk-Namespace8341",
"api-version": "2015-08-01",
"subscriptionId": "e2f361f0-3b27-4503-a9cc-21cfba380093"
Expand All @@ -12,8 +12,13 @@
"id": "/subscriptions/e2f361f0-3b27-4503-a9cc-21cfba380093/resourceGroups/Default-ServiceBus-WestUS/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace8341/AuthorizationRules/sdk-Authrules9875",
"name": "sdk-Authrules9875",
"type": "Microsoft.ServiceBus/AuthorizationRules",
"properties": { "rights": [ "Listen", "Send" ] }
"properties": {
"rights": [
"Listen",
"Send"
]
}
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"resourceGroupName": "Default-ServiceBus-WestUS",
"api-version": "2015-08-01",
"subscriptionId": "e2f361f0-3b27-4503-a9cc-21cfba380093"
},
},
"responses": {
"200": {
"body": {
Expand All @@ -13,17 +13,28 @@
"id": "/subscriptions/e2f361f0-3b27-4503-a9cc-21cfba380093/resourceGroups/Default-ServiceBus-WestUS/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace8341/AuthorizationRules/RootManageSharedAccessKey",
"name": "RootManageSharedAccessKey",
"type": "Microsoft.ServiceBus/AuthorizationRules",
"properties": { "rights": [ "Listen", "Manage", "Send" ] }
"properties": {
"rights": [
"Listen",
"Manage",
"Send"
]
}
},
{
"id": "/subscriptions/e2f361f0-3b27-4503-a9cc-21cfba380093/resourceGroups/Default-ServiceBus-WestUS/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace8341/AuthorizationRules/sdk-Authrules9875",
"name": "sdk-Authrules9875",
"type": "Microsoft.ServiceBus/AuthorizationRules",
"properties": { "rights": [ "Listen", "Send" ] }
"properties": {
"rights": [
"Listen",
"Send"
]
}
}
],
"nextLink": ""
}
}
}
}
}
Loading

0 comments on commit 8024b7e

Please sign in to comment.