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

Add common types.json v2 #15735

Merged
merged 3 commits into from
Aug 24, 2021
Merged
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
{
"swagger": "2.0",
"info": {
"version": "2.0",
"title": "Common types"
},
"paths": {},
"definitions": {
"ResourceWithEtag": {
"allOf": [
{
"$ref": "../../../../common-types/resource-management/v3/types.json#/definitions/Resource"
}
],
"description": "An azure resource object with an Etag property",
"properties": {
"etag": {
"description": "Etag of the azure resource",
"type": "string"
}
},
"type": "object"
}
},
"parameters": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

parameters

You just added this params but are they used in any of the existing swaggers?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jorgecotillo Not yet. They will be used in my coming PRs (in a new Stable and Preview versions). Wanted to keep my PRs small and simple.
The main purpose of this PR is removing our Resource definition and referencing the common-types one.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since there's no API update involved, I just removed WaitForArmFeedback label.

"OperationalInsightsResourceProvider": {
"description": "The namespace of workspaces resource provider- Microsoft.OperationalInsights.",
"in": "path",
"name": "operationalInsightsResourceProvider",
"required": true,
"type": "string",
"x-ms-parameter-location": "method"
},
"ODataFilter": {
"description": "Filters the results, based on a Boolean condition. Optional.",
"in": "query",
"name": "$filter",
"required": false,
"type": "string",
"x-ms-parameter-location": "method"
},
"ODataOrderBy": {
"description": "Sorts the results. Optional.",
"in": "query",
"name": "$orderby",
"required": false,
"type": "string",
"x-ms-parameter-location": "method"
},
"ODataSkipToken": {
"description": "Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. Optional.",
"in": "query",
"name": "$skipToken",
"required": false,
"type": "string",
"x-ms-parameter-location": "method"
},
"ODataTop": {
"description": "Returns only the first n results. Optional.",
"format": "int32",
"in": "query",
"name": "$top",
"required": false,
"type": "integer",
"x-ms-parameter-location": "method"
},
"ODataSkip": {
"description": "Used to skip n elements in the OData query (offset). Returns a nextLink to the next page of results if there are any left.",
"in": "query",
"name": "$skip",
"required": false,
"type": "integer",
"format": "int32",
"x-ms-parameter-location": "method"
}
}
}