Skip to content

Commit

Permalink
update azsadmin specification (Azure#13283)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOnlyWei authored May 17, 2021
1 parent 8a59901 commit f15b4f3
Show file tree
Hide file tree
Showing 28 changed files with 544 additions and 132 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"/providers/Microsoft.AzureBridge.Admin/operations": {
"get": {
"x-ms-examples": {
"Returns the list of support REST operations.": {
"Returns the list of supported REST operations.": {
"$ref": "./examples/Operations/List.json"
}
},
Expand Down Expand Up @@ -85,15 +85,26 @@
},
"Operation": {
"description": "Describes the supported REST operation.",
"type": "object",
"properties": {
"display": {
"description": "Contains the localized display information for this particular operation / action.",
"$ref": "#/definitions/Display",
"readOnly": true
},
"isDataAction": {
"description": "Whether the operation applies to data-plane. This is \"true\" for data-plane operations and \"false\" for ARM/control-plane operations.",
"type": "boolean",
"readOnly": true
},
"name": {
"description": "The name of the operation being performed on this particular object. This name should match the name that appears in RBAC or the event service.",
"type": "string",
"readOnly": true
},
"display": {
"description": "Contains the localized display information for this particular operation / action.",
"$ref": "#/definitions/Display",
"origin": {
"description": "Origin for the operation.",
"type": "string",
"readOnly": true
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@
"schema": {
"$ref": "#/definitions/OperationList"
}
},
"default": {
"description": "Default Response.",
"schema": {
"$ref": "#/definitions/ExtendedErrorInfo"
}
}
},
"x-ms-pageable": {
Expand Down Expand Up @@ -82,6 +88,12 @@
}
],
"responses": {
"default": {
"description": "Default Response.",
"schema": {
"$ref": "#/definitions/ExtendedErrorInfo"
}
},
"200": {
"description": "OK",
"schema": {
Expand All @@ -105,7 +117,7 @@
"tags": [
"Commerce"
],
"operationId": "UpdateEncryption",
"operationId": "Commerce_UpdateEncryption",
"parameters": [
{
"$ref": "#/parameters/SubscriptionIdParameter"
Expand All @@ -115,6 +127,12 @@
}
],
"responses": {
"default": {
"description": "Default Response.",
"schema": {
"$ref": "#/definitions/ExtendedErrorInfo"
}
},
"200": {
"description": "OK"
}
Expand Down Expand Up @@ -225,35 +243,52 @@
},
"Operation": {
"description": "Describes the supported REST operation.",
"type": "object",
"properties": {
"display": {
"description": "Contains the localized display information for this particular operation or action.",
"$ref": "#/definitions/Display",
"readOnly": true
},
"isDataAction": {
"description": "Whether the operation applies to data-plane. This is \"true\" for data-plane operations and \"false\" for ARM/control-plane operations.",
"type": "boolean",
"readOnly": true
},
"name": {
"description": "The name of the operation performed on the object. The name should match the action name that appears in RBAC or the event service.",
"type": "string"
"type": "string",
"readOnly": true
},
"display": {
"description": "Contains the localized display information for this particular operation or action.",
"$ref": "#/definitions/Display"
"origin": {
"description": "Origin for the operation.",
"type": "string",
"readOnly": true
}
}
},
"Display": {
"description": "Contains the localized display information for this particular operation / action.",
"properties": {
"provider": {
"description": "The localized, friendly version of the resource provider name. The provider name is expected to include the name of the publisher or company responsible. The provider name format should use title case and begin with \"Microsoft\" for first-party services. For example, the provider name may be\"Microsoft Monitoring Insights\" or \"Microsoft Compute\".",
"type": "string"
"description": "The localized friendly form of the resource provider name – it is expected to also include the publisher/company responsible. It should use Title Casing and begin with \"Microsoft\" for 1st party services. e.g. \"Microsoft Monitoring Insights\" or \"Microsoft Compute.\"",
"type": "string",
"readOnly": true
},
"resource": {
"description": "The localized, friendly version of the resource type related to this action or operation; the resource type should match the public documentation for the resource provider.",
"type": "string"
"type": "string",
"readOnly": true
},
"operation": {
"description": "The localized, friendly name for the operation. Use the name as it will be displayed to the user.",
"type": "string"
"description": "The localized, friendly name for the operation. Use the name as it will displayed to the user.",
"type": "string",
"readOnly": true
},
"description": {
"description": "The localized, friendly description for the operation. The description will be displayed to the user. It should be thorough and concise for used in both tooltips and detailed views.",
"type": "string"
"type": "string",
"readOnly": true
}
}
},
Expand All @@ -272,6 +307,40 @@
"type": "string"
}
}
},
"ExtendedErrorInfo": {
"type": "object",
"description": "Error response.",
"properties": {
"error": {
"$ref": "#/definitions/ErrorDefinition",
"description": "The error details."
}
}
},
"ErrorDefinition": {
"type": "object",
"description": "Error definition.",
"properties": {
"code": {
"description": "Service specific error code which serves as the substatus for the HTTP error code.",
"type": "string",
"readOnly": true
},
"message": {
"description": "Description of the error.",
"type": "string",
"readOnly": true
},
"details": {
"description": "Internal error details.",
"type": "array",
"items": {
"$ref": "#/definitions/ErrorDefinition"
},
"readOnly": true
}
}
}
},
"parameters": {
Expand Down
12 changes: 1 addition & 11 deletions specification/azsadmin/resource-manager/commerce/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> see https://aka.ms/autorest
This is the AutoRest configuration file for Commerce Admin.
This is the AutoRest configuration file for Commerce Admin. We do not ship any language SDKs for AzureStack Administrator APIs and these APIs do not exist in azure.

---
## Getting Started
Expand Down Expand Up @@ -39,16 +39,6 @@ input-file:
---
# Code Generation

## Swagger to SDK

This section describes what SDK should be generated by the automatic system.
This is not used by Autorest itself. Currently only the C# SDK is supported.

``` yaml $(swagger-to-sdk)
swagger-to-sdk:
- repo: azure-sdk-for-sdk
```

## C#

``` yaml $(csharp)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,9 @@
"type": "string"
},
"isDataAction": {
"description": "Gets or sets a value indicating whether the operation is a data action or not.",
"type": "boolean"
"description": "Whether the operation applies to data-plane. This is \"true\" for data-plane operations and \"false\" for ARM/control-plane operations.",
"type": "boolean",
"readOnly": true
},
"display": {
"description": "Contains the localized display information for this particular operation or action.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@
},
{
"name": "Microsoft.Compute.Admin/locations/Disks/read",
"isDataAction": false,
"display": {
"provider": "Microsoft Compute Admin",
"resource": "Disks",
Expand All @@ -126,7 +125,6 @@
},
{
"name": "Microsoft.Compute.Admin/locations/DiskMigrationJobs/read",
"isDataAction": false,
"display": {
"provider": "Microsoft Compute Admin",
"resource": "DiskMigrationJobs",
Expand All @@ -136,7 +134,6 @@
},
{
"name": "Microsoft.Compute.Admin/locations/DiskMigrationJobs/write",
"isDataAction": false,
"display": {
"provider": "Microsoft Compute Admin",
"resource": "DiskMigrationJobs",
Expand All @@ -146,7 +143,6 @@
},
{
"name": "Microsoft.Compute.Admin/locations/DiskMigrationJobs/cancel/action",
"isDataAction": false,
"display": {
"provider": "Microsoft Compute Admin",
"resource": "DiskMigrationJobs",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@
}
],
"responses": {
"default": {
"description": "Unexpected Error",
"schema": {
"$ref": "Subscriptions.json#/definitions/Error"
}
},
"200": {
"description": "OK",
"schema": {
Expand Down Expand Up @@ -79,6 +85,12 @@
}
],
"responses": {
"default": {
"description": "Unexpected Error",
"schema": {
"$ref": "Subscriptions.json#/definitions/Error"
}
},
"200": {
"description": "OK",
"schema": {
Expand Down Expand Up @@ -113,6 +125,12 @@
}
],
"responses": {
"default": {
"description": "Unexpected Error",
"schema": {
"$ref": "Subscriptions.json#/definitions/Error"
}
},
"200": {
"description": "OK"
},
Expand Down Expand Up @@ -150,6 +168,12 @@
}
],
"responses": {
"default": {
"description": "Unexpected Error",
"schema": {
"$ref": "Subscriptions.json#/definitions/Error"
}
},
"200": {
"description": "OK",
"schema": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@
}
],
"responses": {
"default": {
"description": "Unexpected Error",
"schema": {
"$ref": "Subscriptions.json#/definitions/Error"
}
},
"200": {
"description": "OK",
"schema": {
Expand Down Expand Up @@ -73,6 +79,12 @@
}
],
"responses": {
"default": {
"description": "Unexpected Error",
"schema": {
"$ref": "Subscriptions.json#/definitions/Error"
}
},
"200": {
"description": "OK",
"schema": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@
}
],
"responses": {
"default": {
"description": "Unexpected Error",
"schema": {
"$ref": "Subscriptions.json#/definitions/Error"
}
},
"200": {
"description": "OK",
"schema": {
Expand Down Expand Up @@ -79,6 +85,12 @@
}
],
"responses": {
"default": {
"description": "Unexpected Error",
"schema": {
"$ref": "Subscriptions.json#/definitions/Error"
}
},
"200": {
"description": "OK",
"schema": {
Expand Down Expand Up @@ -132,7 +144,8 @@
},
"subscriptionCount": {
"description": "Current subscription count.",
"type": "integer"
"type": "integer",
"format": "int32"
}
}
},
Expand Down
Loading

0 comments on commit f15b4f3

Please sign in to comment.