From b48862551b5e97eb40acb3da63e55522a9db566c Mon Sep 17 00:00:00 2001 From: xiowei Date: Tue, 15 May 2018 14:08:02 -0700 Subject: [PATCH 01/31] Added the swagger file for the new service Gallery. --- .../preview/2018-06-01/gallery.json | 1105 +++++++++++++++++ .../compute/resource-manager/readme.md | 17 +- 2 files changed, 1121 insertions(+), 1 deletion(-) create mode 100644 specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json new file mode 100644 index 000000000000..5bf81abf55cb --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json @@ -0,0 +1,1105 @@ +{ + "swagger": "2.0", + "info": { + "title": "GalleryClient", + "description": "The Gallery Client.", + "version": "2018-06-01" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}": { + "put": { + "tags": [ + "Gallery" + ], + "operationId": "Gallery_CreateOrUpdate", + "description": "Create or update a gallery.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Gallery" + }, + "description": "Parameters supplied to the create or update gallery operation." + } + ], + "responses": { + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/Gallery" + } + }, + "202": { + "description": "Updated", + "schema": { + "$ref": "#/definitions/Gallery" + } + } + }, + "x-ms-long-running-operation": true + }, + "get": { + "tags": [ + "Gallery" + ], + "operationId": "Gallery_Get", + "description": "Retrieves information about a gallery.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Gallery" + } + } + } + }, + "delete": { + "tags": [ + "Gallery" + ], + "operationId": "Gallery_Delete", + "description": "Delete a gallery.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "Accepted" + }, + "204": { + "description": "No Content" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}": { + "put": { + "tags": [ + "GalleryImage" + ], + "operationId": "GalleryImage_CreateOrUpdate", + "description": "Create or update a gallery image.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery." + }, + { + "name": "galleryImageName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery image." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/GalleryImage" + }, + "description": "Parameters supplied to the create or update gallery image operation." + } + ], + "responses": { + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/GalleryImage" + } + }, + "202": { + "description": "Updated", + "schema": { + "$ref": "#/definitions/GalleryImage" + } + } + }, + "x-ms-long-running-operation": true + }, + "get": { + "tags": [ + "GalleryImage" + ], + "operationId": "GalleryImage_Get", + "description": "Retrieves information about a gallery image.", + "parameters":[ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery." + }, + { + "name": "galleryImageName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery image." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GalleryImage" + } + } + } + }, + "delete": { + "tags": [ + "GalleryImage" + ], + "operationId": "GalleryImage_Delete", + "description": "Delete a gallery image.", + "parameters":[ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery." + }, + { + "name": "galleryImageName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery image." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "Accepted" + }, + "204": { + "description": "No Content" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}": { + "put": { + "tags": [ + "GalleryImageVersion" + ], + "operationId": "GalleryImageVersion_CreateOrUpdate", + "description": "Create or update a gallery image version.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery." + }, + { + "name": "galleryImageName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery image." + }, + { + "name": "galleryImageVersionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery image version." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/GalleryImageVersion" + }, + "description": "Parameters supplied to the create or update gallery image version operation." + } + ], + "responses": { + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/GalleryImageVersion" + } + }, + "202": { + "description": "Updated", + "schema": { + "$ref": "#/definitions/GalleryImageVersion" + } + } + }, + "x-ms-long-running-operation": true + }, + "get": { + "tags": [ + "GalleryImageVersion" + ], + "operationId": "GalleryImageVersion_Get", + "description": "Retrieves information about a gallery image version.", + "parameters":[ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery." + }, + { + "name": "galleryImageName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery image." + }, + { + "name": "galleryImageVersionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery image version." + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "The expand expression to apply on the operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GalleryImageVersion" + } + } + } + }, + "delete": { + "tags": [ + "GalleryImageVersion" + ], + "operationId": "GalleryImageVersion_Delete", + "description": "Delete a gallery image version.", + "parameters":[ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery." + }, + { + "name": "galleryImageName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery image." + }, + { + "name": "galleryImageVersionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery image version." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "Accepted" + }, + "204": { + "description": "No Content" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries": { + "get": { + "tags": [ + "Gallery" + ], + "operationId": "Gallery_ListGalleriesInResourceGroup", + "description": "List galleries under a resource group.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GalleryList" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/galleries": { + "get": { + "tags": [ + "Gallery" + ], + "operationId": "Gallery_ListGalleriesInSubscription", + "description": "List galleries under a subscription.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GalleryList" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images": { + "get": { + "tags": [ + "GalleryImage" + ], + "operationId": "GalleryImage_ListGalleryImagesInGallery", + "description": "List gallery images under a gallery.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GalleryImageList" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions": { + "get": { + "tags": [ + "GalleryImageVersion" + ], + "operationId": "GalleryImageVersion_ListGalleryImageVersionsInGalleryImage", + "description": "List gallery image versions under a gallery image.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery." + }, + { + "name": "galleryImageName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery image." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GalleryImageVersionList" + } + } + } + } + } + }, + "definitions": { + "Gallery": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/GalleryProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Specifies information about the gallery that you want to create or update." + }, + "GalleryProperties": { + "properties": { + "description": { + "type": "string", + "description": "The description of this gallery resource." + }, + "identifier": { + "$ref": "#/definitions/GalleryIdentifier" + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The provisioning state, which only appears in the response." + } + }, + "description": "Describes the properties of a gallery." + }, + "GalleryIdentifier": { + "properties": { + "uniqueName": { + "readOnly": true, + "type": "string", + "description": "The unique name of the gallery" + } + } + }, + "GalleryImage": { + "properties":{ + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/GalleryImageProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Specifies information about the gallery image that you want to create or update." + }, + "GalleryImageProperties": { + "properties": { + "description": { + "type": "string", + "description": "The description of this gallery image resource." + }, + "eula": { + "type": "string", + "description": "The Eula agreement for the gallery image." + }, + "privacyStatementUri": { + "type": "string", + "description": "The privacy statement uri." + }, + "releaseNoteUri": { + "type": "string", + "description": "The release note uri." + }, + "osType": { + "type": "string", + "description": "This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD.

Possible values are:

**Windows**

**Linux**", + "enum": [ + "Windows", + "Linux" + ], + "x-ms-enum": { + "name": "OperatingSystemTypes", + "modelAsString": false + } + }, + "osState": { + "type": "string", + "description": "The OS State.", + "enum": [ + "Generalized", + "Specialized" + ], + "x-ms-enum": { + "name": "OperatingSystemStateTypes", + "modelAsString": false + } + }, + "endOfLifeDate": { + "type": "string", + "format": "date", + "description": "The end of life of this gallery image." + }, + "identifier": { + "$ref": "#/definitions/GalleryImageIdentifier" + }, + "recommended": { + "$ref": "#/definitions/RecommendedMachineConfiguration" + }, + "disallowed": { + "$ref": "#/definitions/Disallowed" + }, + "purchasePlan":{ + "$ref": "#/definitions/ImagePurchasePlan" + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The provisioning state, which only appears in the response." + } + }, + "description": "Describes the properties of a gallery image." + }, + "GalleryImageIdentifier": { + "properties":{ + "publisher": { + "type": "string", + "description": "The gallery image publisher name." + }, + "offer": { + "type": "string", + "description": "The gallery image offer name." + }, + "sku": { + "type": "string", + "description": "The gallery image sku name." + } + }, + "description": "This is the gallery image identifier." + }, + "RecommendedMachineConfiguration": { + "properties": { + "vCPUs": { + "$ref": "#/definitions/ResourceRange" + }, + "memory": { + "$ref": "#/definitions/ResourceRange" + } + }, + "description": "Describes the recommended machine configuration." + }, + "ResourceRange": { + "properties": { + "min": { + "type": "integer", + "format": "int32", + "description": "The minimum number of the resource." + }, + "max": { + "type": "integer", + "format": "int32", + "description": "The maximum number of the resource." + } + }, + "description": "Describes the resource range." + }, + "Disallowed": { + "properties": { + "diskTypes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "A list of disk types." + } + }, + "description": "Describes the disallowed disk types." + }, + "ImagePurchasePlan": { + "properties": { + "name": { + "type": "string", + "description": "The plan ID." + }, + "publisher": { + "type": "string", + "description": "The publisher ID." + }, + "product": { + "type": "string", + "description": "The product ID." + } + }, + "description": "Describes the gallery image purchase plan. This is used by marketplace images." + }, + "GalleryImageVersion": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/GalleryImageVersionProperties" + } + }, + "description": "Specifies information about the gallery image version that you want to create or update." + }, + "GalleryImageVersionProperties": { + "properties":{ + "publishingProfile": { + "$ref": "#/definitions/GalleryImageVersionPublishingProfile" + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The provisioning state, which only appears in the response." + }, + "storageProfile": { + "$ref": "#/definitions/GalleryImageVersionStorageProfile" + }, + "replicationStatus": { + "$ref": "#/definitions/ReplicationStatus" + } + }, + "description": "Describes the properties of a gallery image version." + }, + "GalleryArtifactPublishingProfileBase": { + "properties": { + "regions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The regions where the artifact is going to be published." + }, + "source": { + "$ref": "#/definitions/GalleryArtifactSource" + } + }, + "description": "Describes the basic gallery artifact publishing profile." + }, + "GalleryArtifactSource": { + "properties": { + "managedImage": { + "$ref": "#/definitions/ManagedArtifact" + } + }, + "description": "The source of the gallery artifact." + }, + "ManagedArtifact": { + "properties": { + "id": { + "type": "string", + "description": "The managed artifact id." + } + }, + "description": "The managed artifact." + }, + "GalleryImageVersionPublishingProfile": { + "properties": { + "excludeFromLatest": { + "type": "boolean", + "description": "The flag means that if it is set to true, people deploying VMs with 'latest' as version will not use this version." + }, + "publishedDate": { + "readOnly": true, + "type": "string", + "format": "date", + "description": "The time when the gallery image version is published." + }, + "endOfLifeDate": { + "type": "string", + "format": "date", + "description": "The end of life date of the gallery image version." + } + }, + "allOf": [ + { + "$ref": "#/definitions/GalleryArtifactPublishingProfileBase" + } + ], + "description": "The publishing profile of a gallery image version." + }, + "GalleryImageVersionStorageProfile": { + "properties": { + "osDiskImage": { + "$ref": "#/definitions/GalleryOSDiskImage" + }, + "dataDiskImages": { + "type": "array", + "items": { + "$ref": "#/definitions/GalleryDataDiskImage" + }, + "description": "A list of data disk images." + } + }, + "description": "This is the storage profile of a gallery image version." + }, + "GalleryOSDiskImage": { + "allOf": [ + { + "$ref": "#/definitions/GalleryDiskImage" + } + ], + "description": "This is the OS disk image." + }, + "GalleryDataDiskImage": { + "properties": { + "lun": { + "type": "integer", + "format": "int32", + "description": "Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM." + } + }, + "allOf": [ + { + "$ref": "#/definitions/GalleryDiskImage" + } + ], + "description": "This is the data disk image." + }, + "GalleryDiskImage": { + "properties": { + "sizedInGB": { + "type": "integer", + "format": "int32", + "description": "It indicates the size of the VHD to create." + }, + "hostCaching":{ + "type": "string", + "description": "The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'", + "enum": [ + "None", + "ReadOnly", + "ReadWrite" + ], + "x-ms-enum": { + "name": "HostCaching", + "modelAsString": false + } + } + }, + "description": "This is the disk image base class." + }, + "ReplicationStatus": { + "properties": { + "aggregatedState": { + "type": "string", + "description": "This is the aggregated replication status based on the regional replication status.", + "enum": [ + "Unknown", + "InProgress", + "Completed", + "Failed" + ], + "x-ms-enum": { + "name": "AggregatedReplicationState", + "modelAsString": false + } + }, + "summary": { + "type": "array", + "items": { + "$ref": "#/definitions/RegionalReplicationStatus" + }, + "description": "This is a summary of replication status for each region." + } + }, + "description": "This is the replication status of the gallery image version." + }, + "RegionalReplicationStatus": { + "properties": { + "region": { + "type": "string", + "description": "The region where the gallery image version is published to." + }, + "state": { + "type": "string", + "description": "This is the regional replication state.", + "enum": [ + "Unknown", + "Replicating", + "Completed", + "Failed" + ], + "x-ms-enum": { + "name": "ReplicationState", + "modelAsString": false + } + }, + "details": { + "type": "string", + "description": "The details of the replication status." + }, + "progress": { + "type": "integer", + "format": "int32", + "description": "It indicates progress of the replication job." + } + }, + "description": "This is the regional replication status." + }, + "GalleryList": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Gallery" + }, + "description": "A list of galleries." + }, + "nextLink": { + "type": "string", + "description": "The uri to fetch the next page of galleries. Call ListNext() with this to fetch the next page of galleries." + } + }, + "required": [ + "value" + ], + "description": "The List Galleries operation response." + }, + "GalleryImageList": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/GalleryImage" + }, + "description": "A list of gallery images." + }, + "nextLink": { + "type": "string", + "description": "The uri to fetch the next page of gallery images. Call ListNext() with this to fetch the next page of gallery images." + } + }, + "required": [ + "value" + ], + "description": "The List Gallery Images operation response." + }, + "GalleryImageVersionList": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/GalleryImageVersion" + }, + "description": "A list of gallery image versions." + }, + "nextLink": { + "type": "string", + "description": "The uri to fetch the next page of gallery image versions. Call ListNext() with this to fetch the next page of gallery image versions." + } + }, + "required": [ + "value" + ], + "description": "The List Gallery Image version operation response." + }, + "Resource": { + "description": "The Resource model definition.", + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Resource Id" + }, + "name": { + "readOnly": true, + "type": "string", + "description": "Resource name" + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Resource type" + }, + "location": { + "type": "string", + "description": "Resource location" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + }, + "required": [ + "location" + ], + "x-ms-azure-resource": true + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." + }, + "ResourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client Api Version." + } + } +} diff --git a/specification/compute/resource-manager/readme.md b/specification/compute/resource-manager/readme.md index 2e78bf833d29..b051bb6b7161 100644 --- a/specification/compute/resource-manager/readme.md +++ b/specification/compute/resource-manager/readme.md @@ -34,7 +34,7 @@ These are the global settings for the Compute API. title: ComputeManagementClient description: Compute Client openapi-type: arm -tag: package-2018-04 +tag: package-2018-06 directive: - where: @@ -151,6 +151,21 @@ directive: - TrackedResourceGetOperation ``` + +### Tag: package-2018-06 + +These settings apply only when `--tag=package-2018-06` is specified on the command line. + +``` yaml $(tag) == 'package-2018-06' +input-file: +- Microsoft.Compute/preview/2018-06-01/gallery.json +- Microsoft.Compute/stable/2017-12-01/compute.json +- Microsoft.Compute/stable/2017-12-01/runCommands.json +- Microsoft.Compute/stable/2017-09-01/skus.json +- Microsoft.Compute/stable/2018-04-01/disk.json +- Microsoft.ContainerService/stable/2017-01-31/containerService.json +``` + ### Tag: package-2018-04 These settings apply only when `--tag=package-2018-04` is specified on the command line. From 0ae8adebcc75669620242663ebae391ca17bd2d0 Mon Sep 17 00:00:00 2001 From: xiowei Date: Tue, 15 May 2018 23:11:37 -0700 Subject: [PATCH 02/31] Fixed minor issues. Added an example. --- .../examples/CreateASimpleGallery.json | 29 +++++++++++++++++++ .../preview/2018-06-01/gallery.json | 13 ++++++++- .../compute/resource-manager/readme.md | 9 ++++++ 3 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/CreateASimpleGallery.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/CreateASimpleGallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/CreateASimpleGallery.json new file mode 100644 index 000000000000..bd629bbabcae --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/CreateASimpleGallery.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2018-06-01", + "galleryName": "myGalleryImage", + "parameters": { + "location": "West US", + "properties": { + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "identifier": { + "uniqueName": "{SUBSCRIPTION-ID}-MYGALLERYIMAGE" + }, + "provisioningState": "Creating" + }, + "location": "westus", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName", + "name": "myImage" + } + } + } + } + \ No newline at end of file diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json index 5bf81abf55cb..4792f9d8c1be 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json @@ -82,7 +82,12 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Create a simple gallery.": { + "$ref": "./examples/CreateASimpleGallery.json" + } + } }, "get": { "tags": [ @@ -789,6 +794,11 @@ "$ref": "#/definitions/GalleryImageVersionProperties" } }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], "description": "Specifies information about the gallery image version that you want to create or update." }, "GalleryImageVersionProperties": { @@ -1092,6 +1102,7 @@ "in": "path", "required": true, "type": "string", + "x-ms-parameter-location": "method", "description": "The name of the resource group." }, "ApiVersionParameter": { diff --git a/specification/compute/resource-manager/readme.md b/specification/compute/resource-manager/readme.md index b051bb6b7161..7000aae927a6 100644 --- a/specification/compute/resource-manager/readme.md +++ b/specification/compute/resource-manager/readme.md @@ -152,6 +152,15 @@ directive: ``` +### Tag: package-gallery-2018-06 + +These settings apply only when `--tag=package-gallery-2018-06` is specified on the command line. + +``` yaml $(tag) == 'package-gallery-2018-06' +input-file: +- Microsoft.Compute/preview/2018-06-01/gallery.json +``` + ### Tag: package-2018-06 These settings apply only when `--tag=package-2018-06` is specified on the command line. From 47016ed3414bc6e3c54b5584cce2869e350513c4 Mon Sep 17 00:00:00 2001 From: xiowei Date: Wed, 16 May 2018 09:10:54 -0700 Subject: [PATCH 03/31] Added the example for creating a gallery. --- .../examples/CreateASimpleGallery.json | 42 +++++++++---------- .../2018-06-01/examples/UpdateAGallery.json | 30 +++++++++++++ .../preview/2018-06-01/gallery.json | 3 ++ 3 files changed, 53 insertions(+), 22 deletions(-) create mode 100644 specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/UpdateAGallery.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/CreateASimpleGallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/CreateASimpleGallery.json index bd629bbabcae..ae0a8c04f013 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/CreateASimpleGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/CreateASimpleGallery.json @@ -1,29 +1,27 @@ { + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2018-06-01", + "galleryName": "myGalleryImage", "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "myResourceGroup", - "api-version": "2018-06-01", - "galleryName": "myGalleryImage", - "parameters": { - "location": "West US", + "location": "West US", + "properties": {} + } + }, + "responses": { + "201": { + "body": { "properties": { - } - } - }, - "responses": { - "201": { - "body": { - "properties": { - "identifier": { - "uniqueName": "{SUBSCRIPTION-ID}-MYGALLERYIMAGE" - }, - "provisioningState": "Creating" + "identifier": { + "uniqueName": "{SUBSCRIPTION-ID}-MYGALLERYIMAGE" }, - "location": "westus", - "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName", - "name": "myImage" - } + "provisioningState": "Creating" + }, + "location": "westus", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName", + "name": "myImage" } } } - \ No newline at end of file +} \ No newline at end of file diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/UpdateAGallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/UpdateAGallery.json new file mode 100644 index 000000000000..1fb43203ffdc --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/UpdateAGallery.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2018-06-01", + "galleryName": "myGalleryImage", + "parameters": { + "location": "West US", + "properties": { + "description": "A updated description." + } + } + }, + "responses": { + "202": { + "body": { + "properties": { + "description": "A updated description.", + "identifier": { + "uniqueName": "{SUBSCRIPTION-ID}-MYGALLERYIMAGE" + }, + "provisioningState": "Updating" + }, + "location": "westus", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName", + "name": "myImage" + } + } + } +} \ No newline at end of file diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json index 4792f9d8c1be..6c8450261bbe 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json @@ -86,6 +86,9 @@ "x-ms-examples": { "Create a simple gallery.": { "$ref": "./examples/CreateASimpleGallery.json" + }, + "Update a gallery.": { + "$ref": "./examples/UpdateAGallery.json" } } }, From d2537a58b0496d8860759d47a9c344c19d217995 Mon Sep 17 00:00:00 2001 From: Laurent Mazuel Date: Wed, 16 May 2018 10:23:27 -0700 Subject: [PATCH 04/31] Gallery Python conf --- specification/compute/resource-manager/readme.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/specification/compute/resource-manager/readme.md b/specification/compute/resource-manager/readme.md index 7000aae927a6..1bf56562050c 100644 --- a/specification/compute/resource-manager/readme.md +++ b/specification/compute/resource-manager/readme.md @@ -544,6 +544,7 @@ Generate all API versions currently shipped for this package ```yaml $(python) && $(multiapi) batch: + - tag: package-gallery-2018-06 - tag: package-disks-2018-04 - tag: package-compute-only-2017-12 - tag: package-skus-2017-09 @@ -553,6 +554,17 @@ batch: - tag: package-compute-2015-06 ``` +### Tag: package-gallery-2018-06 and python + +These settings apply only when `--tag=package-gallery-2018-06 --python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(tag) == 'package-gallery-2018-06' && $(python) +python: + namespace: azure.mgmt.compute.v2018_06_01 + output-folder: $(python-sdks-folder)/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01 +``` + ### Tag: package-disks-2018-04 and python These settings apply only when `--tag=package-disks-2018-04 --python` is specified on the command line. From 4c694fe12cd5741977dda7708bc52dc40c62c453 Mon Sep 17 00:00:00 2001 From: xiowei Date: Wed, 16 May 2018 11:08:23 -0700 Subject: [PATCH 05/31] Make the tag name plural. --- .../preview/2018-06-01/gallery.json | 52 +++++++++---------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json index 6c8450261bbe..7c5e1ccfa57b 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json @@ -37,9 +37,9 @@ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}": { "put": { "tags": [ - "Gallery" + "Galleries" ], - "operationId": "Gallery_CreateOrUpdate", + "operationId": "Galleries_CreateOrUpdate", "description": "Create or update a gallery.", "parameters": [ { @@ -94,9 +94,9 @@ }, "get": { "tags": [ - "Gallery" + "Galleries" ], - "operationId": "Gallery_Get", + "operationId": "Galleries_Get", "description": "Retrieves information about a gallery.", "parameters": [ { @@ -127,9 +127,9 @@ }, "delete": { "tags": [ - "Gallery" + "Galleries" ], - "operationId": "Gallery_Delete", + "operationId": "Galleries_Delete", "description": "Delete a gallery.", "parameters": [ { @@ -163,9 +163,9 @@ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}": { "put": { "tags": [ - "GalleryImage" + "GalleryImages" ], - "operationId": "GalleryImage_CreateOrUpdate", + "operationId": "GalleryImages_CreateOrUpdate", "description": "Create or update a gallery image.", "parameters": [ { @@ -219,9 +219,9 @@ }, "get": { "tags": [ - "GalleryImage" + "GalleryImages" ], - "operationId": "GalleryImage_Get", + "operationId": "GalleryImages_Get", "description": "Retrieves information about a gallery image.", "parameters":[ { @@ -259,9 +259,9 @@ }, "delete": { "tags": [ - "GalleryImage" + "GalleryImages" ], - "operationId": "GalleryImage_Delete", + "operationId": "GalleryImages_Delete", "description": "Delete a gallery image.", "parameters":[ { @@ -302,9 +302,9 @@ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}": { "put": { "tags": [ - "GalleryImageVersion" + "GalleryImageVersions" ], - "operationId": "GalleryImageVersion_CreateOrUpdate", + "operationId": "GalleryImageVersions_CreateOrUpdate", "description": "Create or update a gallery image version.", "parameters": [ { @@ -365,9 +365,9 @@ }, "get": { "tags": [ - "GalleryImageVersion" + "GalleryImageVersions" ], - "operationId": "GalleryImageVersion_Get", + "operationId": "GalleryImageVersions_Get", "description": "Retrieves information about a gallery image version.", "parameters":[ { @@ -419,9 +419,9 @@ }, "delete": { "tags": [ - "GalleryImageVersion" + "GalleryImageVersions" ], - "operationId": "GalleryImageVersion_Delete", + "operationId": "GalleryImageVersions_Delete", "description": "Delete a gallery image version.", "parameters":[ { @@ -468,9 +468,9 @@ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries": { "get": { "tags": [ - "Gallery" + "Galleries" ], - "operationId": "Gallery_ListGalleriesInResourceGroup", + "operationId": "Galleries_ListGalleriesInResourceGroup", "description": "List galleries under a resource group.", "parameters": [ { @@ -496,9 +496,9 @@ "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/galleries": { "get": { "tags": [ - "Gallery" + "Galleries" ], - "operationId": "Gallery_ListGalleriesInSubscription", + "operationId": "Galleries_ListGalleriesInSubscription", "description": "List galleries under a subscription.", "parameters": [ { @@ -521,9 +521,9 @@ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images": { "get": { "tags": [ - "GalleryImage" + "GalleryImages" ], - "operationId": "GalleryImage_ListGalleryImagesInGallery", + "operationId": "GalleryImages_ListGalleryImagesInGallery", "description": "List gallery images under a gallery.", "parameters": [ { @@ -556,9 +556,9 @@ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions": { "get": { "tags": [ - "GalleryImageVersion" + "GalleryImageVersions" ], - "operationId": "GalleryImageVersion_ListGalleryImageVersionsInGalleryImage", + "operationId": "GalleryImageVersions_ListGalleryImageVersionsInGalleryImage", "description": "List gallery image versions under a gallery image.", "parameters": [ { From 29d0c5762aad64243a021fac44d65b8610304e4e Mon Sep 17 00:00:00 2001 From: xiowei Date: Wed, 16 May 2018 11:16:07 -0700 Subject: [PATCH 06/31] Fixed description for 202 response. --- .../Microsoft.Compute/preview/2018-06-01/gallery.json | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json index 7c5e1ccfa57b..8d700a03a1fd 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json @@ -76,7 +76,7 @@ } }, "202": { - "description": "Updated", + "description": "Accepted", "schema": { "$ref": "#/definitions/Gallery" } @@ -209,7 +209,7 @@ } }, "202": { - "description": "Updated", + "description": "Accepted", "schema": { "$ref": "#/definitions/GalleryImage" } @@ -355,7 +355,7 @@ } }, "202": { - "description": "Updated", + "description": "Accepted", "schema": { "$ref": "#/definitions/GalleryImageVersion" } @@ -462,7 +462,8 @@ "204": { "description": "No Content" } - } + }, + "x-ms-long-running-operation": true } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries": { From b74f3ee0fdca928bf92a7fdd2bcd17994deadca9 Mon Sep 17 00:00:00 2001 From: xiowei Date: Wed, 16 May 2018 12:05:33 -0700 Subject: [PATCH 07/31] Changed the operationId to conform to naming convention. --- .../Microsoft.Compute/preview/2018-06-01/gallery.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json index 8d700a03a1fd..d1b7f857c0ee 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json @@ -471,7 +471,7 @@ "tags": [ "Galleries" ], - "operationId": "Galleries_ListGalleriesInResourceGroup", + "operationId": "Galleries_ListByResourceGroup", "description": "List galleries under a resource group.", "parameters": [ { @@ -499,7 +499,7 @@ "tags": [ "Galleries" ], - "operationId": "Galleries_ListGalleriesInSubscription", + "operationId": "Galleries_ListBySubscription", "description": "List galleries under a subscription.", "parameters": [ { @@ -524,7 +524,7 @@ "tags": [ "GalleryImages" ], - "operationId": "GalleryImages_ListGalleryImagesInGallery", + "operationId": "GalleryImages_ListGalleryImagesByGallery", "description": "List gallery images under a gallery.", "parameters": [ { @@ -559,7 +559,7 @@ "tags": [ "GalleryImageVersions" ], - "operationId": "GalleryImageVersions_ListGalleryImageVersionsInGalleryImage", + "operationId": "GalleryImageVersions_ListGalleryImageVersionsByGalleryImage", "description": "List gallery image versions under a gallery image.", "parameters": [ { From 664c041aeed346e4fdc3a2c8c29c1c59e7505b66 Mon Sep 17 00:00:00 2001 From: xiowei Date: Wed, 16 May 2018 14:01:44 -0700 Subject: [PATCH 08/31] Fixed some typos. --- .../2018-06-01/examples/CreateASimpleGallery.json | 10 +++++----- .../2018-06-01/examples/UpdateAGallery.json | 14 +++++++------- .../preview/2018-06-01/gallery.json | 6 +++--- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/CreateASimpleGallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/CreateASimpleGallery.json index ae0a8c04f013..e07dc73da9b5 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/CreateASimpleGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/CreateASimpleGallery.json @@ -3,8 +3,8 @@ "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", "api-version": "2018-06-01", - "galleryName": "myGalleryImage", - "parameters": { + "galleryName": "myGalleryName", + "gallery": { "location": "West US", "properties": {} } @@ -14,13 +14,13 @@ "body": { "properties": { "identifier": { - "uniqueName": "{SUBSCRIPTION-ID}-MYGALLERYIMAGE" + "uniqueName": "{SUBSCRIPTION-ID}-MYGALLERYNAME" }, "provisioningState": "Creating" }, - "location": "westus", + "location": "West US", "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName", - "name": "myImage" + "name": "myGalleryName" } } } diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/UpdateAGallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/UpdateAGallery.json index 1fb43203ffdc..fdaa2e4af04c 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/UpdateAGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/UpdateAGallery.json @@ -3,11 +3,11 @@ "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", "api-version": "2018-06-01", - "galleryName": "myGalleryImage", - "parameters": { + "galleryName": "myGalleryName", + "gallery": { "location": "West US", "properties": { - "description": "A updated description." + "description": "A updated gallery description." } } }, @@ -15,15 +15,15 @@ "202": { "body": { "properties": { - "description": "A updated description.", + "description": "A updated gallery description.", "identifier": { - "uniqueName": "{SUBSCRIPTION-ID}-MYGALLERYIMAGE" + "uniqueName": "{SUBSCRIPTION-ID}-MYGALLERYNAME" }, "provisioningState": "Updating" }, - "location": "westus", + "location": "West US", "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName", - "name": "myImage" + "name": "myGalleryName" } } } diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json index d1b7f857c0ee..8d3356e81edf 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json @@ -59,7 +59,7 @@ "$ref": "#/parameters/ApiVersionParameter" }, { - "name": "parameters", + "name": "gallery", "in": "body", "required": true, "schema": { @@ -192,7 +192,7 @@ "$ref": "#/parameters/ApiVersionParameter" }, { - "name": "parameters", + "name": "galleryImage", "in": "body", "required": true, "schema": { @@ -338,7 +338,7 @@ "$ref": "#/parameters/ApiVersionParameter" }, { - "name": "parameters", + "name": "galleryImageVersion", "in": "body", "required": true, "schema": { From e7ab96432e0bfc7c49839ca5d1194ec1be0c23a9 Mon Sep 17 00:00:00 2001 From: xiowei Date: Fri, 18 May 2018 09:29:28 -0700 Subject: [PATCH 09/31] Add default error response. Make provisioningInfo a enum type. --- .../preview/2018-06-01/gallery.json | 145 +++++++++++++++++- 1 file changed, 142 insertions(+), 3 deletions(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json index 8d3356e81edf..3e77bc5c9df3 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json @@ -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": { "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": { From c26feda2acff5be97893b6e5db4270e09dbf1c25 Mon Sep 17 00:00:00 2001 From: xiowei Date: Sun, 20 May 2018 18:17:53 -0700 Subject: [PATCH 10/31] Fixed comments according to CR. --- .../2018-06-01/examples/UpdateAGallery.json | 2 +- .../preview/2018-06-01/gallery.json | 153 ++++++++++++++++-- 2 files changed, 141 insertions(+), 14 deletions(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/UpdateAGallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/UpdateAGallery.json index fdaa2e4af04c..1a6983867cb5 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/UpdateAGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/UpdateAGallery.json @@ -12,7 +12,7 @@ } }, "responses": { - "202": { + "200": { "body": { "properties": { "description": "A updated gallery description.", diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json index 3e77bc5c9df3..f028378760e0 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json @@ -69,14 +69,14 @@ } ], "responses": { - "201": { - "description": "Created", + "200": { + "description": "OK", "schema": { "$ref": "#/definitions/Gallery" } }, - "202": { - "description": "Accepted", + "201": { + "description": "Created", "schema": { "$ref": "#/definitions/Gallery" } @@ -162,6 +162,12 @@ } ], "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OperationStatusResponse" + } + }, "202": { "description": "Accepted" }, @@ -220,14 +226,14 @@ } ], "responses": { - "201": { - "description": "Created", + "200": { + "description": "OK", "schema": { "$ref": "#/definitions/GalleryImage" } }, - "202": { - "description": "Accepted", + "201": { + "description": "Created", "schema": { "$ref": "#/definitions/GalleryImage" } @@ -319,6 +325,12 @@ } ], "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OperationStatusResponse" + } + }, "202": { "description": "Accepted" }, @@ -384,14 +396,14 @@ } ], "responses": { - "201": { - "description": "Created", + "200": { + "description": "OK", "schema": { "$ref": "#/definitions/GalleryImageVersion" } }, - "202": { - "description": "Accepted", + "201": { + "description": "Created", "schema": { "$ref": "#/definitions/GalleryImageVersion" } @@ -444,7 +456,14 @@ "in": "query", "required": false, "type": "string", - "description": "The expand expression to apply on the operation." + "description": "The expand expression to apply on the operation.", + "enum": [ + "ReplicationStatus" + ], + "x-ms-enum": { + "name": "ReplicationStatusTypes", + "modelAsString": false + } }, { "$ref": "#/parameters/ApiVersionParameter" @@ -504,6 +523,12 @@ } ], "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/OperationStatusResponse" + } + }, "202": { "description": "Accepted" }, @@ -551,6 +576,9 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, @@ -582,6 +610,9 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, @@ -623,6 +654,9 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, @@ -671,6 +705,9 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } } @@ -1196,6 +1233,96 @@ }, "description": "An error response from the Batch service." }, + "ApiErrorBase": { + "properties": { + "code": { + "type": "string", + "description": "The error code." + }, + "target": { + "type": "string", + "description": "The target of the particular error." + }, + "message": { + "type": "string", + "description": "The error message." + } + }, + "description": "Api error base." + }, + "InnerError": { + "properties": { + "exceptiontype": { + "type": "string", + "description": "The exception type." + }, + "errordetail": { + "type": "string", + "description": "The internal error message or exception dump." + } + }, + "description": "Inner error details." + }, + "ApiError": { + "properties": { + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/ApiErrorBase" + }, + "description": "The Api error details" + }, + "innererror": { + "$ref": "#/definitions/InnerError", + "description": "The Api inner error" + }, + "code": { + "type": "string", + "description": "The error code." + }, + "target": { + "type": "string", + "description": "The target of the particular error." + }, + "message": { + "type": "string", + "description": "The error message." + } + }, + "description": "Api error." + }, + "OperationStatusResponse": { + "properties": { + "name": { + "readOnly": true, + "type": "string", + "description": "Operation ID" + }, + "status": { + "readOnly": true, + "type": "string", + "description": "Operation status" + }, + "startTime": { + "readOnly": true, + "type": "string", + "format": "date-time", + "description": "Start time of the operation" + }, + "endTime": { + "readOnly": true, + "type": "string", + "format": "date-time", + "description": "End time of the operation" + }, + "error": { + "readOnly": true, + "$ref": "#/definitions/ApiError", + "description": "Api error" + } + }, + "description": "Operation status response" + }, "Resource": { "description": "The Resource model definition.", "properties": { From fa546f92703f69fabf94f3e104282d5e8d95965e Mon Sep 17 00:00:00 2001 From: xiowei Date: Mon, 21 May 2018 14:26:32 -0700 Subject: [PATCH 11/31] Updated the readme.md --- .../compute/resource-manager/readme.md | 33 +++++++------------ 1 file changed, 12 insertions(+), 21 deletions(-) diff --git a/specification/compute/resource-manager/readme.md b/specification/compute/resource-manager/readme.md index dc5b509f6c91..7e7b6aff1d12 100644 --- a/specification/compute/resource-manager/readme.md +++ b/specification/compute/resource-manager/readme.md @@ -34,7 +34,7 @@ These are the global settings for the Compute API. title: ComputeManagementClient description: Compute Client openapi-type: arm -tag: package-2018-06 +tag: package-2018-04-01 directive: - where: @@ -159,17 +159,21 @@ These settings apply only when `--tag=package-gallery-2018-06` is specified on t ``` yaml $(tag) == 'package-gallery-2018-06' input-file: - Microsoft.Compute/preview/2018-06-01/gallery.json +- Microsoft.Compute/stable/2018-04-01/compute.json +- Microsoft.Compute/stable/2018-04-01/runCommands.json +- Microsoft.Compute/stable/2017-09-01/skus.json +- Microsoft.Compute/stable/2018-04-01/disk.json +- Microsoft.ContainerService/stable/2017-01-31/containerService.json ``` -### Tag: package-2018-06 +### Tag: package-2018-04-01 -These settings apply only when `--tag=package-2018-06` is specified on the command line. +These settings apply only when `--tag=package-2018-04-01` is specified on the command line. -``` yaml $(tag) == 'package-2018-06' +``` yaml $(tag) == 'package-2018-04-01' input-file: -- Microsoft.Compute/preview/2018-06-01/gallery.json -- Microsoft.Compute/stable/2017-12-01/compute.json -- Microsoft.Compute/stable/2017-12-01/runCommands.json +- Microsoft.Compute/stable/2018-04-01/compute.json +- Microsoft.Compute/stable/2018-04-01/runCommands.json - Microsoft.Compute/stable/2017-09-01/skus.json - Microsoft.Compute/stable/2018-04-01/disk.json - Microsoft.ContainerService/stable/2017-01-31/containerService.json @@ -547,7 +551,6 @@ Generate all API versions currently shipped for this package ```yaml $(python) && $(multiapi) batch: - - tag: package-gallery-2018-06 - tag: package-disks-2018-04 - tag: package-compute-only-2017-12 - tag: package-skus-2017-09 @@ -557,17 +560,6 @@ batch: - tag: package-compute-2015-06 ``` -### Tag: package-gallery-2018-06 and python - -These settings apply only when `--tag=package-gallery-2018-06 --python` is specified on the command line. -Please also specify `--python-sdks-folder=`. - -``` yaml $(tag) == 'package-gallery-2018-06' && $(python) -python: - namespace: azure.mgmt.compute.v2018_06_01 - output-folder: $(python-sdks-folder)/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01 -``` - ### Tag: package-disks-2018-04 and python These settings apply only when `--tag=package-disks-2018-04 --python` is specified on the command line. @@ -659,5 +651,4 @@ java: license-header: MICROSOFT_MIT_NO_CODEGEN payload-flattening-threshold: 1 output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-compute -``` - +``` \ No newline at end of file From cdaa5b4ef14892180c293d4154ee4e1534a8247b Mon Sep 17 00:00:00 2001 From: xiowei Date: Mon, 21 May 2018 16:31:49 -0700 Subject: [PATCH 12/31] Updated the example. --- .../preview/2018-06-01/examples/CreateASimpleGallery.json | 8 +++++--- .../preview/2018-06-01/examples/UpdateAGallery.json | 3 +-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/CreateASimpleGallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/CreateASimpleGallery.json index e07dc73da9b5..aae88a8ba2eb 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/CreateASimpleGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/CreateASimpleGallery.json @@ -6,20 +6,22 @@ "galleryName": "myGalleryName", "gallery": { "location": "West US", - "properties": {} + "properties": { + "description": "This is the gallery description." + } } }, "responses": { "201": { "body": { "properties": { + "description": "This is the gallery description.", "identifier": { - "uniqueName": "{SUBSCRIPTION-ID}-MYGALLERYNAME" + "uniqueName": "{subscription-id}-MYGALLERYNAME" }, "provisioningState": "Creating" }, "location": "West US", - "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName", "name": "myGalleryName" } } diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/UpdateAGallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/UpdateAGallery.json index 1a6983867cb5..a5edec0af5e6 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/UpdateAGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/UpdateAGallery.json @@ -17,12 +17,11 @@ "properties": { "description": "A updated gallery description.", "identifier": { - "uniqueName": "{SUBSCRIPTION-ID}-MYGALLERYNAME" + "uniqueName": "{subscription-id}-MYGALLERYNAME" }, "provisioningState": "Updating" }, "location": "West US", - "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName", "name": "myGalleryName" } } From 5a18325cb485960e68580e68f13789f9453a420d Mon Sep 17 00:00:00 2001 From: xiowei Date: Mon, 21 May 2018 20:57:28 -0700 Subject: [PATCH 13/31] do some experiments. --- .../2018-06-01/examples/CreateASimpleGallery.json | 13 +++++++++++++ .../preview/2018-06-01/gallery.json | 3 --- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/CreateASimpleGallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/CreateASimpleGallery.json index aae88a8ba2eb..8eec105ed4a6 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/CreateASimpleGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/CreateASimpleGallery.json @@ -12,6 +12,19 @@ } }, "responses": { + "200": { + "body": { + "properties": { + "description": "This is the gallery description.", + "identifier": { + "uniqueName": "{subscription-id}-MYGALLERYNAME" + }, + "provisioningState": "Updating" + }, + "location": "West US", + "name": "myGalleryName" + } + }, "201": { "body": { "properties": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json index f028378760e0..1be45a671dda 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json @@ -92,9 +92,6 @@ "x-ms-examples": { "Create a simple gallery.": { "$ref": "./examples/CreateASimpleGallery.json" - }, - "Update a gallery.": { - "$ref": "./examples/UpdateAGallery.json" } } }, From e7bb836d7579dc4e924994ee9cbdf642fe49a6aa Mon Sep 17 00:00:00 2001 From: xiowei Date: Mon, 21 May 2018 21:27:11 -0700 Subject: [PATCH 14/31] Cleaned up unused files. --- ...json => CreateOrUpdateASimpleGallery.json} | 0 .../2018-06-01/examples/UpdateAGallery.json | 29 ------------------- .../preview/2018-06-01/gallery.json | 2 +- 3 files changed, 1 insertion(+), 30 deletions(-) rename specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/{CreateASimpleGallery.json => CreateOrUpdateASimpleGallery.json} (100%) delete mode 100644 specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/UpdateAGallery.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/CreateASimpleGallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/CreateOrUpdateASimpleGallery.json similarity index 100% rename from specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/CreateASimpleGallery.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/CreateOrUpdateASimpleGallery.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/UpdateAGallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/UpdateAGallery.json deleted file mode 100644 index a5edec0af5e6..000000000000 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/UpdateAGallery.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "myResourceGroup", - "api-version": "2018-06-01", - "galleryName": "myGalleryName", - "gallery": { - "location": "West US", - "properties": { - "description": "A updated gallery description." - } - } - }, - "responses": { - "200": { - "body": { - "properties": { - "description": "A updated gallery description.", - "identifier": { - "uniqueName": "{subscription-id}-MYGALLERYNAME" - }, - "provisioningState": "Updating" - }, - "location": "West US", - "name": "myGalleryName" - } - } - } -} \ No newline at end of file diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json index 1be45a671dda..34c030fe1990 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json @@ -91,7 +91,7 @@ "x-ms-long-running-operation": true, "x-ms-examples": { "Create a simple gallery.": { - "$ref": "./examples/CreateASimpleGallery.json" + "$ref": "./examples/CreateOrUpdateASimpleGallery.json" } } }, From 604b39f382486a8fa14d274e6878044abc1abdf9 Mon Sep 17 00:00:00 2001 From: xiowei Date: Wed, 23 May 2018 08:24:50 -0700 Subject: [PATCH 15/31] added empty example file. --- .../2018-06-01/examples/CreateOrUpdateASimpleGalleryImage.json | 0 .../examples/CreateOrUpdateASimpleGalleryImageVersion.json | 0 .../preview/2018-06-01/examples/DeleteAGallery.json | 0 .../preview/2018-06-01/examples/DeleteAGalleryImage.json | 0 .../preview/2018-06-01/examples/DeleteAGalleryImageVersion.json | 0 .../preview/2018-06-01/examples/GetAGallery.json | 0 .../preview/2018-06-01/examples/GetAGalleryImage.json | 0 .../preview/2018-06-01/examples/GetAGalleryImageVersion.json | 0 8 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/CreateOrUpdateASimpleGalleryImage.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/CreateOrUpdateASimpleGalleryImageVersion.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/DeleteAGallery.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/DeleteAGalleryImage.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/DeleteAGalleryImageVersion.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/GetAGallery.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/GetAGalleryImage.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/GetAGalleryImageVersion.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/CreateOrUpdateASimpleGalleryImage.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/CreateOrUpdateASimpleGalleryImage.json new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/CreateOrUpdateASimpleGalleryImageVersion.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/CreateOrUpdateASimpleGalleryImageVersion.json new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/DeleteAGallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/DeleteAGallery.json new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/DeleteAGalleryImage.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/DeleteAGalleryImage.json new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/DeleteAGalleryImageVersion.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/DeleteAGalleryImageVersion.json new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/GetAGallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/GetAGallery.json new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/GetAGalleryImage.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/GetAGalleryImage.json new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/GetAGalleryImageVersion.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/GetAGalleryImageVersion.json new file mode 100644 index 000000000000..e69de29bb2d1 From e8b5fbd426c8caab6694b2b8d8d016893ac9aa0d Mon Sep 17 00:00:00 2001 From: xiowei Date: Wed, 23 May 2018 08:29:59 -0700 Subject: [PATCH 16/31] Added example for GetGallery api. --- .../2018-06-01/examples/GetAGallery.json | 23 +++++++++++++++++++ .../preview/2018-06-01/gallery.json | 7 +++++- 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/GetAGallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/GetAGallery.json index e69de29bb2d1..feb11900e5ef 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/GetAGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/GetAGallery.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2018-06-01", + "galleryName": "myGalleryName" + }, + "responses": { + "200": { + "body": { + "properties": { + "description": "This is the gallery description.", + "identifier": { + "uniqueName": "{subscription-id}-MYGALLERYNAME" + }, + "provisioningState": "Succeeded" + }, + "location": "West US", + "name": "myGalleryName" + } + } + } +} \ No newline at end of file diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json index 34c030fe1990..bd4088f3ff9c 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json @@ -90,7 +90,7 @@ }, "x-ms-long-running-operation": true, "x-ms-examples": { - "Create a simple gallery.": { + "Create or update a simple gallery.": { "$ref": "./examples/CreateOrUpdateASimpleGallery.json" } } @@ -132,6 +132,11 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "Get a gallery.": { + "$ref": "./examples/GetAGallery.json" + } } }, "delete": { From 7477feb1db4b10e6f10a86a4d6034ed0081e46ad Mon Sep 17 00:00:00 2001 From: xiowei Date: Wed, 23 May 2018 08:34:51 -0700 Subject: [PATCH 17/31] Added example for DeleteGallery api. Passed the local validation. --- .../preview/2018-06-01/examples/DeleteAGallery.json | 13 +++++++++++++ .../preview/2018-06-01/gallery.json | 7 ++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/DeleteAGallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/DeleteAGallery.json index e69de29bb2d1..9233c51b0fd7 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/DeleteAGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/DeleteAGallery.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2018-06-01", + "galleryName": "myGalleryName" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json index bd4088f3ff9c..fe840c4a9327 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json @@ -183,7 +183,12 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Delete a gallery.": { + "$ref": "./examples/DeleteAGallery.json" + } + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}": { From bbde0de45ae9c42e898508891ca539c063c9584a Mon Sep 17 00:00:00 2001 From: xiowei Date: Wed, 23 May 2018 08:54:12 -0700 Subject: [PATCH 18/31] Added example for PutGalleryImage api. Passed the local validation. --- .../CreateOrUpdateASimpleGalleryImage.json | 55 +++++++++++++++++++ .../preview/2018-06-01/gallery.json | 7 ++- 2 files changed, 61 insertions(+), 1 deletion(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/CreateOrUpdateASimpleGalleryImage.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/CreateOrUpdateASimpleGalleryImage.json index e69de29bb2d1..379b26797ae6 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/CreateOrUpdateASimpleGalleryImage.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/CreateOrUpdateASimpleGalleryImage.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2018-06-01", + "galleryName": "myGalleryName", + "galleryImageName": "myGalleryImageName", + "galleryImage": { + "location": "West US", + "properties": { + "osType": "Windows", + "osState": "Generalized", + "identifier": { + "publisher": "myPublisherName", + "offer": "myOfferName", + "sku": "mySkuName" + } + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "osType": "Windows", + "osState": "Generalized", + "identifier": { + "publisher": "myPublisherName", + "offer": "myOfferName", + "sku": "mySkuName" + }, + "provisioningState": "Updating" + }, + "location": "West US", + "name": "myGalleryImageName" + } + }, + "201": { + "body": { + "properties": { + "osType": "Windows", + "osState": "Generalized", + "identifier": { + "publisher": "myPublisherName", + "offer": "myOfferName", + "sku": "mySkuName" + }, + "provisioningState": "Creating" + }, + "location": "West US", + "name": "myGalleryImageName" + } + } + } +} \ No newline at end of file diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json index fe840c4a9327..6a290002fd8e 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json @@ -252,7 +252,12 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Create or update a simple gallery image.": { + "$ref": "./examples/CreateOrUpdateASimpleGalleryImage.json" + } + } }, "get": { "tags": [ From 14e0a17a4dbc6fce24137388a434632b90f4be50 Mon Sep 17 00:00:00 2001 From: xiowei Date: Wed, 23 May 2018 08:57:32 -0700 Subject: [PATCH 19/31] Added example for GetGalleryImage api. Passed the local validation. --- .../2018-06-01/examples/GetAGalleryImage.json | 27 +++++++++++++++++++ .../preview/2018-06-01/gallery.json | 5 ++++ 2 files changed, 32 insertions(+) diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/GetAGalleryImage.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/GetAGalleryImage.json index e69de29bb2d1..1e7ea418e867 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/GetAGalleryImage.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/GetAGalleryImage.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2018-06-01", + "galleryName": "myGalleryName", + "galleryImageName": "myGalleryImageName" + }, + "responses": { + "200": { + "body": { + "properties": { + "osType": "Windows", + "osState": "Generalized", + "identifier": { + "publisher": "myPublisherName", + "offer": "myOfferName", + "sku": "mySkuName" + }, + "provisioningState": "Succeeded" + }, + "location": "West US", + "name": "myGalleryImageName" + } + } + } +} \ No newline at end of file diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json index 6a290002fd8e..6eb03b87df0c 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json @@ -303,6 +303,11 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "Get a gallery image.": { + "$ref": "./examples/GetAGalleryImage.json" + } } }, "delete": { From f5bd197772ed89a218331652f4cb05e9aea9d832 Mon Sep 17 00:00:00 2001 From: xiowei Date: Wed, 23 May 2018 08:59:30 -0700 Subject: [PATCH 20/31] Added example for DeleteGalleryImage api. Passed the local validation. --- .../2018-06-01/examples/DeleteAGalleryImage.json | 14 ++++++++++++++ .../preview/2018-06-01/gallery.json | 7 ++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/DeleteAGalleryImage.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/DeleteAGalleryImage.json index e69de29bb2d1..f9ee37fdc479 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/DeleteAGalleryImage.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/DeleteAGalleryImage.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2018-06-01", + "galleryName": "myGalleryName", + "galleryImageName": "myGalleryImageName" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json index 6eb03b87df0c..12d8b9667de5 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json @@ -361,7 +361,12 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Delete a gallery image.": { + "$ref": "./examples/DeleteAGalleryImage.json" + } + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}": { From 0329884956bbe00a07e6c5f34930dcab1cf4931c Mon Sep 17 00:00:00 2001 From: xiowei Date: Wed, 23 May 2018 09:14:22 -0700 Subject: [PATCH 21/31] Added example for PutGalleryImageVersion api. Passed the local validation. --- ...ateOrUpdateASimpleGalleryImageVersion.json | 61 +++++++++++++++++++ .../preview/2018-06-01/gallery.json | 7 ++- 2 files changed, 67 insertions(+), 1 deletion(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/CreateOrUpdateASimpleGalleryImageVersion.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/CreateOrUpdateASimpleGalleryImageVersion.json index e69de29bb2d1..0a74f0154d4f 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/CreateOrUpdateASimpleGalleryImageVersion.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/CreateOrUpdateASimpleGalleryImageVersion.json @@ -0,0 +1,61 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2018-06-01", + "galleryName": "myGalleryName", + "galleryImageName": "myGalleryImageName", + "galleryImageVersionName": "1.0.0", + "galleryImageVersion": { + "location": "West US", + "properties": { + "publishingProfile": { + "regions": ["West US", "East US"], + "source": { + "managedImage": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" + } + } + } + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "publishingProfile": { + "regions": ["West US", "East US"], + "source": { + "managedImage": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" + } + }, + "publishedDate": "yyyy-MM-dd" + }, + "provisioningState": "Updating" + }, + "location": "West US", + "name": "1.0.0" + } + }, + "201": { + "body": { + "properties": { + "publishingProfile": { + "regions": ["West US", "East US"], + "source": { + "managedImage": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" + } + }, + "publishedDate": "yyyy-MM-dd" + }, + "provisioningState": "Creating" + }, + "location": "West US", + "name": "1.0.0" + } + } + } +} \ No newline at end of file diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json index 12d8b9667de5..28f02c6d4a01 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json @@ -437,7 +437,12 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Create or update a simple gallery image version.": { + "$ref": "./examples/CreateOrUpdateASimpleGalleryImageVersion.json" + } + } }, "get": { "tags": [ From 7c9b26bea76d9dba20904dee693dabc90a5e40fc Mon Sep 17 00:00:00 2001 From: xiowei Date: Wed, 23 May 2018 09:39:06 -0700 Subject: [PATCH 22/31] Added example for GetGalleryImageVersion api. Passed the local validation. --- .../examples/GetAGalleryImageVersion.json | 56 ++++++++++++++ ...leryImageVersionWithReplicationStatus.json | 74 +++++++++++++++++++ .../preview/2018-06-01/gallery.json | 8 ++ 3 files changed, 138 insertions(+) create mode 100644 specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/GetAGalleryImageVersionWithReplicationStatus.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/GetAGalleryImageVersion.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/GetAGalleryImageVersion.json index e69de29bb2d1..e25263ec85c1 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/GetAGalleryImageVersion.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/GetAGalleryImageVersion.json @@ -0,0 +1,56 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2018-06-01", + "galleryName": "myGalleryName", + "galleryImageName": "myGalleryImageName", + "galleryImageVersionName": "1.0.0", + "galleryImageVersion": { + "location": "West US", + "properties": { + "publishingProfile": { + "regions": ["West US", "East US"], + "source": { + "managedImage": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" + } + } + } + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "publishingProfile": { + "regions": ["West US", "East US"], + "source": { + "managedImage": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" + } + }, + "publishedDate": "yyyy-MM-dd" + }, + "GalleryImageVersionStorageProfile": { + "osDiskImage": { + "sizedInGB": 10, + "hostCaching": "ReadOnly" + }, + "dataDiskImages": [ + { + "lun": 1, + "sizedInGB": 10, + "hostCaching": "None" + } + ] + }, + "provisioningState": "Succeeded" + }, + "location": "West US", + "name": "1.0.0" + } + } + } +} \ No newline at end of file diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/GetAGalleryImageVersionWithReplicationStatus.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/GetAGalleryImageVersionWithReplicationStatus.json new file mode 100644 index 000000000000..28a35c4ddf58 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/GetAGalleryImageVersionWithReplicationStatus.json @@ -0,0 +1,74 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2018-06-01", + "galleryName": "myGalleryName", + "galleryImageName": "myGalleryImageName", + "galleryImageVersionName": "1.0.0", + "galleryImageVersion": { + "location": "West US", + "properties": { + "publishingProfile": { + "regions": ["West US", "East US"], + "source": { + "managedImage": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" + } + } + } + } + }, + "$expand": "ReplicationStatus" + }, + "responses": { + "200": { + "body": { + "properties": { + "publishingProfile": { + "regions": ["West US", "East US"], + "source": { + "managedImage": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" + } + }, + "publishedDate": "yyyy-MM-dd" + }, + "GalleryImageVersionStorageProfile": { + "osDiskImage": { + "sizedInGB": 10, + "hostCaching": "ReadOnly" + }, + "dataDiskImages": [ + { + "lun": 1, + "sizedInGB": 10, + "hostCaching": "None" + } + ] + }, + "replicationStatus": { + "aggregatedState": "Completed", + "summary": [ + { + "region": "West US", + "state": "Completed", + "details": "", + "progress": 100 + }, + { + "region": "East US", + "state": "Completed", + "details": "", + "progress": 100 + } + ] + }, + "provisioningState": "Succeeded" + }, + "location": "West US", + "name": "1.0.0" + } + } + } +} \ No newline at end of file diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json index 28f02c6d4a01..91e93eda6424 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json @@ -509,6 +509,14 @@ "$ref": "#/definitions/CloudError" } } + }, + "x-ms-examples": { + "Get a gallery image version.": { + "$ref": "./examples/GetAGalleryImageVersion.json" + }, + "Get a gallery image version with replication status.": { + "$ref": "./examples/GetAGalleryImageVersionWithReplicationStatus.json" + } } }, "delete": { From 6f4661cea413cfb6218cb71c2890577c1c056dca Mon Sep 17 00:00:00 2001 From: xiowei Date: Wed, 23 May 2018 09:41:22 -0700 Subject: [PATCH 23/31] Added example for DeleteGalleryImageVersion api. Passed the local validation. --- .../examples/DeleteAGalleryImageVersion.json | 15 +++++++++++++++ .../preview/2018-06-01/gallery.json | 7 ++++++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/DeleteAGalleryImageVersion.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/DeleteAGalleryImageVersion.json index e69de29bb2d1..832d7480e7fc 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/DeleteAGalleryImageVersion.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/DeleteAGalleryImageVersion.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2018-06-01", + "galleryName": "myGalleryName", + "galleryImageName": "myGalleryImageName", + "galleryImageVersionName": "1.0.0" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json index 91e93eda6424..32e312e63999 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json @@ -577,7 +577,12 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Delete a gallery image version.": { + "$ref": "./examples/DeleteAGalleryImageVersion.json" + } + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries": { From 8e46ef91ecbe91054993e26f930c28b8c111e2c5 Mon Sep 17 00:00:00 2001 From: xiowei Date: Wed, 23 May 2018 09:59:31 -0700 Subject: [PATCH 24/31] Added example for ListGalleriesInAResourceGroup api. Passed the local validation. --- .../ListGalleriesInAResourceGroup.json | 27 +++++++++++++++++++ .../preview/2018-06-01/gallery.json | 5 ++++ 2 files changed, 32 insertions(+) create mode 100644 specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/ListGalleriesInAResourceGroup.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/ListGalleriesInAResourceGroup.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/ListGalleriesInAResourceGroup.json new file mode 100644 index 000000000000..25c7e9915cef --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/ListGalleriesInAResourceGroup.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2018-06-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "description": "This is the gallery description.", + "identifier": { + "uniqueName": "{subscription-id}-MYGALLERYNAME" + }, + "provisioningState": "Succeeded" + }, + "location": "West US", + "name": "myGalleryName", + "id": "/subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json index 32e312e63999..bbc0c3fd7fd3 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json @@ -617,6 +617,11 @@ } } }, + "x-ms-examples": { + "List galleries in a resource group.": { + "$ref": "./examples/ListGalleriesInAResourceGroup.json" + } + }, "x-ms-pageable": { "nextLinkName": "nextLink" } From ee7a6de71324ccc3afea187164e5151bc8a2af8c Mon Sep 17 00:00:00 2001 From: xiowei Date: Wed, 23 May 2018 10:03:45 -0700 Subject: [PATCH 25/31] Added example for ListGalleriesInASubscription api. Passed the local validation. --- .../ListGalleriesInAResourceGroup.json | 2 +- .../ListGalleriesInASubscription.json | 26 +++++++++++++++++++ .../preview/2018-06-01/gallery.json | 5 ++++ 3 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/ListGalleriesInASubscription.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/ListGalleriesInAResourceGroup.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/ListGalleriesInAResourceGroup.json index 25c7e9915cef..67cb95f42f39 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/ListGalleriesInAResourceGroup.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/ListGalleriesInAResourceGroup.json @@ -18,7 +18,7 @@ }, "location": "West US", "name": "myGalleryName", - "id": "/subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName" + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName" } ] } diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/ListGalleriesInASubscription.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/ListGalleriesInASubscription.json new file mode 100644 index 000000000000..a548d473ab71 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/ListGalleriesInASubscription.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "api-version": "2018-06-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "description": "This is the gallery description.", + "identifier": { + "uniqueName": "{subscription-id}-MYGALLERYNAME" + }, + "provisioningState": "Succeeded" + }, + "location": "West US", + "name": "myGalleryName", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json index bbc0c3fd7fd3..83175ddc3a2a 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json @@ -656,6 +656,11 @@ } } }, + "x-ms-examples": { + "List galleries in a subscription.": { + "$ref": "./examples/ListGalleriesInASubscription.json" + } + }, "x-ms-pageable": { "nextLinkName": "nextLink" } From 3619af81fbea46180bc45a5eb96377bf0b7a3f26 Mon Sep 17 00:00:00 2001 From: xiowei Date: Wed, 23 May 2018 10:26:02 -0700 Subject: [PATCH 26/31] Added example for ListGalleryImagesInGallery api. Passed the local validation. --- .../ListGalleriesInAResourceGroup.json | 3 +- .../ListGalleriesInASubscription.json | 3 +- .../examples/ListGalleryImagesInAGallery.json | 31 +++++++++++++++++++ .../preview/2018-06-01/gallery.json | 5 +++ 4 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/ListGalleryImagesInAGallery.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/ListGalleriesInAResourceGroup.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/ListGalleriesInAResourceGroup.json index 67cb95f42f39..2b59e50f1759 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/ListGalleriesInAResourceGroup.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/ListGalleriesInAResourceGroup.json @@ -20,7 +20,8 @@ "name": "myGalleryName", "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName" } - ] + ], + "nextLink":"http://svchost:99/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries?$skiptoken={token}/Subscriptions/{subscriptionId}/ResourceGroups/myResourceGroup/galleries/myGalleryName" } } } diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/ListGalleriesInASubscription.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/ListGalleriesInASubscription.json index a548d473ab71..1f6b5b43eeb3 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/ListGalleriesInASubscription.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/ListGalleriesInASubscription.json @@ -19,7 +19,8 @@ "name": "myGalleryName", "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName" } - ] + ], + "nextLink":"http://svchost:99/subscriptions/{subscriptionId}/providers/Microsoft.Compute/galleries?$skiptoken={token}/Subscriptions/{subscriptionId}/ResourceGroups/myResourceGroup/galleries/myGalleryName" } } } diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/ListGalleryImagesInAGallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/ListGalleryImagesInAGallery.json new file mode 100644 index 000000000000..785d36e1692c --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/ListGalleryImagesInAGallery.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2018-06-01", + "galleryName": "myGalleryName" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "osType": "Windows", + "osState": "Generalized", + "identifier": { + "publisher": "myPublisherName", + "offer": "myOfferName", + "sku": "mySkuName" + }, + "provisioningState": "Succeeded" + }, + "location": "West US", + "name": "myGalleryImageName" + } + ], + "nextLink":"http://svchost:99/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName/images?$skiptoken={token}/Subscriptions/{subscriptionId}/ResourceGroups/myResourceGroup/galleries/myGalleryName/images/myGalleryImageName" + } + } + } +} \ No newline at end of file diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json index 83175ddc3a2a..249be8de08a8 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json @@ -705,6 +705,11 @@ } } }, + "x-ms-examples": { + "List gallery images in a gallery.": { + "$ref": "./examples/ListGalleryImagesInAGallery.json" + } + }, "x-ms-pageable": { "nextLinkName": "nextLink" } From e5ef375aa3a58c1826c17e2ac71e1afcd17e9ff9 Mon Sep 17 00:00:00 2001 From: xiowei Date: Wed, 23 May 2018 10:31:04 -0700 Subject: [PATCH 27/31] Added example for ListGalleryImageVersionsInGalleryImage api. Passed the local validation. --- ...stGalleryImageVersionsInAGalleryImage.json | 47 +++++++++++++++++++ .../preview/2018-06-01/gallery.json | 5 ++ 2 files changed, 52 insertions(+) create mode 100644 specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/ListGalleryImageVersionsInAGalleryImage.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/ListGalleryImageVersionsInAGalleryImage.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/ListGalleryImageVersionsInAGalleryImage.json new file mode 100644 index 000000000000..6df44fa65bbc --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/ListGalleryImageVersionsInAGalleryImage.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2018-06-01", + "galleryName": "myGalleryName", + "galleryImageName": "myGalleryImageName" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "publishingProfile": { + "regions": ["West US", "East US"], + "source": { + "managedImage": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" + } + }, + "publishedDate": "yyyy-MM-dd" + }, + "GalleryImageVersionStorageProfile": { + "osDiskImage": { + "sizedInGB": 10, + "hostCaching": "ReadOnly" + }, + "dataDiskImages": [ + { + "lun": 1, + "sizedInGB": 10, + "hostCaching": "None" + } + ] + }, + "provisioningState": "Succeeded" + }, + "location": "West US", + "name": "1.0.0" + } + ], + "nextLink":"http://svchost:99/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName/images/myGalleryImageName/versions?$skiptoken={token}/Subscriptions/{subscriptionId}/ResourceGroups/myResourceGroup/galleries/myGalleryName/images/myGalleryImageName/versions/myGalleryImageVersionName" + } + } + } +} \ No newline at end of file diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json index 249be8de08a8..eb05993b881f 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/gallery.json @@ -761,6 +761,11 @@ } } }, + "x-ms-examples": { + "List gallery image versions in a gallery image.": { + "$ref": "./examples/ListGalleryImageVersionsInAGalleryImage.json" + } + }, "x-ms-pageable": { "nextLinkName": "nextLink" } From ce1cfe9e016fed7f5a96acbeab539a66204bc38a Mon Sep 17 00:00:00 2001 From: xiowei Date: Wed, 23 May 2018 11:15:28 -0700 Subject: [PATCH 28/31] Fixed typos in the example provided. --- .../examples/CreateOrUpdateASimpleGalleryImageVersion.json | 4 ++-- .../preview/2018-06-01/examples/GetAGalleryImageVersion.json | 2 +- .../GetAGalleryImageVersionWithReplicationStatus.json | 2 +- .../examples/ListGalleryImageVersionsInAGalleryImage.json | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/CreateOrUpdateASimpleGalleryImageVersion.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/CreateOrUpdateASimpleGalleryImageVersion.json index 0a74f0154d4f..b97fe8290c6e 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/CreateOrUpdateASimpleGalleryImageVersion.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/CreateOrUpdateASimpleGalleryImageVersion.json @@ -31,7 +31,7 @@ "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" } }, - "publishedDate": "yyyy-MM-dd" + "publishedDate": "2018-01-01" }, "provisioningState": "Updating" }, @@ -49,7 +49,7 @@ "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" } }, - "publishedDate": "yyyy-MM-dd" + "publishedDate": "2018-01-01" }, "provisioningState": "Creating" }, diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/GetAGalleryImageVersion.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/GetAGalleryImageVersion.json index e25263ec85c1..7ca851f5212f 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/GetAGalleryImageVersion.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/GetAGalleryImageVersion.json @@ -33,7 +33,7 @@ }, "publishedDate": "yyyy-MM-dd" }, - "GalleryImageVersionStorageProfile": { + "storageProfile": { "osDiskImage": { "sizedInGB": 10, "hostCaching": "ReadOnly" diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/GetAGalleryImageVersionWithReplicationStatus.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/GetAGalleryImageVersionWithReplicationStatus.json index 28a35c4ddf58..86e04cd482d5 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/GetAGalleryImageVersionWithReplicationStatus.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/GetAGalleryImageVersionWithReplicationStatus.json @@ -34,7 +34,7 @@ }, "publishedDate": "yyyy-MM-dd" }, - "GalleryImageVersionStorageProfile": { + "storageProfile": { "osDiskImage": { "sizedInGB": 10, "hostCaching": "ReadOnly" diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/ListGalleryImageVersionsInAGalleryImage.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/ListGalleryImageVersionsInAGalleryImage.json index 6df44fa65bbc..2e340e3ff8d8 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/ListGalleryImageVersionsInAGalleryImage.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/ListGalleryImageVersionsInAGalleryImage.json @@ -21,7 +21,7 @@ }, "publishedDate": "yyyy-MM-dd" }, - "GalleryImageVersionStorageProfile": { + "storageProfile": { "osDiskImage": { "sizedInGB": 10, "hostCaching": "ReadOnly" From 98063fc180893abe6033c11e4429763bd87f63d5 Mon Sep 17 00:00:00 2001 From: xiowei Date: Wed, 23 May 2018 11:31:13 -0700 Subject: [PATCH 29/31] Fixed typos in the example provided. --- .../preview/2018-06-01/examples/GetAGalleryImageVersion.json | 2 +- .../examples/GetAGalleryImageVersionWithReplicationStatus.json | 2 +- .../examples/ListGalleryImageVersionsInAGalleryImage.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/GetAGalleryImageVersion.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/GetAGalleryImageVersion.json index 7ca851f5212f..6d19d13a9b08 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/GetAGalleryImageVersion.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/GetAGalleryImageVersion.json @@ -31,7 +31,7 @@ "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" } }, - "publishedDate": "yyyy-MM-dd" + "publishedDate": "2018-01-01" }, "storageProfile": { "osDiskImage": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/GetAGalleryImageVersionWithReplicationStatus.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/GetAGalleryImageVersionWithReplicationStatus.json index 86e04cd482d5..d5ae12d3bd82 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/GetAGalleryImageVersionWithReplicationStatus.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/GetAGalleryImageVersionWithReplicationStatus.json @@ -32,7 +32,7 @@ "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" } }, - "publishedDate": "yyyy-MM-dd" + "publishedDate": "2018-01-01" }, "storageProfile": { "osDiskImage": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/ListGalleryImageVersionsInAGalleryImage.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/ListGalleryImageVersionsInAGalleryImage.json index 2e340e3ff8d8..2649bddab2cb 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/ListGalleryImageVersionsInAGalleryImage.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2018-06-01/examples/ListGalleryImageVersionsInAGalleryImage.json @@ -19,7 +19,7 @@ "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" } }, - "publishedDate": "yyyy-MM-dd" + "publishedDate": "2018-01-01" }, "storageProfile": { "osDiskImage": { From 70f7a27c6f5587f2977c7d0a02a5a5c653ce4bf9 Mon Sep 17 00:00:00 2001 From: xiowei Date: Wed, 23 May 2018 11:40:12 -0700 Subject: [PATCH 30/31] Added the supression for gallery, gallery image, and gallery image version. --- specification/compute/resource-manager/readme.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/specification/compute/resource-manager/readme.md b/specification/compute/resource-manager/readme.md index 7e7b6aff1d12..009c8fbef0f9 100644 --- a/specification/compute/resource-manager/readme.md +++ b/specification/compute/resource-manager/readme.md @@ -144,11 +144,22 @@ directive: - $.definitions.VirtualMachineImage suppress: - TrackedResourcePatchOperation - - where: - $.definitions.VirtualMachineImageResource suppress: - TrackedResourceGetOperation + - where: + - $.definitions.Gallery + suppress: + - TrackedResourceGetOperation + - where: + - $.definitions.GalleryImage + suppress: + - TrackedResourceGetOperation + - where: + - $.definitions.GalleryImageVersion + suppress: + - TrackedResourceGetOperation ``` From 4c609392940005172d1ed95b6bd81b93d0cd43df Mon Sep 17 00:00:00 2001 From: xiowei Date: Wed, 23 May 2018 11:50:58 -0700 Subject: [PATCH 31/31] Correct the suppression. --- specification/compute/resource-manager/readme.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/compute/resource-manager/readme.md b/specification/compute/resource-manager/readme.md index 009c8fbef0f9..f490e3056b85 100644 --- a/specification/compute/resource-manager/readme.md +++ b/specification/compute/resource-manager/readme.md @@ -151,15 +151,15 @@ directive: - where: - $.definitions.Gallery suppress: - - TrackedResourceGetOperation + - TrackedResourcePatchOperation - where: - $.definitions.GalleryImage suppress: - - TrackedResourceGetOperation + - TrackedResourcePatchOperation - where: - $.definitions.GalleryImageVersion suppress: - - TrackedResourceGetOperation + - TrackedResourcePatchOperation ```