Skip to content

Commit

Permalink
[Hub Generated] Review request for Microsoft.AzureStack to add versio…
Browse files Browse the repository at this point in the history
…n preview/2020-06-01-preview (Azure#14472)

* Add ListBySubscription to Registration resource

* Add ListBySubscription to Registration resources in stable versions

This has been supported but it was not listed in the spec

* Make example names unique
  • Loading branch information
bbridges authored and mkarmark committed Jul 20, 2021
1 parent 5f7a0f8 commit 6aad10e
Show file tree
Hide file tree
Showing 6 changed files with 192 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,45 @@
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.AzureStack/registrations": {
"get": {
"x-ms-examples": {
"Returns a list of all registrations under current subscription.": {
"$ref": "examples/Registration/ListBySubscription.json"
}
},
"tags": [
"Registrations"
],
"description": "Returns a list of all registrations under current subscription.",
"operationId": "Registrations_ListBySubscription",
"parameters": [
{
"$ref": "AzureStack.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "AzureStack.json#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/RegistrationList"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "AzureStack.json#/definitions/ErrorResponse"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}": {
"get": {
"x-ms-examples": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"parameters": {
"subscriptionId": "dd8597b4-8739-4467-8b10-f8679f62bfbf",
"api-version": "2020-06-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/dd8597b4-8739-4467-8b10-f8679f62bfbf/resourceGroups/azurestack/providers/Microsoft.AzureStack/registrations/testregistration",
"name": "testregistration",
"type": "Microsoft.AzureStack/registrations",
"location": "global",
"etag": "0d00527e-0000-0000-0000-5a81ebdf0000",
"properties": {
"objectId": "9e9704ab-561a-4498-ac60-64b2314456ee",
"billingModel": "Development"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,45 @@
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.AzureStack/registrations": {
"get": {
"x-ms-examples": {
"Returns a list of all registrations under current subscription.": {
"$ref": "examples/Registration/ListBySubscription.json"
}
},
"tags": [
"Registrations"
],
"description": "Returns a list of all registrations under current subscription.",
"operationId": "Registrations_ListBySubscription",
"parameters": [
{
"$ref": "AzureStack.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "AzureStack.json#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/RegistrationList"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}": {
"get": {
"x-ms-examples": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"parameters": {
"subscriptionId": "dd8597b4-8739-4467-8b10-f8679f62bfbf",
"api-version": "2016-01-01"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/dd8597b4-8739-4467-8b10-f8679f62bfbf/resourceGroups/azurestack/providers/Microsoft.AzureStack/registrations/testregistration",
"name": "testregistration",
"type": "Microsoft.AzureStack/registrations",
"location": "global",
"etag": "0d00527e-0000-0000-0000-5a81ebdf0000",
"properties": {
"objectId": "9e9704ab-561a-4498-ac60-64b2314456ee",
"billingModel": "Development"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,45 @@
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.AzureStack/registrations": {
"get": {
"x-ms-examples": {
"Returns a list of all registrations under current subscription.": {
"$ref": "examples/Registration/ListBySubscription.json"
}
},
"tags": [
"Registrations"
],
"description": "Returns a list of all registrations under current subscription.",
"operationId": "Registrations_ListBySubscription",
"parameters": [
{
"$ref": "AzureStack.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "AzureStack.json#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/RegistrationList"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "AzureStack.json#/definitions/ErrorResponse"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}": {
"get": {
"x-ms-examples": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"parameters": {
"subscriptionId": "dd8597b4-8739-4467-8b10-f8679f62bfbf",
"api-version": "2017-06-01"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/dd8597b4-8739-4467-8b10-f8679f62bfbf/resourceGroups/azurestack/providers/Microsoft.AzureStack/registrations/testregistration",
"name": "testregistration",
"type": "Microsoft.AzureStack/registrations",
"location": "global",
"etag": "0d00527e-0000-0000-0000-5a81ebdf0000",
"properties": {
"objectId": "9e9704ab-561a-4498-ac60-64b2314456ee",
"billingModel": "Development"
}
}
]
}
}
}
}

0 comments on commit 6aad10e

Please sign in to comment.