Skip to content

Commit

Permalink
set up feature branch
Browse files Browse the repository at this point in the history
  • Loading branch information
grizzlytheodore committed Feb 23, 2022
1 parent 9f48fea commit 1934815
Show file tree
Hide file tree
Showing 61 changed files with 8,218 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,359 @@
{
"swagger": "2.0",
"info": {
"title": "CommunityGalleryServiceClient",
"description": "Community Gallery Service Client.",
"version": "2022-01-03"
},
"host": "management.azure.com",
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"security": [
{
"azure_auth": [
"user_impersonation"
]
}
],
"securityDefinitions": {
"azure_auth": {
"type": "oauth2",
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"flow": "implicit",
"description": "Azure Active Directory OAuth2 Flow",
"scopes": {
"user_impersonation": "impersonate your user account"
}
}
},
"paths": {
"/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}": {
"get": {
"tags": [
"CommunityGalleries"
],
"operationId": "CommunityGalleries_Get",
"description": "Get a community gallery by gallery public name.",
"parameters": [
{
"$ref": "../common.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "./galleryRPCommon.json#/parameters/LocationNameParameter"
},
{
"$ref": "#/parameters/PublicGalleryNameParameter"
},
{
"$ref": "../common.json#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/CommunityGallery"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../common.json#/definitions/CloudError"
}
}
},
"x-ms-examples": {
"Get a gallery.": {
"$ref": "./examples/communityGalleryExamples/CommunityGallery_Get.json"
}
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images/{galleryImageName}": {
"get": {
"tags": [
"CommunityGalleryImages"
],
"operationId": "CommunityGalleryImages_Get",
"description": "Get a community gallery image.",
"parameters": [
{
"$ref": "../common.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "./galleryRPCommon.json#/parameters/LocationNameParameter"
},
{
"$ref": "../common.json#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/PublicGalleryNameParameter"
},
{
"$ref": "#/parameters/GalleryImageNameParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/CommunityGalleryImage"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../common.json#/definitions/CloudError"
}
}
},
"x-ms-examples": {
"Get a gallery.": {
"$ref": "./examples/communityGalleryExamples/CommunityGalleryImage_Get.json"
}
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}": {
"get": {
"tags": [
"CommunityGalleryImageVersions"
],
"operationId": "CommunityGalleryImageVersions_Get",
"description": "Get a community gallery image version.",
"parameters": [
{
"$ref": "../common.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "./galleryRPCommon.json#/parameters/LocationNameParameter"
},
{
"$ref": "../common.json#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/PublicGalleryNameParameter"
},
{
"$ref": "#/parameters/GalleryImageNameParameter"
},
{
"$ref": "#/parameters/GalleryImageVersionNameParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/CommunityGalleryImageVersion"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../common.json#/definitions/CloudError"
}
}
},
"x-ms-examples": {
"Get a gallery.": {
"$ref": "./examples/communityGalleryExamples/CommunityGalleryImageVersion_Get.json"
}
}
}
}
},
"definitions": {
"PirCommunityGalleryResource": {
"properties": {
"name": {
"readOnly": true,
"type": "string",
"description": "Resource name"
},
"location": {
"readOnly": true,
"type": "string",
"description": "Resource location"
},
"type": {
"readOnly": true,
"type": "string",
"description": "Resource type"
},
"identifier": {
"x-ms-client-flatten": true,
"$ref": "#/definitions/CommunityGalleryIdentifier"
}
},
"description": "Base information about the community gallery resource in pir."
},
"CommunityGalleryIdentifier": {
"properties": {
"uniqueId": {
"type": "string",
"description": "The unique id of this community gallery."
}
},
"description": "The identifier information of community gallery."
},
"CommunityGallery": {
"properties": {},
"allOf": [
{
"$ref": "#/definitions/PirCommunityGalleryResource"
}
],
"description": "Specifies information about the Community Gallery that you want to create or update."
},
"CommunityGalleryImage": {
"properties": {
"properties": {
"x-ms-client-flatten": true,
"$ref": "#/definitions/CommunityGalleryImageProperties"
}
},
"allOf": [
{
"$ref": "#/definitions/PirCommunityGalleryResource"
}
],
"description": "Specifies information about the gallery image definition that you want to create or update."
},
"CommunityGalleryImageProperties": {
"properties": {
"osType": {
"type": "string",
"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"
],
"x-ms-enum": {
"name": "OperatingSystemTypes",
"modelAsString": false
}
},
"osState": {
"type": "string",
"description": "This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'.",
"enum": [
"Generalized",
"Specialized"
],
"x-ms-enum": {
"name": "OperatingSystemStateTypes",
"modelAsString": false
}
},
"endOfLifeDate": {
"type": "string",
"format": "date-time",
"description": "The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable."
},
"identifier": {
"$ref": "./galleryRPCommon.json#/definitions/GalleryImageIdentifier"
},
"recommended": {
"$ref": "./galleryRPCommon.json#/definitions/RecommendedMachineConfiguration"
},
"disallowed": {
"$ref": "./galleryRPCommon.json#/definitions/Disallowed"
},
"hyperVGeneration": {
"type": "string",
"description": "The hypervisor generation of the Virtual Machine. Applicable to OS disks only.",
"enum": [
"V1",
"V2"
],
"x-ms-enum": {
"name": "HyperVGeneration",
"modelAsString": true
}
},
"features": {
"type": "array",
"items": {
"$ref": "./galleryRPCommon.json#/definitions/GalleryImageFeature"
},
"x-ms-identifiers": [
"name"
],
"description": "A list of gallery image features."
},
"purchasePlan": {
"$ref": "./galleryRPCommon.json#/definitions/ImagePurchasePlan"
}
},
"required": [
"osType",
"osState",
"identifier"
],
"description": "Describes the properties of a gallery image definition."
},
"CommunityGalleryImageVersion": {
"properties": {
"properties": {
"x-ms-client-flatten": true,
"$ref": "#/definitions/CommunityGalleryImageVersionProperties"
}
},
"allOf": [
{
"$ref": "#/definitions/PirCommunityGalleryResource"
}
],
"description": "Specifies information about the gallery image version that you want to create or update."
},
"CommunityGalleryImageVersionProperties": {
"properties": {
"publishedDate": {
"type": "string",
"format": "date-time",
"description": "The published date of the gallery image version Definition. This property can be used for decommissioning purposes. This property is updatable."
},
"endOfLifeDate": {
"type": "string",
"format": "date-time",
"description": "The end of life date of the gallery image version Definition. This property can be used for decommissioning purposes. This property is updatable."
}
},
"description": "Describes the properties of a gallery image version."
}
},
"parameters": {
"PublicGalleryNameParameter": {
"name": "publicGalleryName",
"in": "path",
"required": true,
"type": "string",
"x-ms-parameter-location": "method",
"description": "The public name of the community gallery."
},
"GalleryImageNameParameter": {
"name": "galleryImageName",
"in": "path",
"required": true,
"type": "string",
"x-ms-parameter-location": "method",
"description": "The name of the community gallery image definition."
},
"GalleryImageVersionNameParameter": {
"name": "galleryImageVersionName",
"in": "path",
"required": true,
"type": "string",
"x-ms-parameter-location": "method",
"description": "The name of the community gallery image version. 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>"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"location": "myLocation",
"api-version": "2022-01-03",
"publicGalleryName": "publicGalleryName",
"galleryImageName": "myGalleryImageName",
"galleryImageVersionName": "myGalleryImageVersionName"
},
"responses": {
"200": {
"body": {
"properties": {
"publishedDate": "2018-03-20T09:12:28Z",
"endOfLifeDate": "2022-03-20T09:12:28Z"
},
"location": "myLocation",
"name": "myGalleryImageVersionName",
"type": "Microsoft.Compute/Locations/CommunityGalleryImageVersion",
"identifier": {
"uniqueId": "/CommunityGalleries/publicGalleryName/Images/myGalleryImageName/Versions/myGalleryImageVersionName"
}
}
}
}
}
Loading

0 comments on commit 1934815

Please sign in to comment.