-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Added the swagger file for the new service Gallery. #3080
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
Merged
lmazuel
merged 33 commits into
Azure:master
from
vanbasten2323:dev/xiowei/addSwaggerForGallery
May 23, 2018
Merged
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
b488625
Added the swagger file for the new service Gallery.
vanbasten2323 0ae8ade
Fixed minor issues. Added an example.
vanbasten2323 47016ed
Added the example for creating a gallery.
vanbasten2323 d2537a5
Gallery Python conf
lmazuel 4c694fe
Make the tag name plural.
vanbasten2323 958b583
Merge branch 'dev/xiowei/addSwaggerForGallery' of https://github.com/…
vanbasten2323 29d0c57
Fixed description for 202 response.
vanbasten2323 b74f3ee
Changed the operationId to conform to naming convention.
vanbasten2323 664c041
Fixed some typos.
vanbasten2323 e7ab964
Add default error response. Make provisioningInfo a enum type.
vanbasten2323 c26feda
Fixed comments according to CR.
vanbasten2323 b757a4e
Resolved merge conflicts.
vanbasten2323 fa546f9
Updated the readme.md
vanbasten2323 cdaa5b4
Updated the example.
vanbasten2323 5a18325
do some experiments.
vanbasten2323 e7bb836
Cleaned up unused files.
vanbasten2323 604b39f
added empty example file.
vanbasten2323 e8b5fbd
Added example for GetGallery api.
vanbasten2323 7477feb
Added example for DeleteGallery api. Passed the local validation.
vanbasten2323 bbde0de
Added example for PutGalleryImage api. Passed the local validation.
vanbasten2323 14e0a17
Added example for GetGalleryImage api. Passed the local validation.
vanbasten2323 f5bd197
Added example for DeleteGalleryImage api. Passed the local validation.
vanbasten2323 0329884
Added example for PutGalleryImageVersion api. Passed the local valida…
vanbasten2323 7c9b26b
Added example for GetGalleryImageVersion api. Passed the local valida…
vanbasten2323 6f4661c
Added example for DeleteGalleryImageVersion api. Passed the local val…
vanbasten2323 8e46ef9
Added example for ListGalleriesInAResourceGroup api. Passed the local…
vanbasten2323 ee7a6de
Added example for ListGalleriesInASubscription api. Passed the local …
vanbasten2323 3619af8
Added example for ListGalleryImagesInGallery api. Passed the local va…
vanbasten2323 e5ef375
Added example for ListGalleryImageVersionsInGalleryImage api. Passed …
vanbasten2323 ce1cfe9
Fixed typos in the example provided.
vanbasten2323 98063fc
Fixed typos in the example provided.
vanbasten2323 70f7a27
Added the supression for gallery, gallery image, and gallery image ve…
vanbasten2323 4c60939
Correct the suppression.
vanbasten2323 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add default error response. Make provisioningInfo a enum type.
- Loading branch information
commit e7ab96432e0bfc7c49839ca5d1194ec1be0c23a9
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -80,6 +80,12 @@ | |
| "schema": { | ||
| "$ref": "#/definitions/Gallery" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "#/definitions/CloudError" | ||
| } | ||
| } | ||
| }, | ||
| "x-ms-long-running-operation": true, | ||
|
|
@@ -122,6 +128,12 @@ | |
| "schema": { | ||
| "$ref": "#/definitions/Gallery" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "#/definitions/CloudError" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
|
|
@@ -155,6 +167,12 @@ | |
| }, | ||
| "204": { | ||
| "description": "No Content" | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "#/definitions/CloudError" | ||
| } | ||
| } | ||
| }, | ||
| "x-ms-long-running-operation": true | ||
|
|
@@ -213,6 +231,12 @@ | |
| "schema": { | ||
| "$ref": "#/definitions/GalleryImage" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "#/definitions/CloudError" | ||
| } | ||
| } | ||
| }, | ||
| "x-ms-long-running-operation": true | ||
|
|
@@ -254,6 +278,12 @@ | |
| "schema": { | ||
| "$ref": "#/definitions/GalleryImage" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "#/definitions/CloudError" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
|
|
@@ -294,6 +324,12 @@ | |
| }, | ||
| "204": { | ||
| "description": "No Content" | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "#/definitions/CloudError" | ||
| } | ||
| } | ||
| }, | ||
| "x-ms-long-running-operation": true | ||
|
|
@@ -359,6 +395,12 @@ | |
| "schema": { | ||
| "$ref": "#/definitions/GalleryImageVersion" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "#/definitions/CloudError" | ||
| } | ||
| } | ||
| }, | ||
| "x-ms-long-running-operation": true | ||
|
|
@@ -414,6 +456,12 @@ | |
| "schema": { | ||
| "$ref": "#/definitions/GalleryImageVersion" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "#/definitions/CloudError" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
|
|
@@ -461,6 +509,12 @@ | |
| }, | ||
| "204": { | ||
| "description": "No Content" | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "#/definitions/CloudError" | ||
| } | ||
| } | ||
| }, | ||
| "x-ms-long-running-operation": true | ||
|
|
@@ -490,6 +544,12 @@ | |
| "schema": { | ||
| "$ref": "#/definitions/GalleryList" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "#/definitions/CloudError" | ||
| } | ||
| } | ||
| } | ||
| } | ||
|
|
@@ -515,6 +575,12 @@ | |
| "schema": { | ||
| "$ref": "#/definitions/GalleryList" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "#/definitions/CloudError" | ||
| } | ||
| } | ||
| } | ||
| } | ||
|
|
@@ -550,6 +616,12 @@ | |
| "schema": { | ||
| "$ref": "#/definitions/GalleryImageList" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "#/definitions/CloudError" | ||
| } | ||
| } | ||
| } | ||
| } | ||
|
|
@@ -592,6 +664,12 @@ | |
| "schema": { | ||
| "$ref": "#/definitions/GalleryImageVersionList" | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "Error response describing why the operation failed.", | ||
| "schema": { | ||
| "$ref": "#/definitions/CloudError" | ||
| } | ||
| } | ||
| } | ||
| } | ||
|
|
@@ -624,7 +702,16 @@ | |
| "provisioningState": { | ||
| "readOnly": true, | ||
| "type": "string", | ||
| "description": "The provisioning state, which only appears in the response." | ||
| "title": "The current state of the gallery.", | ||
| "description": "The provisioning state, which only appears in the response.", | ||
| "enum": [ | ||
| "Creating", | ||
| "Updating", | ||
| "Failed", | ||
| "Succeeded", | ||
| "Deleting", | ||
| "Migrating" | ||
| ] | ||
| } | ||
| }, | ||
| "description": "Describes the properties of a gallery." | ||
|
|
@@ -714,7 +801,16 @@ | |
| "provisioningState": { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. enum
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is fixed. |
||
| "readOnly": true, | ||
| "type": "string", | ||
| "description": "The provisioning state, which only appears in the response." | ||
| "title": "The current state of the gallery image.", | ||
| "description": "The provisioning state, which only appears in the response.", | ||
| "enum": [ | ||
| "Creating", | ||
| "Updating", | ||
| "Failed", | ||
| "Succeeded", | ||
| "Deleting", | ||
| "Migrating" | ||
| ] | ||
| } | ||
| }, | ||
| "description": "Describes the properties of a gallery image." | ||
|
|
@@ -813,7 +909,16 @@ | |
| "provisioningState": { | ||
| "readOnly": true, | ||
| "type": "string", | ||
| "description": "The provisioning state, which only appears in the response." | ||
| "title": "The current state of the gallery image version.", | ||
| "description": "The provisioning state, which only appears in the response.", | ||
| "enum": [ | ||
| "Creating", | ||
| "Updating", | ||
| "Failed", | ||
| "Succeeded", | ||
| "Deleting", | ||
| "Migrating" | ||
| ] | ||
| }, | ||
| "storageProfile": { | ||
| "$ref": "#/definitions/GalleryImageVersionStorageProfile" | ||
|
|
@@ -1057,6 +1162,40 @@ | |
| ], | ||
| "description": "The List Gallery Image version operation response." | ||
| }, | ||
| "CloudError": { | ||
| "x-ms-external": true, | ||
| "properties": { | ||
| "error": { | ||
| "$ref": "#/definitions/CloudErrorBody" | ||
| } | ||
| }, | ||
| "description": "An error response from the Gallery service." | ||
| }, | ||
| "CloudErrorBody": { | ||
| "x-ms-external": true, | ||
| "properties": { | ||
| "code": { | ||
| "type": "string", | ||
| "description": "An identifier for the error. Codes are invariant and are intended to be consumed programmatically." | ||
| }, | ||
| "message": { | ||
| "type": "string", | ||
| "description": "A message describing the error, intended to be suitable for display in a user interface." | ||
| }, | ||
| "target": { | ||
| "type": "string", | ||
| "description": "The target of the particular error. For example, the name of the property in error." | ||
| }, | ||
| "details": { | ||
| "type": "array", | ||
| "items": { | ||
| "$ref": "#/definitions/CloudErrorBody" | ||
| }, | ||
| "description": "A list of additional details about the error." | ||
| } | ||
| }, | ||
| "description": "An error response from the Batch service." | ||
| }, | ||
| "Resource": { | ||
| "description": "The Resource model definition.", | ||
| "properties": { | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make enum with all the possible values described.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have made it enum. But I didn't use the the "x-ms-enum" because, as the documentation (https://github.com/Azure/autorest/blob/master/docs/extensions/readme.md#x-ms-enum) suggested, our provisioningState may still be subject to change, since it is a new service.