swagger: "2.0"
schemes:
  - https
host: management.azure.com
info:
  description: Shared Image Gallery Service Client.
  title: SharedImageGalleryServiceClient
  version: 2019-07-01
  x-apisguru-categories:
    - cloud
  x-logo:
    url: https://api.apis.guru/v2/cache/logo/https_assets.onestore.ms_cdnfiles_onestorerolling-1606-01000_shell_v3_images_logo_microsoft.png
  x-origin:
    - format: swagger
      url: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/compute/resource-manager/Microsoft.Compute/stable/2019-07-01/gallery.json
      version: "2.0"
  x-preferred: true
  x-providerName: azure.com
  x-serviceName: compute-gallery
  x-tags:
    - Azure
    - Microsoft
consumes:
  - application/json
produces:
  - application/json
securityDefinitions:
  azure_auth:
    authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
    description: Azure Active Directory OAuth2 Flow
    flow: implicit
    scopes:
      user_impersonation: impersonate your user account
    type: oauth2
security:
  - azure_auth:
      - user_impersonation
parameters:
  ApiVersionParameter:
    description: Client Api Version.
    in: query
    name: api-version
    required: true
    type: string
  ResourceGroupNameParameter:
    description: The name of the resource group.
    in: path
    name: resourceGroupName
    required: true
    type: string
    x-ms-parameter-location: method
  SubscriptionIdParameter:
    description: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
    in: path
    name: subscriptionId
    required: true
    type: string
paths:
  "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/galleries":
    get:
      description: List galleries under a subscription.
      operationId: Galleries_List
      parameters:
        - $ref: "#/parameters/SubscriptionIdParameter"
        - $ref: "#/parameters/ApiVersionParameter"
      responses:
        "200":
          description: OK
          schema:
            $ref: "#/definitions/GalleryList"
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: "#/definitions/CloudError"
      tags:
        - Galleries
      x-ms-examples:
        List galleries in a subscription.:
          parameters:
            api-version: 2019-07-01
            subscriptionId: "{subscription-id}"
          responses:
            "200":
              body:
                nextLink: http://svchost:99/subscriptions/{subscriptionId}/providers/Microsoft.Compute/galleries?$skiptoken={token}/Subscriptions/{subscriptionId}/ResourceGroups/myResourceGroup/galleries/myGalleryName
                value:
                  - id: /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName
                    location: West US
                    name: myGalleryName
                    properties:
                      description: This is the gallery description.
                      identifier:
                        uniqueName: "{subscription-id}-MYGALLERYNAME"
                      provisioningState: Succeeded
      x-ms-pageable:
        nextLinkName: nextLink
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries":
    get:
      description: List galleries under a resource group.
      operationId: Galleries_ListByResourceGroup
      parameters:
        - $ref: "#/parameters/SubscriptionIdParameter"
        - $ref: "#/parameters/ResourceGroupNameParameter"
        - $ref: "#/parameters/ApiVersionParameter"
      responses:
        "200":
          description: OK
          schema:
            $ref: "#/definitions/GalleryList"
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: "#/definitions/CloudError"
      tags:
        - Galleries
      x-ms-examples:
        List galleries in a resource group.:
          parameters:
            api-version: 2019-07-01
            resourceGroupName: myResourceGroup
            subscriptionId: "{subscription-id}"
          responses:
            "200":
              body:
                nextLink: http://svchost:99/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries?$skiptoken={token}/Subscriptions/{subscriptionId}/ResourceGroups/myResourceGroup/galleries/myGalleryName
                value:
                  - id: /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName
                    location: West US
                    name: myGalleryName
                    properties:
                      description: This is the gallery description.
                      identifier:
                        uniqueName: "{subscription-id}-MYGALLERYNAME"
                      provisioningState: Succeeded
      x-ms-pageable:
        nextLinkName: nextLink
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}":
    delete:
      description: Delete a Shared Image Gallery.
      operationId: Galleries_Delete
      parameters:
        - $ref: "#/parameters/SubscriptionIdParameter"
        - $ref: "#/parameters/ResourceGroupNameParameter"
        - description: The name of the Shared Image Gallery to be deleted.
          in: path
          name: galleryName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
      responses:
        "200":
          description: OK
        "202":
          description: Accepted
        "204":
          description: No Content
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: "#/definitions/CloudError"
      tags:
        - Galleries
      x-ms-examples:
        Delete a gallery.:
          parameters:
            api-version: 2019-07-01
            galleryName: myGalleryName
            resourceGroupName: myResourceGroup
            subscriptionId: "{subscription-id}"
          responses:
            "200": {}
            "202": {}
            "204": {}
      x-ms-long-running-operation: true
    get:
      description: Retrieves information about a Shared Image Gallery.
      operationId: Galleries_Get
      parameters:
        - $ref: "#/parameters/SubscriptionIdParameter"
        - $ref: "#/parameters/ResourceGroupNameParameter"
        - description: The name of the Shared Image Gallery.
          in: path
          name: galleryName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
      responses:
        "200":
          description: OK
          schema:
            $ref: "#/definitions/Gallery"
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: "#/definitions/CloudError"
      tags:
        - Galleries
      x-ms-examples:
        Get a gallery.:
          parameters:
            api-version: 2019-07-01
            galleryName: myGalleryName
            resourceGroupName: myResourceGroup
            subscriptionId: "{subscription-id}"
          responses:
            "200":
              body:
                location: West US
                name: myGalleryName
                properties:
                  description: This is the gallery description.
                  identifier:
                    uniqueName: "{subscription-id}-MYGALLERYNAME"
                  provisioningState: Succeeded
    patch:
      description: Update a Shared Image Gallery.
      operationId: Galleries_Update
      parameters:
        - $ref: "#/parameters/SubscriptionIdParameter"
        - $ref: "#/parameters/ResourceGroupNameParameter"
        - description: The name of the Shared Image Gallery. The allowed characters are alphabets and numbers with dots and periods allowed in the middle. The maximum length is 80 characters.
          in: path
          name: galleryName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
        - description: Parameters supplied to the update Shared Image Gallery operation.
          in: body
          name: gallery
          required: true
          schema:
            $ref: "#/definitions/GalleryUpdate"
      responses:
        "200":
          description: OK
          schema:
            $ref: "#/definitions/Gallery"
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: "#/definitions/CloudError"
      tags:
        - Galleries
      x-ms-examples:
        Update a simple gallery.:
          parameters:
            api-version: 2019-07-01
            gallery:
              properties:
                description: This is the gallery description.
            galleryName: myGalleryName
            resourceGroupName: myResourceGroup
            subscriptionId: "{subscription-id}"
          responses:
            "200":
              body:
                location: West US
                name: myGalleryName
                properties:
                  description: This is the gallery description.
                  identifier:
                    uniqueName: "{subscription-id}-MYGALLERYNAME"
                  provisioningState: Updating
      x-ms-long-running-operation: true
    put:
      description: Create or update a Shared Image Gallery.
      operationId: Galleries_CreateOrUpdate
      parameters:
        - $ref: "#/parameters/SubscriptionIdParameter"
        - $ref: "#/parameters/ResourceGroupNameParameter"
        - description: The name of the Shared Image Gallery. The allowed characters are alphabets and numbers with dots and periods allowed in the middle. The maximum length is 80 characters.
          in: path
          name: galleryName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
        - description: Parameters supplied to the create or update Shared Image Gallery operation.
          in: body
          name: gallery
          required: true
          schema:
            $ref: "#/definitions/Gallery"
      responses:
        "200":
          description: OK
          schema:
            $ref: "#/definitions/Gallery"
        "201":
          description: Created
          schema:
            $ref: "#/definitions/Gallery"
        "202":
          description: Accepted
          schema:
            $ref: "#/definitions/Gallery"
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: "#/definitions/CloudError"
      tags:
        - Galleries
      x-ms-examples:
        Create or update a simple gallery.:
          parameters:
            api-version: 2019-07-01
            gallery:
              location: West US
              properties:
                description: This is the gallery description.
            galleryName: myGalleryName
            resourceGroupName: myResourceGroup
            subscriptionId: "{subscription-id}"
          responses:
            "200":
              body:
                location: West US
                name: myGalleryName
                properties:
                  description: This is the gallery description.
                  identifier:
                    uniqueName: "{subscription-id}-MYGALLERYNAME"
                  provisioningState: Updating
            "201":
              body:
                location: West US
                name: myGalleryName
                properties:
                  description: This is the gallery description.
                  identifier:
                    uniqueName: "{subscription-id}-MYGALLERYNAME"
                  provisioningState: Creating
            "202":
              body:
                location: West US
                name: myGalleryName
                properties:
                  description: This is the gallery description.
                  identifier:
                    uniqueName: "{subscription-id}-MYGALLERYNAME"
                  provisioningState: Updating
      x-ms-long-running-operation: true
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications":
    get:
      description: List gallery Application Definitions in a gallery.
      operationId: GalleryApplications_ListByGallery
      parameters:
        - $ref: "#/parameters/SubscriptionIdParameter"
        - $ref: "#/parameters/ResourceGroupNameParameter"
        - description: The name of the Shared Application Gallery from which Application Definitions are to be listed.
          in: path
          name: galleryName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
      responses:
        "200":
          description: OK
          schema:
            $ref: "#/definitions/GalleryApplicationList"
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: "#/definitions/CloudError"
      tags:
        - GalleryApplications
      x-ms-examples:
        List gallery Applications in a gallery.:
          parameters:
            api-version: 2019-07-01
            galleryName: myGalleryName
            resourceGroupName: myResourceGroup
            subscriptionId: "{subscription-id}"
          responses:
            "200":
              body:
                nextLink: http://svchost:99/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName/applications?$skiptoken={token}/Subscriptions/{subscriptionId}/ResourceGroups/myResourceGroup/galleries/myGalleryName/applications/myGalleryApplicationName
                value:
                  - location: West US
                    name: myGalleryApplicationName
                    properties:
                      description: This is the gallery application description.
                      eula: This is the gallery application EULA.
                      privacyStatementUri: myPrivacyStatementUri}
                      releaseNoteUri: myReleaseNoteUri
                      supportedOSType: Windows
      x-ms-pageable:
        nextLinkName: nextLink
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}":
    delete:
      description: Delete a gallery Application.
      operationId: GalleryApplications_Delete
      parameters:
        - $ref: "#/parameters/SubscriptionIdParameter"
        - $ref: "#/parameters/ResourceGroupNameParameter"
        - description: The name of the Shared Application Gallery in which the Application Definition is to be deleted.
          in: path
          name: galleryName
          required: true
          type: string
        - description: The name of the gallery Application Definition to be deleted.
          in: path
          name: galleryApplicationName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
      responses:
        "200":
          description: OK
        "202":
          description: Accepted
        "204":
          description: No Content
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: "#/definitions/CloudError"
      tags:
        - GalleryApplications
      x-ms-examples:
        Delete a gallery Application.:
          parameters:
            api-version: 2019-07-01
            galleryApplicationName: myGalleryApplicationName
            galleryName: myGalleryName
            resourceGroupName: myResourceGroup
            subscriptionId: "{subscription-id}"
          responses:
            "200": {}
            "202": {}
            "204": {}
      x-ms-long-running-operation: true
    get:
      description: Retrieves information about a gallery Application Definition.
      operationId: GalleryApplications_Get
      parameters:
        - $ref: "#/parameters/SubscriptionIdParameter"
        - $ref: "#/parameters/ResourceGroupNameParameter"
        - description: The name of the Shared Application Gallery from which the Application Definitions are to be retrieved.
          in: path
          name: galleryName
          required: true
          type: string
        - description: The name of the gallery Application Definition to be retrieved.
          in: path
          name: galleryApplicationName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
      responses:
        "200":
          description: OK
          schema:
            $ref: "#/definitions/GalleryApplication"
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: "#/definitions/CloudError"
      tags:
        - GalleryApplications
      x-ms-examples:
        Get a gallery Application.:
          parameters:
            api-version: 2019-07-01
            galleryApplicationName: myGalleryApplicationName
            galleryName: myGalleryName
            resourceGroupName: myResourceGroup
            subscriptionId: "{subscription-id}"
          responses:
            "200":
              body:
                location: West US
                name: myGalleryApplicationName
                properties:
                  description: This is the gallery application description.
                  eula: This is the gallery application EULA.
                  privacyStatementUri: myPrivacyStatementUri}
                  releaseNoteUri: myReleaseNoteUri
                  supportedOSType: Windows
    patch:
      description: Update a gallery Application Definition.
      operationId: GalleryApplications_Update
      parameters:
        - $ref: "#/parameters/SubscriptionIdParameter"
        - $ref: "#/parameters/ResourceGroupNameParameter"
        - description: The name of the Shared Application Gallery in which the Application Definition is to be updated.
          in: path
          name: galleryName
          required: true
          type: string
        - description: The name of the gallery Application Definition to be updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters.
          in: path
          name: galleryApplicationName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
        - description: Parameters supplied to the update gallery Application operation.
          in: body
          name: galleryApplication
          required: true
          schema:
            $ref: "#/definitions/GalleryApplicationUpdate"
      responses:
        "200":
          description: OK
          schema:
            $ref: "#/definitions/GalleryApplication"
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: "#/definitions/CloudError"
      tags:
        - GalleryApplications
      x-ms-examples:
        Update a simple gallery Application.:
          parameters:
            api-version: 2019-07-01
            galleryApplication:
              properties:
                description: This is the gallery application description.
                eula: This is the gallery application EULA.
                privacyStatementUri: myPrivacyStatementUri}
                releaseNoteUri: myReleaseNoteUri
                supportedOSType: Windows
            galleryApplicationName: myGalleryApplicationName
            galleryName: myGalleryName
            resourceGroupName: myResourceGroup
            subscriptionId: "{subscription-id}"
          responses:
            "200":
              body:
                id: /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName/applications/myGalleryApplicationName
                location: West US
                name: myGalleryApplicationName
                properties:
                  description: This is the gallery application description.
                  eula: This is the gallery application EULA.
                  privacyStatementUri: myPrivacyStatementUri}
                  releaseNoteUri: myReleaseNoteUri
                  supportedOSType: Windows
                type: Microsoft.Compute/galleries
      x-ms-long-running-operation: true
    put:
      description: Create or update a gallery Application Definition.
      operationId: GalleryApplications_CreateOrUpdate
      parameters:
        - $ref: "#/parameters/SubscriptionIdParameter"
        - $ref: "#/parameters/ResourceGroupNameParameter"
        - description: The name of the Shared Application Gallery in which the Application Definition is to be created.
          in: path
          name: galleryName
          required: true
          type: string
        - description: The name of the gallery Application Definition to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters.
          in: path
          name: galleryApplicationName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
        - description: Parameters supplied to the create or update gallery Application operation.
          in: body
          name: galleryApplication
          required: true
          schema:
            $ref: "#/definitions/GalleryApplication"
      responses:
        "200":
          description: OK
          schema:
            $ref: "#/definitions/GalleryApplication"
        "201":
          description: Created
          schema:
            $ref: "#/definitions/GalleryApplication"
        "202":
          description: Accepted
          schema:
            $ref: "#/definitions/GalleryApplication"
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: "#/definitions/CloudError"
      tags:
        - GalleryApplications
      x-ms-examples:
        Create or update a simple gallery Application.:
          parameters:
            api-version: 2019-07-01
            galleryApplication:
              location: West US
              properties:
                description: This is the gallery application description.
                eula: This is the gallery application EULA.
                privacyStatementUri: myPrivacyStatementUri}
                releaseNoteUri: myReleaseNoteUri
                supportedOSType: Windows
            galleryApplicationName: myGalleryApplicationName
            galleryName: myGalleryName
            resourceGroupName: myResourceGroup
            subscriptionId: "{subscription-id}"
          responses:
            "200":
              body:
                id: /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName/applications/myGalleryApplicationName
                location: West US
                name: myGalleryApplicationName
                properties:
                  description: This is the gallery application description.
                  eula: This is the gallery application EULA.
                  privacyStatementUri: myPrivacyStatementUri}
                  releaseNoteUri: myReleaseNoteUri
                  supportedOSType: Windows
                type: Microsoft.Compute/galleries
            "201":
              body:
                id: /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName/applications/myGalleryApplicationName
                location: West US
                name: myGalleryApplicationName
                properties:
                  description: This is the gallery application description.
                  eula: This is the gallery application EULA.
                  privacyStatementUri: myPrivacyStatementUri}
                  releaseNoteUri: myReleaseNoteUri
                  supportedOSType: Windows
                type: Microsoft.Compute/galleries
            "202":
              body:
                id: /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName/applications/myGalleryApplicationName
                location: West US
                name: myGalleryApplicationName
                properties:
                  description: This is the gallery application description.
                  eula: This is the gallery application EULA.
                  privacyStatementUri: myPrivacyStatementUri}
                  releaseNoteUri: myReleaseNoteUri
                  supportedOSType: Windows
                type: Microsoft.Compute/galleries
      x-ms-long-running-operation: true
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions":
    get:
      description: List gallery Application Versions in a gallery Application Definition.
      operationId: GalleryApplicationVersions_ListByGalleryApplication
      parameters:
        - $ref: "#/parameters/SubscriptionIdParameter"
        - $ref: "#/parameters/ResourceGroupNameParameter"
        - description: The name of the Shared Application Gallery in which the Application Definition resides.
          in: path
          name: galleryName
          required: true
          type: string
        - description: The name of the Shared Application Gallery Application Definition from which the Application Versions are to be listed.
          in: path
          name: galleryApplicationName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
      responses:
        "200":
          description: OK
          schema:
            $ref: "#/definitions/GalleryApplicationVersionList"
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: "#/definitions/CloudError"
      tags:
        - GalleryApplicationVersions
      x-ms-examples:
        List gallery Application Versions in a gallery Application Definition.:
          parameters:
            api-version: 2019-07-01
            galleryApplicationName: myGalleryApplicationName
            galleryName: myGalleryName
            resourceGroupName: myResourceGroup
            subscriptionId: "{subscription-id}"
          responses:
            "200":
              body:
                nextLink: http://svchost:99/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName/applications/myGalleryApplicationName/versions?$skiptoken={token}/Subscriptions/{subscriptionId}/ResourceGroups/myResourceGroup/galleries/myGalleryName/applications/myGalleryApplicationName/versions/myGalleryApplicationVersionName
                value:
                  - id: /subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Compute/galleries/galleryPsTestGallery6165/applications/galleryPsTestGalleryApplication7825/versions/1.0.0
                    location: West US
                    name: 1.0.0
                    properties:
                      provisioningState: Succeeded
                      publishingProfile:
                        enableHealthCheck: false
                        endOfLifeDate: 2019-07-01T07:00:00+00:00
                        excludeFromLatest: false
                        publishedDate: 2019-06-21T17:13:57.5972568+00:00
                        replicaCount: 1
                        source:
                          fileName: package.zip
                          mediaLink: https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}
                        storageAccountType: Standard_LRS
                        targetRegions:
                          - name: West US
                            regionalReplicaCount: 1
                            storageAccountType: Standard_LRS
                    type: Microsoft.Compute/galleries/applications/versions
      x-ms-pageable:
        nextLinkName: nextLink
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions/{galleryApplicationVersionName}":
    delete:
      description: Delete a gallery Application Version.
      operationId: GalleryApplicationVersions_Delete
      parameters:
        - $ref: "#/parameters/SubscriptionIdParameter"
        - $ref: "#/parameters/ResourceGroupNameParameter"
        - description: The name of the Shared Application Gallery in which the Application Definition resides.
          in: path
          name: galleryName
          required: true
          type: string
        - description: The name of the gallery Application Definition in which the Application Version resides.
          in: path
          name: galleryApplicationName
          required: true
          type: string
        - description: The name of the gallery Application Version to be deleted.
          in: path
          name: galleryApplicationVersionName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
      responses:
        "200":
          description: OK
        "202":
          description: Accepted
        "204":
          description: No Content
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: "#/definitions/CloudError"
      tags:
        - GalleryApplicationVersions
      x-ms-examples:
        Delete a gallery Application Version.:
          parameters:
            api-version: 2019-07-01
            galleryApplicationName: myGalleryApplicationName
            galleryApplicationVersionName: 1.0.0
            galleryName: myGalleryName
            resourceGroupName: myResourceGroup
            subscriptionId: "{subscription-id}"
          responses:
            "200": {}
            "202": {}
            "204": {}
      x-ms-long-running-operation: true
    get:
      description: Retrieves information about a gallery Application Version.
      operationId: GalleryApplicationVersions_Get
      parameters:
        - $ref: "#/parameters/SubscriptionIdParameter"
        - $ref: "#/parameters/ResourceGroupNameParameter"
        - description: The name of the Shared Application Gallery in which the Application Definition resides.
          in: path
          name: galleryName
          required: true
          type: string
        - description: The name of the gallery Application Definition in which the Application Version resides.
          in: path
          name: galleryApplicationName
          required: true
          type: string
        - description: The name of the gallery Application Version to be retrieved.
          in: path
          name: galleryApplicationVersionName
          required: true
          type: string
        - description: The expand expression to apply on the operation.
          enum:
            - ReplicationStatus
          in: query
          name: $expand
          required: false
          type: string
          x-ms-enum:
            modelAsString: true
            name: ReplicationStatusTypes
        - $ref: "#/parameters/ApiVersionParameter"
      responses:
        "200":
          description: OK
          schema:
            $ref: "#/definitions/GalleryApplicationVersion"
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: "#/definitions/CloudError"
      tags:
        - GalleryApplicationVersions
      x-ms-examples:
        Get a gallery Application Version with replication status.:
          parameters:
            $expand: ReplicationStatus
            api-version: 2019-07-01
            galleryApplicationName: myGalleryApplicationName
            galleryApplicationVersionName: 1.0.0
            galleryName: myGalleryName
            resourceGroupName: myResourceGroup
            subscriptionId: "{subscription-id}"
          responses:
            "200":
              body:
                location: West US
                name: 1.0.0
                properties:
                  provisioningState: Succeeded
                  publishingProfile:
                    enableHealthCheck: false
                    endOfLifeDate: 2019-07-01T07:00:00+00:00
                    excludeFromLatest: false
                    publishedDate: 2019-06-21T17:13:57.5972568+00:00
                    replicaCount: 1
                    source:
                      fileName: package.zip
                      mediaLink: https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}
                    storageAccountType: Standard_LRS
                    targetRegions:
                      - name: West US
                        regionalReplicaCount: 1
                        storageAccountType: Standard_LRS
                  replicationStatus:
                    aggregatedState: Completed
                    summary:
                      - details: ""
                        progress: 100
                        region: West US
                        state: Completed
        Get a gallery Application Version.:
          parameters:
            api-version: 2019-07-01
            galleryApplicationName: myGalleryApplicationName
            galleryApplicationVersionName: 1.0.0
            galleryName: myGalleryName
            resourceGroupName: myResourceGroup
            subscriptionId: "{subscription-id}"
          responses:
            "200":
              body:
                id: /subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Compute/galleries/galleryPsTestGallery6165/applications/galleryPsTestGalleryApplication7825/versions/1.0.0
                location: West US
                name: 1.0.0
                properties:
                  provisioningState: Succeeded
                  publishingProfile:
                    enableHealthCheck: false
                    endOfLifeDate: 2019-07-01T07:00:00+00:00
                    excludeFromLatest: false
                    publishedDate: 2019-06-21T17:13:57.5972568+00:00
                    replicaCount: 1
                    source:
                      fileName: package.zip
                      mediaLink: https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}
                    storageAccountType: Standard_LRS
                    targetRegions:
                      - name: West US
                        regionalReplicaCount: 1
                        storageAccountType: Standard_LRS
                type: Microsoft.Compute/galleries/applications/versions
    patch:
      description: Update a gallery Application Version.
      operationId: GalleryApplicationVersions_Update
      parameters:
        - $ref: "#/parameters/SubscriptionIdParameter"
        - $ref: "#/parameters/ResourceGroupNameParameter"
        - description: The name of the Shared Application Gallery in which the Application Definition resides.
          in: path
          name: galleryName
          required: true
          type: string
        - description: The name of the gallery Application Definition in which the Application Version is to be updated.
          in: path
          name: galleryApplicationName
          required: true
          type: string
        - description: "The name of the gallery Application Version to be updated. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: <MajorVersion>.<MinorVersion>.<Patch>"
          in: path
          name: galleryApplicationVersionName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
        - description: Parameters supplied to the update gallery Application Version operation.
          in: body
          name: galleryApplicationVersion
          required: true
          schema:
            $ref: "#/definitions/GalleryApplicationVersionUpdate"
      responses:
        "200":
          description: OK
          schema:
            $ref: "#/definitions/GalleryApplicationVersion"
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: "#/definitions/CloudError"
      tags:
        - GalleryApplicationVersions
      x-ms-examples:
        Update a simple gallery Application Version.:
          parameters:
            api-version: 2019-07-01
            galleryApplicationName: myGalleryApplicationName
            galleryApplicationVersion:
              properties:
                publishingProfile:
                  endOfLifeDate: 2019-07-01T07:00:00Z
                  replicaCount: 1
                  source:
                    fileName: package.zip
                    mediaLink: https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}
                  storageAccountType: Standard_LRS
                  targetRegions:
                    - name: West US
                      regionalReplicaCount: 1
                      storageAccountType: Standard_LRS
            galleryApplicationVersionName: 1.0.0
            galleryName: myGalleryName
            resourceGroupName: myResourceGroup
            subscriptionId: "{subscription-id}"
          responses:
            "200":
              body:
                id: /subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Compute/galleries/galleryPsTestGallery6165/applications/galleryPsTestGalleryApplication7825/versions/1.0.0
                location: West US
                name: 1.0.0
                properties:
                  provisioningState: Updating
                  publishingProfile:
                    enableHealthCheck: false
                    endOfLifeDate: 2019-07-01T07:00:00+00:00
                    excludeFromLatest: false
                    publishedDate: 2019-06-21T17:13:57.5972568+00:00
                    replicaCount: 1
                    source:
                      fileName: package.zip
                      mediaLink: https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}
                    storageAccountType: Standard_LRS
                    targetRegions:
                      - name: West US
                        regionalReplicaCount: 1
                        storageAccountType: Standard_LRS
                type: Microsoft.Compute/galleries/applications/versions
      x-ms-long-running-operation: true
    put:
      description: Create or update a gallery Application Version.
      operationId: GalleryApplicationVersions_CreateOrUpdate
      parameters:
        - $ref: "#/parameters/SubscriptionIdParameter"
        - $ref: "#/parameters/ResourceGroupNameParameter"
        - description: The name of the Shared Application Gallery in which the Application Definition resides.
          in: path
          name: galleryName
          required: true
          type: string
        - description: The name of the gallery Application Definition in which the Application Version is to be created.
          in: path
          name: galleryApplicationName
          required: true
          type: string
        - description: "The name of the gallery Application Version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: <MajorVersion>.<MinorVersion>.<Patch>"
          in: path
          name: galleryApplicationVersionName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
        - description: Parameters supplied to the create or update gallery Application Version operation.
          in: body
          name: galleryApplicationVersion
          required: true
          schema:
            $ref: "#/definitions/GalleryApplicationVersion"
      responses:
        "200":
          description: OK
          schema:
            $ref: "#/definitions/GalleryApplicationVersion"
        "201":
          description: Created
          schema:
            $ref: "#/definitions/GalleryApplicationVersion"
        "202":
          description: Accepted
          schema:
            $ref: "#/definitions/GalleryApplicationVersion"
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: "#/definitions/CloudError"
      tags:
        - GalleryApplicationVersions
      x-ms-examples:
        Create or update a simple gallery Application Version.:
          parameters:
            api-version: 2019-07-01
            galleryApplicationName: myGalleryApplicationName
            galleryApplicationVersion:
              location: West US
              properties:
                publishingProfile:
                  endOfLifeDate: 2019-07-01T07:00:00Z
                  replicaCount: 1
                  source:
                    fileName: package.zip
                    mediaLink: https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}
                  storageAccountType: Standard_LRS
                  targetRegions:
                    - name: West US
                      regionalReplicaCount: 1
                      storageAccountType: Standard_LRS
            galleryApplicationVersionName: 1.0.0
            galleryName: myGalleryName
            resourceGroupName: myResourceGroup
            subscriptionId: "{subscription-id}"
          responses:
            "200":
              body:
                id: /subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Compute/galleries/galleryPsTestGallery6165/applications/galleryPsTestGalleryApplication7825/versions/1.0.0
                location: West US
                name: 1.0.0
                properties:
                  provisioningState: Updating
                  publishingProfile:
                    enableHealthCheck: false
                    endOfLifeDate: 2019-07-01T07:00:00+00:00
                    excludeFromLatest: false
                    publishedDate: 2019-06-21T17:13:57.5972568+00:00
                    replicaCount: 1
                    source:
                      fileName: package.zip
                      mediaLink: https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}
                    storageAccountType: Standard_LRS
                    targetRegions:
                      - name: West US
                        regionalReplicaCount: 1
                        storageAccountType: Standard_LRS
                type: Microsoft.Compute/galleries/applications/versions
            "201":
              body:
                id: /subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Compute/galleries/galleryPsTestGallery6165/applications/galleryPsTestGalleryApplication7825/versions/1.0.0
                location: West US
                name: 1.0.0
                properties:
                  provisioningState: Creating
                  publishingProfile:
                    enableHealthCheck: false
                    endOfLifeDate: 2019-07-01T07:00:00+00:00
                    excludeFromLatest: false
                    publishedDate: 2019-06-21T17:13:57.5972568+00:00
                    replicaCount: 1
                    source:
                      fileName: package.zip
                      mediaLink: https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}
                    storageAccountType: Standard_LRS
                    targetRegions:
                      - name: West US
                        regionalReplicaCount: 1
                        storageAccountType: Standard_LRS
                type: Microsoft.Compute/galleries/applications/versions
            "202":
              body:
                id: /subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Compute/galleries/galleryPsTestGallery6165/applications/galleryPsTestGalleryApplication7825/versions/1.0.0
                location: West US
                name: 1.0.0
                properties:
                  provisioningState: Updating
                  publishingProfile:
                    enableHealthCheck: false
                    endOfLifeDate: 2019-07-01T07:00:00+00:00
                    excludeFromLatest: false
                    publishedDate: 2019-06-21T17:13:57.5972568+00:00
                    replicaCount: 1
                    source:
                      fileName: package.zip
                      mediaLink: https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}
                    storageAccountType: Standard_LRS
                    targetRegions:
                      - name: West US
                        regionalReplicaCount: 1
                        storageAccountType: Standard_LRS
                type: Microsoft.Compute/galleries/applications/versions
      x-ms-long-running-operation: true
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images":
    get:
      description: List gallery Image Definitions in a gallery.
      operationId: GalleryImages_ListByGallery
      parameters:
        - $ref: "#/parameters/SubscriptionIdParameter"
        - $ref: "#/parameters/ResourceGroupNameParameter"
        - description: The name of the Shared Image Gallery from which Image Definitions are to be listed.
          in: path
          name: galleryName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
      responses:
        "200":
          description: OK
          schema:
            $ref: "#/definitions/GalleryImageList"
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: "#/definitions/CloudError"
      tags:
        - GalleryImages
      x-ms-examples:
        List gallery images in a gallery.:
          parameters:
            api-version: 2019-07-01
            galleryName: myGalleryName
            resourceGroupName: myResourceGroup
            subscriptionId: "{subscription-id}"
          responses:
            "200":
              body:
                nextLink: http://svchost:99/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName/images?$skiptoken={token}/Subscriptions/{subscriptionId}/ResourceGroups/myResourceGroup/galleries/myGalleryName/images/myGalleryImageName
                value:
                  - location: West US
                    name: myGalleryImageName
                    properties:
                      hyperVGeneration: V1
                      identifier:
                        offer: myOfferName
                        publisher: myPublisherName
                        sku: mySkuName
                      osState: Generalized
                      osType: Windows
                      provisioningState: Succeeded
      x-ms-pageable:
        nextLinkName: nextLink
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}":
    delete:
      description: Delete a gallery image.
      operationId: GalleryImages_Delete
      parameters:
        - $ref: "#/parameters/SubscriptionIdParameter"
        - $ref: "#/parameters/ResourceGroupNameParameter"
        - description: The name of the Shared Image Gallery in which the Image Definition is to be deleted.
          in: path
          name: galleryName
          required: true
          type: string
        - description: The name of the gallery Image Definition to be deleted.
          in: path
          name: galleryImageName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
      responses:
        "200":
          description: OK
        "202":
          description: Accepted
        "204":
          description: No Content
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: "#/definitions/CloudError"
      tags:
        - GalleryImages
      x-ms-examples:
        Delete a gallery image.:
          parameters:
            api-version: 2019-07-01
            galleryImageName: myGalleryImageName
            galleryName: myGalleryName
            resourceGroupName: myResourceGroup
            subscriptionId: "{subscription-id}"
          responses:
            "200": {}
            "202": {}
            "204": {}
      x-ms-long-running-operation: true
    get:
      description: Retrieves information about a gallery Image Definition.
      operationId: GalleryImages_Get
      parameters:
        - $ref: "#/parameters/SubscriptionIdParameter"
        - $ref: "#/parameters/ResourceGroupNameParameter"
        - description: The name of the Shared Image Gallery from which the Image Definitions are to be retrieved.
          in: path
          name: galleryName
          required: true
          type: string
        - description: The name of the gallery Image Definition to be retrieved.
          in: path
          name: galleryImageName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
      responses:
        "200":
          description: OK
          schema:
            $ref: "#/definitions/GalleryImage"
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: "#/definitions/CloudError"
      tags:
        - GalleryImages
      x-ms-examples:
        Get a gallery image.:
          parameters:
            api-version: 2019-07-01
            galleryImageName: myGalleryImageName
            galleryName: myGalleryName
            resourceGroupName: myResourceGroup
            subscriptionId: "{subscription-id}"
          responses:
            "200":
              body:
                location: West US
                name: myGalleryImageName
                properties:
                  hyperVGeneration: V1
                  identifier:
                    offer: myOfferName
                    publisher: myPublisherName
                    sku: mySkuName
                  osState: Generalized
                  osType: Windows
                  provisioningState: Succeeded
    patch:
      description: Update a gallery Image Definition.
      operationId: GalleryImages_Update
      parameters:
        - $ref: "#/parameters/SubscriptionIdParameter"
        - $ref: "#/parameters/ResourceGroupNameParameter"
        - description: The name of the Shared Image Gallery in which the Image Definition is to be updated.
          in: path
          name: galleryName
          required: true
          type: string
        - description: The name of the gallery Image Definition to be updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters.
          in: path
          name: galleryImageName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
        - description: Parameters supplied to the update gallery image operation.
          in: body
          name: galleryImage
          required: true
          schema:
            $ref: "#/definitions/GalleryImageUpdate"
      responses:
        "200":
          description: OK
          schema:
            $ref: "#/definitions/GalleryImage"
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: "#/definitions/CloudError"
      tags:
        - GalleryImages
      x-ms-examples:
        Update a simple gallery image.:
          parameters:
            api-version: 2019-07-01
            galleryImage:
              properties:
                hyperVGeneration: V1
                identifier:
                  offer: myOfferName
                  publisher: myPublisherName
                  sku: mySkuName
                osState: Generalized
                osType: Windows
            galleryImageName: myGalleryImageName
            galleryName: myGalleryName
            resourceGroupName: myResourceGroup
            subscriptionId: "{subscription-id}"
          responses:
            "200":
              body:
                location: West US
                name: myGalleryImageName
                properties:
                  hyperVGeneration: V1
                  identifier:
                    offer: myOfferName
                    publisher: myPublisherName
                    sku: mySkuName
                  osState: Generalized
                  osType: Windows
                  provisioningState: Updating
      x-ms-long-running-operation: true
    put:
      description: Create or update a gallery Image Definition.
      operationId: GalleryImages_CreateOrUpdate
      parameters:
        - $ref: "#/parameters/SubscriptionIdParameter"
        - $ref: "#/parameters/ResourceGroupNameParameter"
        - description: The name of the Shared Image Gallery in which the Image Definition is to be created.
          in: path
          name: galleryName
          required: true
          type: string
        - description: The name of the gallery Image Definition to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters.
          in: path
          name: galleryImageName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
        - description: Parameters supplied to the create or update gallery image operation.
          in: body
          name: galleryImage
          required: true
          schema:
            $ref: "#/definitions/GalleryImage"
      responses:
        "200":
          description: OK
          schema:
            $ref: "#/definitions/GalleryImage"
        "201":
          description: Created
          schema:
            $ref: "#/definitions/GalleryImage"
        "202":
          description: Accepted
          schema:
            $ref: "#/definitions/GalleryImage"
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: "#/definitions/CloudError"
      tags:
        - GalleryImages
      x-ms-examples:
        Create or update a simple gallery image.:
          parameters:
            api-version: 2019-07-01
            galleryImage:
              location: West US
              properties:
                hyperVGeneration: V1
                identifier:
                  offer: myOfferName
                  publisher: myPublisherName
                  sku: mySkuName
                osState: Generalized
                osType: Windows
            galleryImageName: myGalleryImageName
            galleryName: myGalleryName
            resourceGroupName: myResourceGroup
            subscriptionId: "{subscription-id}"
          responses:
            "200":
              body:
                location: West US
                name: myGalleryImageName
                properties:
                  hyperVGeneration: V1
                  identifier:
                    offer: myOfferName
                    publisher: myPublisherName
                    sku: mySkuName
                  osState: Generalized
                  osType: Windows
                  provisioningState: Updating
            "201":
              body:
                location: West US
                name: myGalleryImageName
                properties:
                  hyperVGeneration: V1
                  identifier:
                    offer: myOfferName
                    publisher: myPublisherName
                    sku: mySkuName
                  osState: Generalized
                  osType: Windows
                  provisioningState: Creating
            "202":
              body:
                location: West US
                name: myGalleryImageName
                properties:
                  hyperVGeneration: V1
                  identifier:
                    offer: myOfferName
                    publisher: myPublisherName
                    sku: mySkuName
                  osState: Generalized
                  osType: Windows
                  provisioningState: Updating
      x-ms-long-running-operation: true
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions":
    get:
      description: List gallery Image Versions in a gallery Image Definition.
      operationId: GalleryImageVersions_ListByGalleryImage
      parameters:
        - $ref: "#/parameters/SubscriptionIdParameter"
        - $ref: "#/parameters/ResourceGroupNameParameter"
        - description: The name of the Shared Image Gallery in which the Image Definition resides.
          in: path
          name: galleryName
          required: true
          type: string
        - description: The name of the Shared Image Gallery Image Definition from which the Image Versions are to be listed.
          in: path
          name: galleryImageName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
      responses:
        "200":
          description: OK
          schema:
            $ref: "#/definitions/GalleryImageVersionList"
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: "#/definitions/CloudError"
      tags:
        - GalleryImageVersions
      x-ms-examples:
        List gallery Image Versions in a gallery Image Definition.:
          parameters:
            api-version: 2019-07-01
            galleryImageName: myGalleryImageName
            galleryName: myGalleryName
            resourceGroupName: myResourceGroup
            subscriptionId: "{subscription-id}"
          responses:
            "200":
              body:
                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
                value:
                  - location: West US
                    name: 1.0.0
                    properties:
                      provisioningState: Succeeded
                      publishingProfile:
                        publishedDate: 2018-01-01T00:00:00Z
                        replicaCount: 1
                        storageAccountType: Standard_LRS
                        targetRegions:
                          - name: West US
                            regionalReplicaCount: 1
                            storageAccountType: Standard_LRS
                          - name: East US
                            regionalReplicaCount: 2
                            storageAccountType: Standard_LRS
                      storageProfile:
                        dataDiskImages:
                          - hostCaching: None
                            lun: 1
                            sizeInGB: 10
                        osDiskImage:
                          hostCaching: ReadOnly
                          sizeInGB: 10
                        source:
                          id: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}
      x-ms-pageable:
        nextLinkName: nextLink
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}":
    delete:
      description: Delete a gallery Image Version.
      operationId: GalleryImageVersions_Delete
      parameters:
        - $ref: "#/parameters/SubscriptionIdParameter"
        - $ref: "#/parameters/ResourceGroupNameParameter"
        - description: The name of the Shared Image Gallery in which the Image Definition resides.
          in: path
          name: galleryName
          required: true
          type: string
        - description: The name of the gallery Image Definition in which the Image Version resides.
          in: path
          name: galleryImageName
          required: true
          type: string
        - description: The name of the gallery Image Version to be deleted.
          in: path
          name: galleryImageVersionName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
      responses:
        "200":
          description: OK
        "202":
          description: Accepted
        "204":
          description: No Content
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: "#/definitions/CloudError"
      tags:
        - GalleryImageVersions
      x-ms-examples:
        Delete a gallery Image Version.:
          parameters:
            api-version: 2019-07-01
            galleryImageName: myGalleryImageName
            galleryImageVersionName: 1.0.0
            galleryName: myGalleryName
            resourceGroupName: myResourceGroup
            subscriptionId: "{subscription-id}"
          responses:
            "200": {}
            "202": {}
            "204": {}
      x-ms-long-running-operation: true
    get:
      description: Retrieves information about a gallery Image Version.
      operationId: GalleryImageVersions_Get
      parameters:
        - $ref: "#/parameters/SubscriptionIdParameter"
        - $ref: "#/parameters/ResourceGroupNameParameter"
        - description: The name of the Shared Image Gallery in which the Image Definition resides.
          in: path
          name: galleryName
          required: true
          type: string
        - description: The name of the gallery Image Definition in which the Image Version resides.
          in: path
          name: galleryImageName
          required: true
          type: string
        - description: The name of the gallery Image Version to be retrieved.
          in: path
          name: galleryImageVersionName
          required: true
          type: string
        - description: The expand expression to apply on the operation.
          enum:
            - ReplicationStatus
          in: query
          name: $expand
          required: false
          type: string
          x-ms-enum:
            modelAsString: true
            name: ReplicationStatusTypes
        - $ref: "#/parameters/ApiVersionParameter"
      responses:
        "200":
          description: OK
          schema:
            $ref: "#/definitions/GalleryImageVersion"
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: "#/definitions/CloudError"
      tags:
        - GalleryImageVersions
      x-ms-examples:
        Get a gallery Image Version with replication status.:
          parameters:
            $expand: ReplicationStatus
            api-version: 2019-07-01
            galleryImageName: myGalleryImageName
            galleryImageVersion:
              location: West US
              properties:
                publishingProfile:
                  targetRegions:
                    - name: West US
                      regionalReplicaCount: 1
                    - name: East US
                      regionalReplicaCount: 2
                storageProfile:
                  source:
                    id: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}
            galleryImageVersionName: 1.0.0
            galleryName: myGalleryName
            resourceGroupName: myResourceGroup
            subscriptionId: "{subscription-id}"
          responses:
            "200":
              body:
                location: West US
                name: 1.0.0
                properties:
                  provisioningState: Succeeded
                  publishingProfile:
                    publishedDate: 2018-01-01T00:00:00Z
                    replicaCount: 1
                    storageAccountType: Standard_LRS
                    targetRegions:
                      - name: West US
                        regionalReplicaCount: 1
                        storageAccountType: Standard_LRS
                      - name: East US
                        regionalReplicaCount: 2
                        storageAccountType: Standard_LRS
                  replicationStatus:
                    aggregatedState: Completed
                    summary:
                      - details: ""
                        progress: 100
                        region: West US
                        state: Completed
                      - details: ""
                        progress: 100
                        region: East US
                        state: Completed
                  storageProfile:
                    dataDiskImages:
                      - hostCaching: None
                        lun: 1
                        sizeInGB: 10
                    osDiskImage:
                      hostCaching: ReadOnly
                      sizeInGB: 10
                    source:
                      id: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}
        Get a gallery Image Version with snapshots as a source.:
          parameters:
            api-version: 2019-07-01
            galleryImageName: myGalleryImageName
            galleryImageVersion:
              location: West US
              properties:
                publishingProfile:
                  targetRegions:
                    - name: West US
                      regionalReplicaCount: 1
                    - name: East US
                      regionalReplicaCount: 2
              storageProfile:
                dataDiskImages:
                  - hostCaching: None
                    lun: 1
                    source: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{diskSnapshotName}
                osDiskImage:
                  hostCaching: ReadOnly
                  source: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{snapshotName}
            galleryImageVersionName: 1.0.0
            galleryName: myGalleryName
            resourceGroupName: myResourceGroup
            subscriptionId: "{subscription-id}"
          responses:
            "200":
              body:
                location: West US
                name: 1.0.0
                properties:
                  provisioningState: Succeeded
                  publishingProfile:
                    publishedDate: 2018-01-01T00:00:00Z
                    replicaCount: 1
                    storageAccountType: Standard_LRS
                    targetRegions:
                      - name: West US
                        regionalReplicaCount: 1
                        storageAccountType: Standard_LRS
                      - name: East US
                        regionalReplicaCount: 2
                        storageAccountType: Standard_LRS
                  storageProfile:
                    dataDiskImages:
                      - hostCaching: None
                        lun: 1
                        sizeInGB: 10
                        source: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{diskSnapshotName}
                    osDiskImage:
                      hostCaching: ReadOnly
                      sizeInGB: 10
                      source: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{snapshotName}
        Get a gallery Image Version.:
          parameters:
            api-version: 2019-07-01
            galleryImageName: myGalleryImageName
            galleryImageVersion:
              location: West US
              properties:
                publishingProfile:
                  targetRegions:
                    - name: West US
                      regionalReplicaCount: 1
                    - name: East US
                      regionalReplicaCount: 2
              storageProfile:
                source:
                  id: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}
            galleryImageVersionName: 1.0.0
            galleryName: myGalleryName
            resourceGroupName: myResourceGroup
            subscriptionId: "{subscription-id}"
          responses:
            "200":
              body:
                location: West US
                name: 1.0.0
                properties:
                  provisioningState: Succeeded
                  publishingProfile:
                    publishedDate: 2018-01-01T00:00:00Z
                    replicaCount: 1
                    storageAccountType: Standard_LRS
                    targetRegions:
                      - name: West US
                        regionalReplicaCount: 1
                        storageAccountType: Standard_LRS
                      - name: East US
                        regionalReplicaCount: 2
                        storageAccountType: Standard_LRS
                  storageProfile:
                    dataDiskImages:
                      - hostCaching: None
                        lun: 1
                        sizeInGB: 10
                    osDiskImage:
                      hostCaching: ReadOnly
                      sizeInGB: 10
                    source:
                      id: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}
    patch:
      description: Update a gallery Image Version.
      operationId: GalleryImageVersions_Update
      parameters:
        - $ref: "#/parameters/SubscriptionIdParameter"
        - $ref: "#/parameters/ResourceGroupNameParameter"
        - description: The name of the Shared Image Gallery in which the Image Definition resides.
          in: path
          name: galleryName
          required: true
          type: string
        - description: The name of the gallery Image Definition in which the Image Version is to be updated.
          in: path
          name: galleryImageName
          required: true
          type: string
        - description: "The name of the gallery Image Version to be updated. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: <MajorVersion>.<MinorVersion>.<Patch>"
          in: path
          name: galleryImageVersionName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
        - description: Parameters supplied to the update gallery Image Version operation.
          in: body
          name: galleryImageVersion
          required: true
          schema:
            $ref: "#/definitions/GalleryImageVersionUpdate"
      responses:
        "200":
          description: OK
          schema:
            $ref: "#/definitions/GalleryImageVersion"
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: "#/definitions/CloudError"
      tags:
        - GalleryImageVersions
      x-ms-examples:
        Update a simple Gallery Image Version (Managed Image as source).:
          parameters:
            api-version: 2019-07-01
            galleryImageName: myGalleryImageName
            galleryImageVersion:
              properties:
                publishingProfile:
                  targetRegions:
                    - name: West US
                      regionalReplicaCount: 1
                    - name: East US
                      regionalReplicaCount: 2
                      storageAccountType: Standard_ZRS
                storageProfile:
                  source:
                    id: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}
            galleryImageVersionName: 1.0.0
            galleryName: myGalleryName
            resourceGroupName: myResourceGroup
            subscriptionId: "{subscription-id}"
          responses:
            "200":
              body:
                location: West US
                name: 1.0.0
                properties:
                  provisioningState: Updating
                  publishingProfile:
                    publishedDate: 2018-01-01T00:00:00Z
                    replicaCount: 1
                    storageAccountType: Standard_LRS
                    targetRegions:
                      - name: West US
                        regionalReplicaCount: 1
                        storageAccountType: Standard_LRS
                      - name: East US
                        regionalReplicaCount: 2
                        storageAccountType: Standard_ZRS
                  storageProfile:
                    dataDiskImages:
                      - hostCaching: None
                        lun: 1
                        sizeInGB: 10
                    osDiskImage:
                      hostCaching: ReadOnly
                      sizeInGB: 10
                    source:
                      id: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}
      x-ms-long-running-operation: true
    put:
      description: Create or update a gallery Image Version.
      operationId: GalleryImageVersions_CreateOrUpdate
      parameters:
        - $ref: "#/parameters/SubscriptionIdParameter"
        - $ref: "#/parameters/ResourceGroupNameParameter"
        - description: The name of the Shared Image Gallery in which the Image Definition resides.
          in: path
          name: galleryName
          required: true
          type: string
        - description: The name of the gallery Image Definition in which the Image Version is to be created.
          in: path
          name: galleryImageName
          required: true
          type: string
        - description: "The name of the gallery Image Version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: <MajorVersion>.<MinorVersion>.<Patch>"
          in: path
          name: galleryImageVersionName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersionParameter"
        - description: Parameters supplied to the create or update gallery Image Version operation.
          in: body
          name: galleryImageVersion
          required: true
          schema:
            $ref: "#/definitions/GalleryImageVersion"
      responses:
        "200":
          description: OK
          schema:
            $ref: "#/definitions/GalleryImageVersion"
        "201":
          description: Created
          schema:
            $ref: "#/definitions/GalleryImageVersion"
        "202":
          description: Accepted
          schema:
            $ref: "#/definitions/GalleryImageVersion"
        default:
          description: Error response describing why the operation failed.
          schema:
            $ref: "#/definitions/CloudError"
      tags:
        - GalleryImageVersions
      x-ms-examples:
        Create or update a simple Gallery Image Version (Managed Image as source).:
          parameters:
            api-version: 2019-07-01
            galleryImageName: myGalleryImageName
            galleryImageVersion:
              location: West US
              properties:
                publishingProfile:
                  targetRegions:
                    - name: West US
                      regionalReplicaCount: 1
                    - name: East US
                      regionalReplicaCount: 2
                      storageAccountType: Standard_ZRS
                storageProfile:
                  source:
                    id: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}
            galleryImageVersionName: 1.0.0
            galleryName: myGalleryName
            resourceGroupName: myResourceGroup
            subscriptionId: "{subscription-id}"
          responses:
            "200":
              body:
                location: West US
                name: 1.0.0
                properties:
                  provisioningState: Updating
                  publishingProfile:
                    publishedDate: 2018-01-01T00:00:00Z
                    replicaCount: 1
                    storageAccountType: Standard_LRS
                    targetRegions:
                      - name: West US
                        regionalReplicaCount: 1
                        storageAccountType: Standard_LRS
                      - name: East US
                        regionalReplicaCount: 2
                        storageAccountType: Standard_ZRS
                  storageProfile:
                    dataDiskImages:
                      - hostCaching: None
                        lun: 1
                        sizeInGB: 10
                    osDiskImage:
                      hostCaching: ReadOnly
                      sizeInGB: 10
                    source:
                      id: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}
            "201":
              body:
                location: West US
                name: 1.0.0
                properties:
                  provisioningState: Creating
                  publishingProfile:
                    publishedDate: 2018-01-01T00:00:00Z
                    replicaCount: 1
                    storageAccountType: Standard_LRS
                    targetRegions:
                      - name: West US
                        regionalReplicaCount: 1
                        storageAccountType: Standard_LRS
                      - name: East US
                        regionalReplicaCount: 2
                        storageAccountType: Standard_ZRS
                  storageProfile:
                    dataDiskImages:
                      - hostCaching: None
                        lun: 1
                        sizeInGB: 10
                    osDiskImage:
                      hostCaching: ReadOnly
                      sizeInGB: 10
                    source:
                      id: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}
            "202":
              body:
                location: West US
                name: 1.0.0
                properties:
                  provisioningState: Updating
                  publishingProfile:
                    publishedDate: 2018-01-01T00:00:00Z
                    replicaCount: 1
                    storageAccountType: Standard_LRS
                    targetRegions:
                      - name: West US
                        regionalReplicaCount: 1
                        storageAccountType: Standard_LRS
                      - name: East US
                        regionalReplicaCount: 2
                        storageAccountType: Standard_ZRS
                  storageProfile:
                    dataDiskImages:
                      - hostCaching: None
                        lun: 1
                        sizeInGB: 10
                    osDiskImage:
                      hostCaching: ReadOnly
                      sizeInGB: 10
                    source:
                      id: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}
        Create or update a simple Gallery Image Version using snapshots as a source.:
          parameters:
            api-version: 2019-07-01
            galleryImageName: myGalleryImageName
            galleryImageVersion:
              location: West US
              properties:
                publishingProfile:
                  targetRegions:
                    - name: West US
                      regionalReplicaCount: 1
                    - name: East US
                      regionalReplicaCount: 2
                      storageAccountType: Standard_ZRS
                storageProfile:
                  dataDiskImages:
                    - hostCaching: None
                      lun: 1
                      source:
                        id: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{diskSnapshotName}
                  osDiskImage:
                    hostCaching: ReadOnly
                    source:
                      id: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{snapshotName}
            galleryImageVersionName: 1.0.0
            galleryName: myGalleryName
            resourceGroupName: myResourceGroup
            subscriptionId: "{subscription-id}"
          responses:
            "200":
              body:
                location: West US
                name: 1.0.0
                properties:
                  provisioningState: Updating
                  publishingProfile:
                    publishedDate: 2018-01-01T00:00:00Z
                    replicaCount: 1
                    storageAccountType: Standard_LRS
                    targetRegions:
                      - name: West US
                        regionalReplicaCount: 1
                        storageAccountType: Standard_LRS
                      - name: East US
                        regionalReplicaCount: 2
                        storageAccountType: Standard_ZRS
                  storageProfile:
                    dataDiskImages:
                      - hostCaching: None
                        lun: 1
                        sizeInGB: 10
                        source:
                          id: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{diskSnapshotName}
                    osDiskImage:
                      hostCaching: ReadOnly
                      sizeInGB: 10
                      source:
                        id: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{osSnapshotName}
            "201":
              body:
                location: West US
                name: 1.0.0
                properties:
                  provisioningState: Creating
                  publishingProfile:
                    publishedDate: 2018-01-01T00:00:00Z
                    replicaCount: 1
                    storageAccountType: Standard_LRS
                    targetRegions:
                      - name: West US
                        regionalReplicaCount: 1
                        storageAccountType: Standard_LRS
                      - name: East US
                        regionalReplicaCount: 2
                        storageAccountType: Standard_ZRS
                  storageProfile:
                    dataDiskImages:
                      - hostCaching: None
                        lun: 1
                        sizeInGB: 10
                        source:
                          id: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{diskSnapshotName}
                    osDiskImage:
                      hostCaching: ReadOnly
                      sizeInGB: 10
                      source:
                        id: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{osSnapshotName}
            "202":
              body:
                location: West US
                name: 1.0.0
                properties:
                  provisioningState: Updating
                  publishingProfile:
                    publishedDate: 2018-01-01T00:00:00Z
                    replicaCount: 1
                    storageAccountType: Standard_LRS
                    targetRegions:
                      - name: West US
                        regionalReplicaCount: 1
                        storageAccountType: Standard_LRS
                      - name: East US
                        regionalReplicaCount: 2
                        storageAccountType: Standard_ZRS
                  storageProfile:
                    dataDiskImages:
                      - hostCaching: None
                        lun: 1
                        sizeInGB: 10
                        source:
                          id: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{diskSnapshotName}
                    osDiskImage:
                      hostCaching: ReadOnly
                      sizeInGB: 10
                      source:
                        id: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{osSnapshotName}
      x-ms-long-running-operation: true
definitions:
  ApiError:
    description: Api error.
    properties:
      code:
        description: The error code.
        type: string
      details:
        description: The Api error details
        items:
          $ref: "#/definitions/ApiErrorBase"
        type: array
      innererror:
        $ref: "#/definitions/InnerError"
        description: The Api inner error
      message:
        description: The error message.
        type: string
      target:
        description: The target of the particular error.
        type: string
  ApiErrorBase:
    description: Api error base.
    properties:
      code:
        description: The error code.
        type: string
      message:
        description: The error message.
        type: string
      target:
        description: The target of the particular error.
        type: string
  CloudError:
    description: An error response from the Compute service.
    properties:
      error:
        $ref: "#/definitions/ApiError"
    x-ms-external: true
  Disallowed:
    description: Describes the disallowed disk types.
    properties:
      diskTypes:
        description: A list of disk types.
        items:
          type: string
        type: array
  Gallery:
    allOf:
      - $ref: "#/definitions/Resource"
    description: Specifies information about the Shared Image Gallery that you want to create or update.
    properties:
      properties:
        $ref: "#/definitions/GalleryProperties"
        x-ms-client-flatten: true
  GalleryApplication:
    allOf:
      - $ref: "#/definitions/Resource"
    description: Specifies information about the gallery Application Definition that you want to create or update.
    properties:
      properties:
        $ref: "#/definitions/GalleryApplicationProperties"
        x-ms-client-flatten: true
  GalleryApplicationList:
    description: The List Gallery Applications operation response.
    properties:
      nextLink:
        description: The uri to fetch the next page of Application Definitions in the Application Gallery. Call ListNext() with this to fetch the next page of gallery Application Definitions.
        type: string
      value:
        description: A list of Gallery Applications.
        items:
          $ref: "#/definitions/GalleryApplication"
        type: array
    required:
      - value
  GalleryApplicationProperties:
    description: Describes the properties of a gallery Application Definition.
    properties:
      description:
        description: The description of this gallery Application Definition resource. This property is updatable.
        type: string
      endOfLifeDate:
        description: The end of life date of the gallery Application Definition. This property can be used for decommissioning purposes. This property is updatable.
        format: date-time
        type: string
      eula:
        description: The Eula agreement for the gallery Application Definition.
        type: string
      privacyStatementUri:
        description: The privacy statement uri.
        type: string
      releaseNoteUri:
        description: The release note uri.
        type: string
      supportedOSType:
        description: "This property allows you to specify the supported type of the OS that application is built for. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**"
        enum:
          - Windows
          - Linux
        type: string
        x-ms-enum:
          modelAsString: false
          name: OperatingSystemTypes
    required:
      - supportedOSType
  GalleryApplicationUpdate:
    allOf:
      - $ref: "#/definitions/UpdateResource"
    description: Specifies information about the gallery Application Definition that you want to update.
    properties:
      properties:
        $ref: "#/definitions/GalleryApplicationProperties"
        x-ms-client-flatten: true
  GalleryApplicationVersion:
    allOf:
      - $ref: "#/definitions/Resource"
    description: Specifies information about the gallery Application Version that you want to create or update.
    properties:
      properties:
        $ref: "#/definitions/GalleryApplicationVersionProperties"
        x-ms-client-flatten: true
  GalleryApplicationVersionList:
    description: The List Gallery Application version operation response.
    properties:
      nextLink:
        description: The uri to fetch the next page of gallery Application Versions. Call ListNext() with this to fetch the next page of gallery Application Versions.
        type: string
      value:
        description: A list of gallery Application Versions.
        items:
          $ref: "#/definitions/GalleryApplicationVersion"
        type: array
    required:
      - value
  GalleryApplicationVersionProperties:
    description: Describes the properties of a gallery Image Version.
    properties:
      provisioningState:
        description: The provisioning state, which only appears in the response.
        enum:
          - Creating
          - Updating
          - Failed
          - Succeeded
          - Deleting
          - Migrating
        readOnly: true
        title: The current state of the gallery Application Version.
        type: string
      publishingProfile:
        $ref: "#/definitions/GalleryApplicationVersionPublishingProfile"
      replicationStatus:
        $ref: "#/definitions/ReplicationStatus"
        readOnly: true
    required:
      - publishingProfile
  GalleryApplicationVersionPublishingProfile:
    allOf:
      - $ref: "#/definitions/GalleryArtifactPublishingProfileBase"
    description: The publishing profile of a gallery Image Version.
    properties:
      contentType:
        description: Optional. May be used to help process this file. The type of file contained in the source, e.g. zip, json, etc.
        type: string
      enableHealthCheck:
        description: Optional. Whether or not this application reports health.
        type: boolean
      source:
        $ref: "#/definitions/UserArtifactSource"
    required:
      - source
  GalleryApplicationVersionUpdate:
    allOf:
      - $ref: "#/definitions/UpdateResource"
    description: Specifies information about the gallery Application Version that you want to update.
    properties:
      properties:
        $ref: "#/definitions/GalleryApplicationVersionProperties"
        x-ms-client-flatten: true
  GalleryArtifactPublishingProfileBase:
    description: Describes the basic gallery artifact publishing profile.
    properties:
      endOfLifeDate:
        description: The end of life date of the gallery Image Version. This property can be used for decommissioning purposes. This property is updatable.
        format: date-time
        type: string
      excludeFromLatest:
        description: If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version.
        type: boolean
      publishedDate:
        description: The timestamp for when the gallery Image Version is published.
        format: date-time
        readOnly: true
        type: string
      replicaCount:
        description: The number of replicas of the Image Version to be created per region. This property would take effect for a region when regionalReplicaCount is not specified. This property is updatable.
        format: int32
        type: integer
      storageAccountType:
        description: Specifies the storage account type to be used to store the image. This property is not updatable.
        enum:
          - Standard_LRS
          - Standard_ZRS
        type: string
        x-ms-enum:
          modelAsString: true
          name: StorageAccountType
      targetRegions:
        description: The target regions where the Image Version is going to be replicated to. This property is updatable.
        items:
          $ref: "#/definitions/TargetRegion"
        type: array
  GalleryArtifactSource:
    description: The source image from which the Image Version is going to be created.
    properties:
      managedImage:
        $ref: "#/definitions/ManagedArtifact"
    required:
      - managedImage
  GalleryArtifactVersionSource:
    description: The gallery artifact version source.
    properties:
      id:
        description: The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, or user image.
        type: string
    required:
      - id
  GalleryDataDiskImage:
    allOf:
      - $ref: "#/definitions/GalleryDiskImage"
    description: This is the data disk image.
    properties:
      lun:
        description: This property specifies the logical unit number of the data disk. This value is used to identify data disks within the Virtual Machine and therefore must be unique for each data disk attached to the Virtual Machine.
        format: int32
        type: integer
    required:
      - lun
  GalleryDiskImage:
    description: This is the disk image base class.
    properties:
      hostCaching:
        description: The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'
        enum:
          - None
          - ReadOnly
          - ReadWrite
        type: string
        x-ms-enum:
          modelAsString: false
          name: HostCaching
      sizeInGB:
        description: This property indicates the size of the VHD to be created.
        format: int32
        readOnly: true
        type: integer
      source:
        $ref: "#/definitions/GalleryArtifactVersionSource"
  GalleryIdentifier:
    description: Describes the gallery unique name.
    properties:
      uniqueName:
        description: The unique name of the Shared Image Gallery. This name is generated automatically by Azure.
        readOnly: true
        type: string
  GalleryImage:
    allOf:
      - $ref: "#/definitions/Resource"
    description: Specifies information about the gallery Image Definition that you want to create or update.
    properties:
      properties:
        $ref: "#/definitions/GalleryImageProperties"
        x-ms-client-flatten: true
  GalleryImageIdentifier:
    description: This is the gallery Image Definition identifier.
    properties:
      offer:
        description: The name of the gallery Image Definition offer.
        type: string
      publisher:
        description: The name of the gallery Image Definition publisher.
        type: string
      sku:
        description: The name of the gallery Image Definition SKU.
        type: string
    required:
      - publisher
      - offer
      - sku
  GalleryImageList:
    description: The List Gallery Images operation response.
    properties:
      nextLink:
        description: The uri to fetch the next page of Image Definitions in the Shared Image Gallery. Call ListNext() with this to fetch the next page of gallery Image Definitions.
        type: string
      value:
        description: A list of Shared Image Gallery images.
        items:
          $ref: "#/definitions/GalleryImage"
        type: array
    required:
      - value
  GalleryImageProperties:
    description: Describes the properties of a gallery Image Definition.
    properties:
      description:
        description: The description of this gallery Image Definition resource. This property is updatable.
        type: string
      disallowed:
        $ref: "#/definitions/Disallowed"
      endOfLifeDate:
        description: The end of life date of the gallery Image Definition. This property can be used for decommissioning purposes. This property is updatable.
        format: date-time
        type: string
      eula:
        description: The Eula agreement for the gallery Image Definition.
        type: string
      hyperVGeneration:
        description: The hypervisor generation of the Virtual Machine. Applicable to OS disks only.
        enum:
          - V1
          - V2
        type: string
        x-ms-enum:
          modelAsString: true
          name: HyperVGeneration
      identifier:
        $ref: "#/definitions/GalleryImageIdentifier"
      osState:
        description: This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'.
        enum:
          - Generalized
          - Specialized
        type: string
        x-ms-enum:
          modelAsString: false
          name: OperatingSystemStateTypes
      osType:
        description: "This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. <br><br> Possible values are: <br><br> **Windows** <br><br> **Linux**"
        enum:
          - Windows
          - Linux
        type: string
        x-ms-enum:
          modelAsString: false
          name: OperatingSystemTypes
      privacyStatementUri:
        description: The privacy statement uri.
        type: string
      provisioningState:
        description: The provisioning state, which only appears in the response.
        enum:
          - Creating
          - Updating
          - Failed
          - Succeeded
          - Deleting
          - Migrating
        readOnly: true
        title: The current state of the gallery Image Definition.
        type: string
      purchasePlan:
        $ref: "#/definitions/ImagePurchasePlan"
      recommended:
        $ref: "#/definitions/RecommendedMachineConfiguration"
      releaseNoteUri:
        description: The release note uri.
        type: string
    required:
      - osType
      - osState
      - identifier
  GalleryImageUpdate:
    allOf:
      - $ref: "#/definitions/UpdateResource"
    description: Specifies information about the gallery Image Definition that you want to update.
    properties:
      properties:
        $ref: "#/definitions/GalleryImageProperties"
        x-ms-client-flatten: true
  GalleryImageVersion:
    allOf:
      - $ref: "#/definitions/Resource"
    description: Specifies information about the gallery Image Version that you want to create or update.
    properties:
      properties:
        $ref: "#/definitions/GalleryImageVersionProperties"
        x-ms-client-flatten: true
  GalleryImageVersionList:
    description: The List Gallery Image version operation response.
    properties:
      nextLink:
        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.
        type: string
      value:
        description: A list of gallery Image Versions.
        items:
          $ref: "#/definitions/GalleryImageVersion"
        type: array
    required:
      - value
  GalleryImageVersionProperties:
    description: Describes the properties of a gallery Image Version.
    properties:
      provisioningState:
        description: The provisioning state, which only appears in the response.
        enum:
          - Creating
          - Updating
          - Failed
          - Succeeded
          - Deleting
          - Migrating
        readOnly: true
        title: The current state of the gallery Image Version.
        type: string
      publishingProfile:
        $ref: "#/definitions/GalleryImageVersionPublishingProfile"
      replicationStatus:
        $ref: "#/definitions/ReplicationStatus"
        readOnly: true
      storageProfile:
        $ref: "#/definitions/GalleryImageVersionStorageProfile"
    required:
      - storageProfile
  GalleryImageVersionPublishingProfile:
    allOf:
      - $ref: "#/definitions/GalleryArtifactPublishingProfileBase"
    description: The publishing profile of a gallery Image Version.
  GalleryImageVersionStorageProfile:
    description: This is the storage profile of a Gallery Image Version.
    properties:
      dataDiskImages:
        description: A list of data disk images.
        items:
          $ref: "#/definitions/GalleryDataDiskImage"
        type: array
      osDiskImage:
        $ref: "#/definitions/GalleryOSDiskImage"
      source:
        $ref: "#/definitions/GalleryArtifactVersionSource"
  GalleryImageVersionUpdate:
    allOf:
      - $ref: "#/definitions/UpdateResource"
    description: Specifies information about the gallery Image Version that you want to update.
    properties:
      properties:
        $ref: "#/definitions/GalleryImageVersionProperties"
        x-ms-client-flatten: true
  GalleryList:
    description: The List Galleries operation response.
    properties:
      nextLink:
        description: The uri to fetch the next page of galleries. Call ListNext() with this to fetch the next page of galleries.
        type: string
      value:
        description: A list of galleries.
        items:
          $ref: "#/definitions/Gallery"
        type: array
    required:
      - value
  GalleryOSDiskImage:
    allOf:
      - $ref: "#/definitions/GalleryDiskImage"
    description: This is the OS disk image.
  GalleryProperties:
    description: Describes the properties of a Shared Image Gallery.
    properties:
      description:
        description: The description of this Shared Image Gallery resource. This property is updatable.
        type: string
      identifier:
        $ref: "#/definitions/GalleryIdentifier"
      provisioningState:
        description: The provisioning state, which only appears in the response.
        enum:
          - Creating
          - Updating
          - Failed
          - Succeeded
          - Deleting
          - Migrating
        readOnly: true
        title: The current state of the gallery.
        type: string
  GalleryUpdate:
    allOf:
      - $ref: "#/definitions/UpdateResource"
    description: Specifies information about the Shared Image Gallery that you want to update.
    properties:
      properties:
        $ref: "#/definitions/GalleryProperties"
        x-ms-client-flatten: true
  ImagePurchasePlan:
    description: Describes the gallery Image Definition purchase plan. This is used by marketplace images.
    properties:
      name:
        description: The plan ID.
        type: string
      product:
        description: The product ID.
        type: string
      publisher:
        description: The publisher ID.
        type: string
  InnerError:
    description: Inner error details.
    properties:
      errordetail:
        description: The internal error message or exception dump.
        type: string
      exceptiontype:
        description: The exception type.
        type: string
  ManagedArtifact:
    description: The managed artifact.
    properties:
      id:
        description: The managed artifact id.
        type: string
    required:
      - id
  RecommendedMachineConfiguration:
    description: The properties describe the recommended machine configuration for this Image Definition. These properties are updatable.
    properties:
      memory:
        $ref: "#/definitions/ResourceRange"
      vCPUs:
        $ref: "#/definitions/ResourceRange"
  RegionalReplicationStatus:
    description: This is the regional replication status.
    properties:
      details:
        description: The details of the replication status.
        readOnly: true
        type: string
      progress:
        description: It indicates progress of the replication job.
        format: int32
        readOnly: true
        type: integer
      region:
        description: The region to which the gallery Image Version is being replicated to.
        readOnly: true
        type: string
      state:
        description: This is the regional replication state.
        enum:
          - Unknown
          - Replicating
          - Completed
          - Failed
        readOnly: true
        type: string
        x-ms-enum:
          modelAsString: true
          name: ReplicationState
  ReplicationStatus:
    description: This is the replication status of the gallery Image Version.
    properties:
      aggregatedState:
        description: This is the aggregated replication status based on all the regional replication status flags.
        enum:
          - Unknown
          - InProgress
          - Completed
          - Failed
        readOnly: true
        type: string
        x-ms-enum:
          modelAsString: true
          name: AggregatedReplicationState
      summary:
        description: This is a summary of replication status for each region.
        items:
          $ref: "#/definitions/RegionalReplicationStatus"
        readOnly: true
        type: array
  Resource:
    description: The Resource model definition.
    properties:
      id:
        description: Resource Id
        readOnly: true
        type: string
      location:
        description: Resource location
        type: string
      name:
        description: Resource name
        readOnly: true
        type: string
      tags:
        additionalProperties:
          type: string
        description: Resource tags
        type: object
      type:
        description: Resource type
        readOnly: true
        type: string
    required:
      - location
    x-ms-azure-resource: true
  ResourceRange:
    description: Describes the resource range.
    properties:
      max:
        description: The maximum number of the resource.
        format: int32
        type: integer
      min:
        description: The minimum number of the resource.
        format: int32
        type: integer
  TargetRegion:
    description: Describes the target region information.
    properties:
      name:
        description: The name of the region.
        type: string
      regionalReplicaCount:
        description: The number of replicas of the Image Version to be created per region. This property is updatable.
        format: int32
        type: integer
      storageAccountType:
        description: Specifies the storage account type to be used to store the image. This property is not updatable.
        enum:
          - Standard_LRS
          - Standard_ZRS
        type: string
        x-ms-enum:
          modelAsString: true
          name: StorageAccountType
    required:
      - name
  UpdateResource:
    description: The Update Resource model definition.
    properties:
      id:
        description: Resource Id
        readOnly: true
        type: string
      name:
        description: Resource name
        readOnly: true
        type: string
      tags:
        additionalProperties:
          type: string
        description: Resource tags
        type: object
      type:
        description: Resource type
        readOnly: true
        type: string
    x-ms-azure-resource: true
  UserArtifactSource:
    description: The source image from which the Image Version is going to be created.
    properties:
      fileName:
        description: Required. The fileName of the artifact.
        type: string
      mediaLink:
        description: Required. The mediaLink of the artifact, must be a readable storage blob.
        type: string
    required:
      - fileName
      - mediaLink
