diff --git a/packages/extensions/openapi-to-typespec/src/emiters/emit-arm-resources.ts b/packages/extensions/openapi-to-typespec/src/emiters/emit-arm-resources.ts index ace7e4bcf1..d6fab57395 100644 --- a/packages/extensions/openapi-to-typespec/src/emiters/emit-arm-resources.ts +++ b/packages/extensions/openapi-to-typespec/src/emiters/emit-arm-resources.ts @@ -4,8 +4,9 @@ import { generateArmResource, generateArmResourceExamples } from "../generate/ge import { TypespecProgram, TspArmResource } from "../interfaces"; import { formatTypespecFile } from "../utils/format"; import { getNamespaceStatement } from "../utils/namespace"; +import { Metadata } from "../utils/resource-discovery"; -export async function emitArmResources(program: TypespecProgram, basePath: string) { +export async function emitArmResources(program: TypespecProgram, metadata: Metadata, basePath: string) { // Create a file per resource const session = getSession(); const { serviceInformation } = program; @@ -35,6 +36,13 @@ export async function emitArmResources(program: TypespecProgram, basePath: strin } } } + + const multiPathResources = Object.keys(metadata.Resources).filter(key => key.endsWith("FixMe")); + for (const resource of multiPathResources) { + const originalName = resource.replace("FixMe", ""); + const filePath = join(basePath, `${resource}.tsp`); + session.writeFile({ filename: filePath, content: `// You defined multiple pathes under the model ${originalName}. We currently don't support it. Please fix it manually.` }); + } } export function getResourcesImports(_program: TypespecProgram, armResource: TspArmResource) { diff --git a/packages/extensions/openapi-to-typespec/src/emiters/emit-main.ts b/packages/extensions/openapi-to-typespec/src/emiters/emit-main.ts index 525caf67dd..38e2ee279f 100644 --- a/packages/extensions/openapi-to-typespec/src/emiters/emit-main.ts +++ b/packages/extensions/openapi-to-typespec/src/emiters/emit-main.ts @@ -1,14 +1,14 @@ +import { Metadata } from "../utils/resource-discovery"; import { getSession } from "../autorest-session"; import { generateServiceInformation } from "../generate/generate-service-information"; import { TypespecProgram } from "../interfaces"; import { getOptions } from "../options"; import { formatTypespecFile } from "../utils/format"; -import { getArmResourcesMetadata } from "../utils/resource-discovery"; const packageInfo = require("../../package.json"); -export async function emitMain(filePath: string, program: TypespecProgram): Promise { +export async function emitMain(filePath: string, program: TypespecProgram, metadata: Metadata | undefined): Promise { const { isArm } = getOptions(); - const content = `${getHeaders()}\n${isArm ? getArmServiceInformation(program) : getServiceInformation(program)}`; + const content = `${getHeaders()}\n${isArm ? getArmServiceInformation(program, metadata!) : getServiceInformation(program)}`; const session = getSession(); session.writeFile({ filename: filePath, content: await formatTypespecFile(content, filePath) }); } @@ -40,14 +40,14 @@ function getServiceInformation(program: TypespecProgram) { return [...imports, content].join("\n"); } -function getArmServiceInformation(program: TypespecProgram) { +function getArmServiceInformation(program: TypespecProgram, metadata: Metadata) { const imports = [ `import "@typespec/rest";`, `import "@typespec/versioning";`, `import "@azure-tools/typespec-azure-core";`, `import "@azure-tools/typespec-azure-resource-manager";`, `import "./models.tsp";`, - ...getArmResourceImports(program), + ...getArmResourceImports(program, metadata), ``, `using TypeSpec.Rest;`, `using TypeSpec.Http;`, @@ -61,12 +61,14 @@ function getArmServiceInformation(program: TypespecProgram) { return [...imports, content].join("\n"); } -function getArmResourceImports(program: TypespecProgram): string[] { - const resourceMetadata = getArmResourcesMetadata(); +function getArmResourceImports(program: TypespecProgram, metadata: Metadata): string[] { const imports: string[] = []; - for (const resource in resourceMetadata.Resources) { - imports.push(`import "./${resourceMetadata.Resources[resource].SwaggerModelName}.tsp";`); + for (const resource in metadata.Resources) { + const fileName = metadata.Resources[resource].Name; + if (fileName) { + imports.push(`import "./${fileName}.tsp";`); + } } if (program.operationGroups.length > 0) { diff --git a/packages/extensions/openapi-to-typespec/src/main.ts b/packages/extensions/openapi-to-typespec/src/main.ts index 7f227ecf90..5816a28912 100644 --- a/packages/extensions/openapi-to-typespec/src/main.ts +++ b/packages/extensions/openapi-to-typespec/src/main.ts @@ -31,9 +31,10 @@ export async function processConverter(host: AutorestExtensionHost) { const codeModel = session.model; pretransformNames(codeModel); const { isArm } = getOptions(); + let metadata = undefined; if (isArm) { // await host.writeFile({ filename: "codeModel.yaml", content: serialize(codeModel, codeModelSchema)} ); - const metadata = parseMetadata(codeModel); + metadata = parseMetadata(codeModel); await host.writeFile({ filename: "resources.json", content: JSON.stringify(metadata, null, 2) }); pretransformArmResources(codeModel, metadata); pretransformRename(codeModel, metadata); @@ -42,10 +43,12 @@ export async function processConverter(host: AutorestExtensionHost) { markErrorModels(codeModel); markResources(codeModel); const programDetails = getModel(codeModel); - await emitArmResources(programDetails, getOutuptDirectory(session)); + if (isArm) { + await emitArmResources(programDetails, metadata!, getOutuptDirectory(session)); + } await emitModels(getFilePath(session, "models.tsp"), programDetails); await emitRoutes(getFilePath(session, "routes.tsp"), programDetails); - await emitMain(getFilePath(session, "main.tsp"), programDetails); + await emitMain(getFilePath(session, "main.tsp"), programDetails, metadata); await emitPackage(getFilePath(session, "package.json"), programDetails); await emitTypespecConfig(getFilePath(session, "tspconfig.yaml"), programDetails); await emitClient(getFilePath(session, "client.tsp"), programDetails); diff --git a/packages/extensions/openapi-to-typespec/src/pretransforms/rename-pretransform.ts b/packages/extensions/openapi-to-typespec/src/pretransforms/rename-pretransform.ts index 53956fa9ea..bca1bb1749 100644 --- a/packages/extensions/openapi-to-typespec/src/pretransforms/rename-pretransform.ts +++ b/packages/extensions/openapi-to-typespec/src/pretransforms/rename-pretransform.ts @@ -13,7 +13,7 @@ import { import { TypespecDecorator } from "../interfaces"; import { getOptions } from "../options"; import { getLogger } from "../utils/logger"; -import { Metadata, getArmResourcesMetadata } from "../utils/resource-discovery"; +import { Metadata } from "../utils/resource-discovery"; type RenamableSchema = Schema | Property | Parameter | ChoiceValue | Operation; diff --git a/packages/extensions/openapi-to-typespec/src/resource/operation-set.ts b/packages/extensions/openapi-to-typespec/src/resource/operation-set.ts index 2ff208a959..d06c05c895 100644 --- a/packages/extensions/openapi-to-typespec/src/resource/operation-set.ts +++ b/packages/extensions/openapi-to-typespec/src/resource/operation-set.ts @@ -65,8 +65,8 @@ export function populateSingletonRequestPath(set: OperationSet): void { updatedSegments.push(segment); } else { const keyName = segment.replace(/^\{(\w+)\}$/, "$1"); - const resourceKeyParameter = set.Operations[0].parameters?.find((p) => p.language.default.name === keyName); - if (resourceKeyParameter === undefined) throw `Cannot find parameter ${keyName}`; + const resourceKeyParameter = set.Operations[0].parameters?.find((p) => p.language.default.name === keyName || p.language.default.serializedName === keyName); + if (resourceKeyParameter === undefined) throw `Cannot find parameter ${keyName} in operation ${set.Operations[0].operationId}`; if (!isConstantSchema(resourceKeyParameter.schema)) { updatedSegments.push(segment); diff --git a/packages/extensions/openapi-to-typespec/src/resource/parse-metadata.ts b/packages/extensions/openapi-to-typespec/src/resource/parse-metadata.ts index 1cf69d9195..42b8333b1c 100644 --- a/packages/extensions/openapi-to-typespec/src/resource/parse-metadata.ts +++ b/packages/extensions/openapi-to-typespec/src/resource/parse-metadata.ts @@ -70,11 +70,33 @@ export function parseMetadata(codeModel: CodeModel): Metadata { for (const resourceSchemaName in operationSetsByResourceDataSchemaName) { const operationSets = operationSetsByResourceDataSchemaName[resourceSchemaName]; if (operationSets.length > 1) { - console.warn( - `We cannot support multi path with same model. Some operations will be lost. \nResource schema name: ${resourceSchemaName}.\nPath:\n${operationSets + logger().info(`We cannot support multi path with same model. Some operations will be lost. \nResource schema name: ${resourceSchemaName}.\nPath:\n${operationSets .map((o) => o.RequestPath) - .join("\n")}`, - ); + .join("\n")}`); + resources[resourceSchemaName + "FixMe"] = { + Name: resourceSchemaName + "FixMe", + GetOperations: [], + CreateOperations: [], + UpdateOperations: [], + DeleteOperations: [], + ListOperations: [], + OperationsFromResourceGroupExtension: [], + OperationsFromSubscriptionExtension: [], + OperationsFromManagementGroupExtension: [], + OperationsFromTenantExtension: [], + OtherOperations: [], + Parents: [], + SwaggerModelName: "", + ResourceType: "", + ResourceKey: "", + ResourceKeySegment: "", + IsTrackedResource: false, + IsTenantResource: false, + IsSubscriptionResource: false, + IsManagementGroupResource: false, + IsExtensionResource: false, + IsSingletonResource: false, + } } resources[resourceSchemaName] = buildResource( resourceSchemaName, @@ -180,8 +202,7 @@ function buildResourceOperationFromOperation(operation: Operation, operationName pagingMetadata = { Method: operation.language.default.name, ItemName: itemName, - NextLinkName: nextLinkName, - NextPageMethod: undefined, // We are not using it + NextLinkName: nextLinkName }; } diff --git a/packages/extensions/openapi-to-typespec/src/resource/utils.ts b/packages/extensions/openapi-to-typespec/src/resource/utils.ts index 59c1bd5ee7..1c969097a3 100644 --- a/packages/extensions/openapi-to-typespec/src/resource/utils.ts +++ b/packages/extensions/openapi-to-typespec/src/resource/utils.ts @@ -68,8 +68,8 @@ export function isSingleton(set: OperationSet): boolean { if (lastSegment.match(/^\{\w+\}$/) === null) return true; const resourceKey = lastSegment.replace(/^\{(\w+)\}$/, "$1"); - const resourceKeyParameter = set.Operations[0].parameters?.find((p) => p.language.default.name === resourceKey); - if (resourceKeyParameter === undefined) throw `Cannot find parameter ${resourceKey}`; + const resourceKeyParameter = set.Operations[0].parameters?.find((p) => p.language.default.name === resourceKey|| p.language.default.serializedName === resourceKey); + if (resourceKeyParameter === undefined) throw `Cannot find parameter ${resourceKey} in operation ${set.Operations[0].operationId}`; return isConstantSchema(resourceKeyParameter?.schema); } diff --git a/packages/extensions/openapi-to-typespec/src/utils/resource-discovery.ts b/packages/extensions/openapi-to-typespec/src/utils/resource-discovery.ts index d89fc26bc8..a4eed9b5e6 100644 --- a/packages/extensions/openapi-to-typespec/src/utils/resource-discovery.ts +++ b/packages/extensions/openapi-to-typespec/src/utils/resource-discovery.ts @@ -16,7 +16,6 @@ export interface _ArmResourceOperation { export interface _ArmPagingMetadata { Method: string; - NextPageMethod?: string; ItemName: string; NextLinkName: string; } @@ -124,24 +123,6 @@ export function getResourceExistOperation(resource: ArmResource): Operation | un } } -export function getArmResourcesMetadata(): Metadata { - if (metadataCache) { - return metadataCache; - } - const session = getSession(); - const outputFolder: string = session.configuration["output-folder"] ?? ""; - - try { - const content = readFileSync(join(outputFolder, "resources.json"), "utf-8"); - const metadata: Metadata = JSON.parse(content); - metadataCache = metadata; - - return metadataCache; - } catch (e) { - throw new Error(`Failed to load resources.json from ${outputFolder} \n ${e}`); - } -} - export interface ArmResourceSchema extends ObjectSchema { resourceMetadata: ArmResource; } diff --git a/packages/extensions/openapi-to-typespec/test/arm-analysisservices/tsp-output/examples/2017-08-01/Servers_CheckNameAvailability.json b/packages/extensions/openapi-to-typespec/test/arm-analysisservices/tsp-output/examples/2017-08-01/Servers_CheckNameAvailability.json deleted file mode 100644 index 2200bb3519..0000000000 --- a/packages/extensions/openapi-to-typespec/test/arm-analysisservices/tsp-output/examples/2017-08-01/Servers_CheckNameAvailability.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "parameters": { - "api-version": "2017-08-01", - "location": "West US", - "serverParameters": { - "name": "azsdktest", - "type": "Microsoft.AnalysisServices/servers" - }, - "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60" - }, - "responses": { - "200": { - "body": { - "nameAvailable": true - }, - "headers": {} - } - }, - "operationId": "Servers_CheckNameAvailability", - "title": "Get details of a server" -} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-analysisservices/tsp-output/examples/2017-08-01/Servers_ListSkusForNew.json b/packages/extensions/openapi-to-typespec/test/arm-analysisservices/tsp-output/examples/2017-08-01/Servers_ListSkusForNew.json deleted file mode 100644 index 7b4c6fd08e..0000000000 --- a/packages/extensions/openapi-to-typespec/test/arm-analysisservices/tsp-output/examples/2017-08-01/Servers_ListSkusForNew.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "parameters": { - "api-version": "2017-08-01", - "subscriptionId": "613192d7-503f-477a-9cfe-4efc3ee2bd60" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "B1" - }, - { - "name": "B2" - }, - { - "name": "D1" - }, - { - "name": "S0" - }, - { - "name": "S1" - }, - { - "name": "S2" - }, - { - "name": "S3" - }, - { - "name": "S4" - } - ] - }, - "headers": {} - } - }, - "operationId": "Servers_ListSkusForNew", - "title": "List eligible SKUs for a new server" -} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/resources.json b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/resources.json index 0985e755b3..c475abe3dc 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/resources.json +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/resources.json @@ -1,7 +1,7 @@ { "Resources": { - "Api": { - "Name": "Api", + "ApiContract": { + "Name": "ApiContract", "GetOperations": [ { "Name": "Get", @@ -55,7 +55,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "ListByService", - "NextPageMethod": "ListByServiceNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -68,58 +67,48 @@ "OperationsFromTenantExtension": [], "OtherOperations": [ { - "Name": "GetApiRevisionsByService", + "Name": "ListByService", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/revisions", "Method": "GET", "OperationID": "ApiRevision_ListByService", "IsLongRunning": false, "PagingMetadata": { "Method": "ListByService", - "NextPageMethod": "ListByServiceNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, "Description": "Lists all revisions of an API." }, { - "Name": "GetApiProducts", + "Name": "ListByApis", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/products", "Method": "GET", "OperationID": "ApiProduct_ListByApis", "IsLongRunning": false, "PagingMetadata": { "Method": "ListByApis", - "NextPageMethod": "ListByApisNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, "Description": "Lists all Products, which the API is part of." }, { - "Name": "GetOperationsByTags", + "Name": "ListByTags", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operationsByTags", "Method": "GET", "OperationID": "Operation_ListByTags", "IsLongRunning": false, "PagingMetadata": { "Method": "ListByTags", - "NextPageMethod": "ListByTagsNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, "Description": "Lists a collection of operations associated with tags." - }, - { - "Name": "GetEntityTag", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", - "Method": "HEAD", - "OperationID": "Api_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state (Etag) version of the API specified by its identifier." } ], - "Parents": ["ApiManagementService"], + "Parents": [ + "ApiManagementServiceResource" + ], "SwaggerModelName": "ApiContract", "ResourceType": "Microsoft.ApiManagement/service/apis", "ResourceKey": "apiId", @@ -131,8 +120,8 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "ApiRelease": { - "Name": "ApiRelease", + "ApiReleaseContract": { + "Name": "ApiReleaseContract", "GetOperations": [ { "Name": "Get", @@ -186,7 +175,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "ListByService", - "NextPageMethod": "ListByServiceNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -197,18 +185,10 @@ "OperationsFromSubscriptionExtension": [], "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "GetEntityTag", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}", - "Method": "HEAD", - "OperationID": "ApiRelease_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Returns the etag of an API release." - } + "OtherOperations": [], + "Parents": [ + "ApiContract" ], - "Parents": ["Api"], "SwaggerModelName": "ApiReleaseContract", "ResourceType": "Microsoft.ApiManagement/service/apis/releases", "ResourceKey": "releaseId", @@ -220,8 +200,8 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "ApiOperation": { - "Name": "ApiOperation", + "OperationContract": { + "Name": "OperationContract", "GetOperations": [ { "Name": "Get", @@ -275,7 +255,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "ListByApi", - "NextPageMethod": "ListByApiNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -286,18 +265,10 @@ "OperationsFromSubscriptionExtension": [], "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "GetEntityTag", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}", - "Method": "HEAD", - "OperationID": "ApiOperation_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state (Etag) version of the API operation specified by its identifier." - } + "OtherOperations": [], + "Parents": [ + "ApiContract" ], - "Parents": ["Api"], "SwaggerModelName": "OperationContract", "ResourceType": "Microsoft.ApiManagement/service/apis/operations", "ResourceKey": "operationId", @@ -309,8 +280,32 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "ApiOperationPolicy": { - "Name": "ApiOperationPolicy", + "PolicyContractFixMe": { + "Name": "PolicyContractFixMe", + "GetOperations": [], + "CreateOperations": [], + "UpdateOperations": [], + "DeleteOperations": [], + "ListOperations": [], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [], + "SwaggerModelName": "", + "ResourceType": "", + "ResourceKey": "", + "ResourceKeySegment": "", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + }, + "PolicyContract": { + "Name": "PolicyContract", "GetOperations": [ { "Name": "Get", @@ -364,9 +359,8 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "ListByOperation", - "NextPageMethod": null, "ItemName": "value", - "NextLinkName": null + "NextLinkName": "nextLink" }, "Description": "Get the list of policy configuration at the API Operation level." } @@ -375,18 +369,10 @@ "OperationsFromSubscriptionExtension": [], "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "GetEntityTag", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies/{policyId}", - "Method": "HEAD", - "OperationID": "ApiOperationPolicy_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state (Etag) version of the API operation policy specified by its identifier." - } + "OtherOperations": [], + "Parents": [ + "OperationContract" ], - "Parents": ["ApiOperation"], "SwaggerModelName": "PolicyContract", "ResourceType": "Microsoft.ApiManagement/service/apis/operations/policies", "ResourceKey": "policyId", @@ -398,88 +384,103 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "ApiPolicy": { - "Name": "ApiPolicy", + "TagContractFixMe": { + "Name": "TagContractFixMe", + "GetOperations": [], + "CreateOperations": [], + "UpdateOperations": [], + "DeleteOperations": [], + "ListOperations": [], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [], + "SwaggerModelName": "", + "ResourceType": "", + "ResourceKey": "", + "ResourceKeySegment": "", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + }, + "TagContract": { + "Name": "TagContract", "GetOperations": [ { "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies/{policyId}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}", "Method": "GET", - "OperationID": "ApiPolicy_Get", + "OperationID": "Tag_GetByOperation", "IsLongRunning": false, "PagingMetadata": null, - "Description": "Get the policy configuration at the API level." + "Description": "Get tag associated with the Operation." } ], "CreateOperations": [ { "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies/{policyId}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}", "Method": "PUT", - "OperationID": "ApiPolicy_CreateOrUpdate", + "OperationID": "Tag_AssignToOperation", "IsLongRunning": true, "PagingMetadata": null, - "Description": "Creates or updates policy configuration for the API." + "Description": "Assign tag to the Operation." } ], "UpdateOperations": [ { "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies/{policyId}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}", "Method": "PUT", - "OperationID": "ApiPolicy_CreateOrUpdate", + "OperationID": "Tag_AssignToOperation", "IsLongRunning": true, "PagingMetadata": null, - "Description": "Creates or updates policy configuration for the API." + "Description": "Assign tag to the Operation." } ], "DeleteOperations": [ { "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies/{policyId}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}", "Method": "DELETE", - "OperationID": "ApiPolicy_Delete", + "OperationID": "Tag_DetachFromOperation", "IsLongRunning": true, "PagingMetadata": null, - "Description": "Deletes the policy configuration at the Api." + "Description": "Detach the tag from the Operation." } ], "ListOperations": [ { "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags", "Method": "GET", - "OperationID": "ApiPolicy_ListByApi", + "OperationID": "Tag_ListByOperation", "IsLongRunning": false, "PagingMetadata": { - "Method": "ListByApi", - "NextPageMethod": null, + "Method": "ListByOperation", "ItemName": "value", - "NextLinkName": null + "NextLinkName": "nextLink" }, - "Description": "Get the policy configuration at the API level." + "Description": "Lists all Tags associated with the Operation." } ], "OperationsFromResourceGroupExtension": [], "OperationsFromSubscriptionExtension": [], "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "GetEntityTag", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies/{policyId}", - "Method": "HEAD", - "OperationID": "ApiPolicy_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state (Etag) version of the API policy specified by its identifier." - } + "OtherOperations": [], + "Parents": [ + "OperationContract" ], - "Parents": ["Api"], - "SwaggerModelName": "PolicyContract", - "ResourceType": "Microsoft.ApiManagement/service/apis/policies", - "ResourceKey": "policyId", - "ResourceKeySegment": "policies", + "SwaggerModelName": "TagContract", + "ResourceType": "Microsoft.ApiManagement/service/apis/operations/tags", + "ResourceKey": "tagId", + "ResourceKeySegment": "tags", "IsTrackedResource": false, "IsTenantResource": false, "IsSubscriptionResource": false, @@ -487,88 +488,103 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "ApiManagementPolicy": { - "Name": "ApiManagementPolicy", + "SchemaContract": { + "Name": "SchemaContract", "GetOperations": [ { "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}", "Method": "GET", - "OperationID": "Policy_Get", + "OperationID": "ApiSchema_Get", "IsLongRunning": false, "PagingMetadata": null, - "Description": "Get the Global policy definition of the Api Management service." + "Description": "Get the schema configuration at the API level." } ], "CreateOperations": [ { "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}", "Method": "PUT", - "OperationID": "Policy_CreateOrUpdate", + "OperationID": "ApiSchema_CreateOrUpdate", "IsLongRunning": true, "PagingMetadata": null, - "Description": "Creates or updates the global policy configuration of the Api Management service." + "Description": "Creates or updates schema configuration for the API." } ], "UpdateOperations": [ { "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}", "Method": "PUT", - "OperationID": "Policy_CreateOrUpdate", + "OperationID": "ApiSchema_CreateOrUpdate", "IsLongRunning": true, "PagingMetadata": null, - "Description": "Creates or updates the global policy configuration of the Api Management service." + "Description": "Creates or updates schema configuration for the API." } ], "DeleteOperations": [ { "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}", "Method": "DELETE", - "OperationID": "Policy_Delete", + "OperationID": "ApiSchema_Delete", "IsLongRunning": true, "PagingMetadata": null, - "Description": "Deletes the global policy configuration of the Api Management Service." + "Description": "Deletes the schema configuration at the Api." } ], "ListOperations": [ { "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas", "Method": "GET", - "OperationID": "Policy_ListByService", + "OperationID": "ApiSchema_ListByApi", "IsLongRunning": false, "PagingMetadata": { - "Method": "ListByService", - "NextPageMethod": null, + "Method": "ListByApi", "ItemName": "value", - "NextLinkName": null + "NextLinkName": "nextLink" }, - "Description": "Lists all the Global Policy definitions of the Api Management service." + "Description": "Get the schema configuration at the API level." } ], "OperationsFromResourceGroupExtension": [], "OperationsFromSubscriptionExtension": [], "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "GetEntityTag", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}", - "Method": "HEAD", - "OperationID": "Policy_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state (Etag) version of the Global policy definition in the Api Management service." - } + "OtherOperations": [], + "Parents": [ + "ApiContract" ], - "Parents": ["ApiManagementService"], - "SwaggerModelName": "PolicyContract", - "ResourceType": "Microsoft.ApiManagement/service/policies", - "ResourceKey": "policyId", - "ResourceKeySegment": "policies", + "SwaggerModelName": "SchemaContract", + "ResourceType": "Microsoft.ApiManagement/service/apis/schemas", + "ResourceKey": "schemaId", + "ResourceKeySegment": "schemas", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + }, + "DiagnosticContractFixMe": { + "Name": "DiagnosticContractFixMe", + "GetOperations": [], + "CreateOperations": [], + "UpdateOperations": [], + "DeleteOperations": [], + "ListOperations": [], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [], + "SwaggerModelName": "", + "ResourceType": "", + "ResourceKey": "", + "ResourceKeySegment": "", "IsTrackedResource": false, "IsTenantResource": false, "IsSubscriptionResource": false, @@ -576,88 +592,103 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "ApiManagementProductPolicy": { - "Name": "ApiManagementProductPolicy", + "DiagnosticContract": { + "Name": "DiagnosticContract", "GetOperations": [ { "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies/{policyId}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}", "Method": "GET", - "OperationID": "ProductPolicy_Get", + "OperationID": "ApiDiagnostic_Get", "IsLongRunning": false, "PagingMetadata": null, - "Description": "Get the policy configuration at the Product level." + "Description": "Gets the details of the Diagnostic for an API specified by its identifier." } ], "CreateOperations": [ { "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies/{policyId}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}", "Method": "PUT", - "OperationID": "ProductPolicy_CreateOrUpdate", + "OperationID": "ApiDiagnostic_CreateOrUpdate", "IsLongRunning": true, "PagingMetadata": null, - "Description": "Creates or updates policy configuration for the Product." + "Description": "Creates a new Diagnostic for an API or updates an existing one." } ], "UpdateOperations": [ { "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies/{policyId}", - "Method": "PUT", - "OperationID": "ProductPolicy_CreateOrUpdate", - "IsLongRunning": true, + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}", + "Method": "PATCH", + "OperationID": "ApiDiagnostic_Update", + "IsLongRunning": false, "PagingMetadata": null, - "Description": "Creates or updates policy configuration for the Product." + "Description": "Updates the details of the Diagnostic for an API specified by its identifier." } ], "DeleteOperations": [ { "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies/{policyId}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}", "Method": "DELETE", - "OperationID": "ProductPolicy_Delete", + "OperationID": "ApiDiagnostic_Delete", "IsLongRunning": true, "PagingMetadata": null, - "Description": "Deletes the policy configuration at the Product." + "Description": "Deletes the specified Diagnostic from an API." } ], "ListOperations": [ { "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics", "Method": "GET", - "OperationID": "ProductPolicy_ListByProduct", + "OperationID": "ApiDiagnostic_ListByService", "IsLongRunning": false, "PagingMetadata": { - "Method": "ListByProduct", - "NextPageMethod": null, + "Method": "ListByService", "ItemName": "value", - "NextLinkName": null + "NextLinkName": "nextLink" }, - "Description": "Get the policy configuration at the Product level." + "Description": "Lists all diagnostics of an API." } ], "OperationsFromResourceGroupExtension": [], "OperationsFromSubscriptionExtension": [], "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "GetEntityTag", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies/{policyId}", - "Method": "HEAD", - "OperationID": "ProductPolicy_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get the ETag of the policy configuration at the Product level." - } + "OtherOperations": [], + "Parents": [ + "ApiContract" ], - "Parents": ["ApiManagementProduct"], - "SwaggerModelName": "PolicyContract", - "ResourceType": "Microsoft.ApiManagement/service/products/policies", - "ResourceKey": "policyId", - "ResourceKeySegment": "policies", + "SwaggerModelName": "DiagnosticContract", + "ResourceType": "Microsoft.ApiManagement/service/apis/diagnostics", + "ResourceKey": "diagnosticId", + "ResourceKeySegment": "diagnostics", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + }, + "IssueContractFixMe": { + "Name": "IssueContractFixMe", + "GetOperations": [], + "CreateOperations": [], + "UpdateOperations": [], + "DeleteOperations": [], + "ListOperations": [], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [], + "SwaggerModelName": "", + "ResourceType": "", + "ResourceKey": "", + "ResourceKeySegment": "", "IsTrackedResource": false, "IsTenantResource": false, "IsSubscriptionResource": false, @@ -665,88 +696,79 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "ApiOperationTag": { - "Name": "ApiOperationTag", + "IssueContract": { + "Name": "IssueContract", "GetOperations": [ { "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", "Method": "GET", - "OperationID": "Tag_GetByOperation", + "OperationID": "ApiIssue_Get", "IsLongRunning": false, "PagingMetadata": null, - "Description": "Get tag associated with the Operation." + "Description": "Gets the details of the Issue for an API specified by its identifier." } ], "CreateOperations": [ { "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", "Method": "PUT", - "OperationID": "Tag_AssignToOperation", + "OperationID": "ApiIssue_CreateOrUpdate", "IsLongRunning": true, "PagingMetadata": null, - "Description": "Assign tag to the Operation." + "Description": "Creates a new Issue for an API or updates an existing one." } ], "UpdateOperations": [ { "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}", - "Method": "PUT", - "OperationID": "Tag_AssignToOperation", - "IsLongRunning": true, + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", + "Method": "PATCH", + "OperationID": "ApiIssue_Update", + "IsLongRunning": false, "PagingMetadata": null, - "Description": "Assign tag to the Operation." + "Description": "Updates an existing issue for an API." } ], "DeleteOperations": [ { "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", "Method": "DELETE", - "OperationID": "Tag_DetachFromOperation", + "OperationID": "ApiIssue_Delete", "IsLongRunning": true, "PagingMetadata": null, - "Description": "Detach the tag from the Operation." + "Description": "Deletes the specified Issue from an API." } ], "ListOperations": [ { "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues", "Method": "GET", - "OperationID": "Tag_ListByOperation", + "OperationID": "ApiIssue_ListByService", "IsLongRunning": false, "PagingMetadata": { - "Method": "ListByOperation", - "NextPageMethod": "ListByOperationNextPage", + "Method": "ListByService", "ItemName": "value", "NextLinkName": "nextLink" }, - "Description": "Lists all Tags associated with the Operation." + "Description": "Lists all issues associated with the specified API." } ], "OperationsFromResourceGroupExtension": [], "OperationsFromSubscriptionExtension": [], "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "GetEntityStateByOperation", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}", - "Method": "HEAD", - "OperationID": "Tag_GetEntityStateByOperation", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state version of the tag specified by its identifier." - } + "OtherOperations": [], + "Parents": [ + "ApiContract" ], - "Parents": ["ApiOperation"], - "SwaggerModelName": "TagContract", - "ResourceType": "Microsoft.ApiManagement/service/apis/operations/tags", - "ResourceKey": "tagId", - "ResourceKeySegment": "tags", + "SwaggerModelName": "IssueContract", + "ResourceType": "Microsoft.ApiManagement/service/apis/issues", + "ResourceKey": "issueId", + "ResourceKeySegment": "issues", "IsTrackedResource": false, "IsTenantResource": false, "IsSubscriptionResource": false, @@ -754,88 +776,79 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "ApiTag": { - "Name": "ApiTag", + "IssueCommentContract": { + "Name": "IssueCommentContract", "GetOperations": [ { "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags/{tagId}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}", "Method": "GET", - "OperationID": "Tag_GetByApi", + "OperationID": "ApiIssueComment_Get", "IsLongRunning": false, "PagingMetadata": null, - "Description": "Get tag associated with the API." + "Description": "Gets the details of the issue Comment for an API specified by its identifier." } ], "CreateOperations": [ { "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags/{tagId}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}", "Method": "PUT", - "OperationID": "Tag_AssignToApi", + "OperationID": "ApiIssueComment_CreateOrUpdate", "IsLongRunning": true, "PagingMetadata": null, - "Description": "Assign tag to the Api." + "Description": "Creates a new Comment for the Issue in an API or updates an existing one." } ], "UpdateOperations": [ { "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags/{tagId}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}", "Method": "PUT", - "OperationID": "Tag_AssignToApi", + "OperationID": "ApiIssueComment_CreateOrUpdate", "IsLongRunning": true, "PagingMetadata": null, - "Description": "Assign tag to the Api." + "Description": "Creates a new Comment for the Issue in an API or updates an existing one." } ], "DeleteOperations": [ { "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags/{tagId}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}", "Method": "DELETE", - "OperationID": "Tag_DetachFromApi", + "OperationID": "ApiIssueComment_Delete", "IsLongRunning": true, "PagingMetadata": null, - "Description": "Detach the tag from the Api." + "Description": "Deletes the specified comment from an Issue." } ], "ListOperations": [ { "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments", "Method": "GET", - "OperationID": "Tag_ListByApi", + "OperationID": "ApiIssueComment_ListByService", "IsLongRunning": false, "PagingMetadata": { - "Method": "ListByApi", - "NextPageMethod": "ListByApiNextPage", + "Method": "ListByService", "ItemName": "value", "NextLinkName": "nextLink" }, - "Description": "Lists all Tags associated with the API." + "Description": "Lists all comments for the Issue associated with the specified API." } ], "OperationsFromResourceGroupExtension": [], "OperationsFromSubscriptionExtension": [], "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "GetEntityStateByApi", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags/{tagId}", - "Method": "HEAD", - "OperationID": "Tag_GetEntityStateByApi", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state version of the tag specified by its identifier." - } + "OtherOperations": [], + "Parents": [ + "IssueContract" ], - "Parents": ["Api"], - "SwaggerModelName": "TagContract", - "ResourceType": "Microsoft.ApiManagement/service/apis/tags", - "ResourceKey": "tagId", - "ResourceKeySegment": "tags", + "SwaggerModelName": "IssueCommentContract", + "ResourceType": "Microsoft.ApiManagement/service/apis/issues/comments", + "ResourceKey": "commentId", + "ResourceKeySegment": "comments", "IsTrackedResource": false, "IsTenantResource": false, "IsSubscriptionResource": false, @@ -843,88 +856,79 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "ApiManagementProductTag": { - "Name": "ApiManagementProductTag", + "IssueAttachmentContract": { + "Name": "IssueAttachmentContract", "GetOperations": [ { "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}", "Method": "GET", - "OperationID": "Tag_GetByProduct", + "OperationID": "ApiIssueAttachment_Get", "IsLongRunning": false, "PagingMetadata": null, - "Description": "Get tag associated with the Product." + "Description": "Gets the details of the issue Attachment for an API specified by its identifier." } ], "CreateOperations": [ { "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}", "Method": "PUT", - "OperationID": "Tag_AssignToProduct", + "OperationID": "ApiIssueAttachment_CreateOrUpdate", "IsLongRunning": true, "PagingMetadata": null, - "Description": "Assign tag to the Product." + "Description": "Creates a new Attachment for the Issue in an API or updates an existing one." } ], "UpdateOperations": [ { "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}", "Method": "PUT", - "OperationID": "Tag_AssignToProduct", + "OperationID": "ApiIssueAttachment_CreateOrUpdate", "IsLongRunning": true, "PagingMetadata": null, - "Description": "Assign tag to the Product." + "Description": "Creates a new Attachment for the Issue in an API or updates an existing one." } ], "DeleteOperations": [ { "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}", "Method": "DELETE", - "OperationID": "Tag_DetachFromProduct", + "OperationID": "ApiIssueAttachment_Delete", "IsLongRunning": true, "PagingMetadata": null, - "Description": "Detach the tag from the Product." + "Description": "Deletes the specified comment from an Issue." } ], "ListOperations": [ { "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments", "Method": "GET", - "OperationID": "Tag_ListByProduct", + "OperationID": "ApiIssueAttachment_ListByService", "IsLongRunning": false, "PagingMetadata": { - "Method": "ListByProduct", - "NextPageMethod": "ListByProductNextPage", + "Method": "ListByService", "ItemName": "value", "NextLinkName": "nextLink" }, - "Description": "Lists all Tags associated with the Product." + "Description": "Lists all attachments for the Issue associated with the specified API." } ], "OperationsFromResourceGroupExtension": [], "OperationsFromSubscriptionExtension": [], "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "GetEntityStateByProduct", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}", - "Method": "HEAD", - "OperationID": "Tag_GetEntityStateByProduct", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state version of the tag specified by its identifier." - } + "OtherOperations": [], + "Parents": [ + "IssueContract" ], - "Parents": ["ApiManagementProduct"], - "SwaggerModelName": "TagContract", - "ResourceType": "Microsoft.ApiManagement/service/products/tags", - "ResourceKey": "tagId", - "ResourceKeySegment": "tags", + "SwaggerModelName": "IssueAttachmentContract", + "ResourceType": "Microsoft.ApiManagement/service/apis/issues/attachments", + "ResourceKey": "attachmentId", + "ResourceKeySegment": "attachments", "IsTrackedResource": false, "IsTenantResource": false, "IsSubscriptionResource": false, @@ -932,88 +936,79 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "ApiManagementTag": { - "Name": "ApiManagementTag", + "TagDescriptionContract": { + "Name": "TagDescriptionContract", "GetOperations": [ { "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagDescriptionId}", "Method": "GET", - "OperationID": "Tag_Get", + "OperationID": "ApiTagDescription_Get", "IsLongRunning": false, "PagingMetadata": null, - "Description": "Gets the details of the tag specified by its identifier." + "Description": "Get Tag description in scope of API" } ], "CreateOperations": [ { "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagDescriptionId}", "Method": "PUT", - "OperationID": "Tag_CreateOrUpdate", + "OperationID": "ApiTagDescription_CreateOrUpdate", "IsLongRunning": true, "PagingMetadata": null, - "Description": "Creates a tag." + "Description": "Create/Update tag description in scope of the Api." } ], "UpdateOperations": [ { "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}", - "Method": "PATCH", - "OperationID": "Tag_Update", - "IsLongRunning": false, + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagDescriptionId}", + "Method": "PUT", + "OperationID": "ApiTagDescription_CreateOrUpdate", + "IsLongRunning": true, "PagingMetadata": null, - "Description": "Updates the details of the tag specified by its identifier." + "Description": "Create/Update tag description in scope of the Api." } ], "DeleteOperations": [ { "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagDescriptionId}", "Method": "DELETE", - "OperationID": "Tag_Delete", + "OperationID": "ApiTagDescription_Delete", "IsLongRunning": true, "PagingMetadata": null, - "Description": "Deletes specific tag of the API Management service instance." + "Description": "Delete tag description for the Api." } ], "ListOperations": [ { "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions", "Method": "GET", - "OperationID": "Tag_ListByService", + "OperationID": "ApiTagDescription_ListByService", "IsLongRunning": false, "PagingMetadata": { "Method": "ListByService", - "NextPageMethod": "ListByServiceNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, - "Description": "Lists a collection of tags defined within a service instance." + "Description": "Lists all Tags descriptions in scope of API. Model similar to swagger - tagDescription is defined on API level but tag may be assigned to the Operations" } ], "OperationsFromResourceGroupExtension": [], "OperationsFromSubscriptionExtension": [], "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "GetEntityState", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}", - "Method": "HEAD", - "OperationID": "Tag_GetEntityState", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state version of the tag specified by its identifier." - } + "OtherOperations": [], + "Parents": [ + "ApiContract" ], - "Parents": ["ApiManagementService"], - "SwaggerModelName": "TagContract", - "ResourceType": "Microsoft.ApiManagement/service/tags", - "ResourceKey": "tagId", - "ResourceKeySegment": "tags", + "SwaggerModelName": "TagDescriptionContract", + "ResourceType": "Microsoft.ApiManagement/service/apis/tagDescriptions", + "ResourceKey": "tagDescriptionId", + "ResourceKeySegment": "tagDescriptions", "IsTrackedResource": false, "IsTenantResource": false, "IsSubscriptionResource": false, @@ -1021,88 +1016,79 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "ApiSchema": { - "Name": "ApiSchema", + "ApiVersionSetContract": { + "Name": "ApiVersionSetContract", "GetOperations": [ { "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}", "Method": "GET", - "OperationID": "ApiSchema_Get", + "OperationID": "ApiVersionSet_Get", "IsLongRunning": false, "PagingMetadata": null, - "Description": "Get the schema configuration at the API level." + "Description": "Gets the details of the Api Version Set specified by its identifier." } ], "CreateOperations": [ { "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}", "Method": "PUT", - "OperationID": "ApiSchema_CreateOrUpdate", + "OperationID": "ApiVersionSet_CreateOrUpdate", "IsLongRunning": true, "PagingMetadata": null, - "Description": "Creates or updates schema configuration for the API." + "Description": "Creates or Updates a Api Version Set." } ], "UpdateOperations": [ { "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}", - "Method": "PUT", - "OperationID": "ApiSchema_CreateOrUpdate", - "IsLongRunning": true, + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}", + "Method": "PATCH", + "OperationID": "ApiVersionSet_Update", + "IsLongRunning": false, "PagingMetadata": null, - "Description": "Creates or updates schema configuration for the API." + "Description": "Updates the details of the Api VersionSet specified by its identifier." } ], "DeleteOperations": [ { "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}", "Method": "DELETE", - "OperationID": "ApiSchema_Delete", + "OperationID": "ApiVersionSet_Delete", "IsLongRunning": true, "PagingMetadata": null, - "Description": "Deletes the schema configuration at the Api." + "Description": "Deletes specific Api Version Set." } ], "ListOperations": [ { "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets", "Method": "GET", - "OperationID": "ApiSchema_ListByApi", + "OperationID": "ApiVersionSet_ListByService", "IsLongRunning": false, "PagingMetadata": { - "Method": "ListByApi", - "NextPageMethod": "ListByApiNextPage", + "Method": "ListByService", "ItemName": "value", "NextLinkName": "nextLink" }, - "Description": "Get the schema configuration at the API level." + "Description": "Lists a collection of API Version Sets in the specified service instance." } ], "OperationsFromResourceGroupExtension": [], "OperationsFromSubscriptionExtension": [], "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "GetEntityTag", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}", - "Method": "HEAD", - "OperationID": "ApiSchema_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state (Etag) version of the schema specified by its identifier." - } + "OtherOperations": [], + "Parents": [ + "ApiManagementServiceResource" ], - "Parents": ["Api"], - "SwaggerModelName": "SchemaContract", - "ResourceType": "Microsoft.ApiManagement/service/apis/schemas", - "ResourceKey": "schemaId", - "ResourceKeySegment": "schemas", + "SwaggerModelName": "ApiVersionSetContract", + "ResourceType": "Microsoft.ApiManagement/service/apiVersionSets", + "ResourceKey": "versionSetId", + "ResourceKeySegment": "apiVersionSets", "IsTrackedResource": false, "IsTenantResource": false, "IsSubscriptionResource": false, @@ -1110,66 +1096,65 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "ApiDiagnostic": { - "Name": "ApiDiagnostic", + "AuthorizationServerContract": { + "Name": "AuthorizationServerContract", "GetOperations": [ { "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}", "Method": "GET", - "OperationID": "ApiDiagnostic_Get", + "OperationID": "AuthorizationServer_Get", "IsLongRunning": false, "PagingMetadata": null, - "Description": "Gets the details of the Diagnostic for an API specified by its identifier." + "Description": "Gets the details of the authorization server specified by its identifier." } ], "CreateOperations": [ { "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}", "Method": "PUT", - "OperationID": "ApiDiagnostic_CreateOrUpdate", + "OperationID": "AuthorizationServer_CreateOrUpdate", "IsLongRunning": true, "PagingMetadata": null, - "Description": "Creates a new Diagnostic for an API or updates an existing one." + "Description": "Creates new authorization server or updates an existing authorization server." } ], "UpdateOperations": [ { "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}", "Method": "PATCH", - "OperationID": "ApiDiagnostic_Update", + "OperationID": "AuthorizationServer_Update", "IsLongRunning": false, "PagingMetadata": null, - "Description": "Updates the details of the Diagnostic for an API specified by its identifier." + "Description": "Updates the details of the authorization server specified by its identifier." } ], "DeleteOperations": [ { "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}", "Method": "DELETE", - "OperationID": "ApiDiagnostic_Delete", + "OperationID": "AuthorizationServer_Delete", "IsLongRunning": true, "PagingMetadata": null, - "Description": "Deletes the specified Diagnostic from an API." + "Description": "Deletes specific authorization server instance." } ], "ListOperations": [ { "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers", "Method": "GET", - "OperationID": "ApiDiagnostic_ListByService", + "OperationID": "AuthorizationServer_ListByService", "IsLongRunning": false, "PagingMetadata": { "Method": "ListByService", - "NextPageMethod": "ListByServiceNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, - "Description": "Lists all diagnostics of an API." + "Description": "Lists a collection of authorization servers defined within a service instance." } ], "OperationsFromResourceGroupExtension": [], @@ -1178,20 +1163,22 @@ "OperationsFromTenantExtension": [], "OtherOperations": [ { - "Name": "GetEntityTag", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}", - "Method": "HEAD", - "OperationID": "ApiDiagnostic_GetEntityTag", + "Name": "ListSecrets", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}/listSecrets", + "Method": "POST", + "OperationID": "AuthorizationServer_ListSecrets", "IsLongRunning": false, "PagingMetadata": null, - "Description": "Gets the entity state (Etag) version of the Diagnostic for an API specified by its identifier." + "Description": "Gets the client secret details of the authorization server." } ], - "Parents": ["Api"], - "SwaggerModelName": "DiagnosticContract", - "ResourceType": "Microsoft.ApiManagement/service/apis/diagnostics", - "ResourceKey": "diagnosticId", - "ResourceKeySegment": "diagnostics", + "Parents": [ + "ApiManagementServiceResource" + ], + "SwaggerModelName": "AuthorizationServerContract", + "ResourceType": "Microsoft.ApiManagement/service/authorizationServers", + "ResourceKey": "authsid", + "ResourceKeySegment": "authorizationServers", "IsTrackedResource": false, "IsTenantResource": false, "IsSubscriptionResource": false, @@ -1199,66 +1186,65 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "ApiManagementDiagnostic": { - "Name": "ApiManagementDiagnostic", + "BackendContract": { + "Name": "BackendContract", "GetOperations": [ { "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}", "Method": "GET", - "OperationID": "Diagnostic_Get", + "OperationID": "Backend_Get", "IsLongRunning": false, "PagingMetadata": null, - "Description": "Gets the details of the Diagnostic specified by its identifier." + "Description": "Gets the details of the backend specified by its identifier." } ], "CreateOperations": [ { "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}", "Method": "PUT", - "OperationID": "Diagnostic_CreateOrUpdate", + "OperationID": "Backend_CreateOrUpdate", "IsLongRunning": true, "PagingMetadata": null, - "Description": "Creates a new Diagnostic or updates an existing one." + "Description": "Creates or Updates a backend." } ], "UpdateOperations": [ { "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}", "Method": "PATCH", - "OperationID": "Diagnostic_Update", + "OperationID": "Backend_Update", "IsLongRunning": false, "PagingMetadata": null, - "Description": "Updates the details of the Diagnostic specified by its identifier." + "Description": "Updates an existing backend." } ], "DeleteOperations": [ { "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}", "Method": "DELETE", - "OperationID": "Diagnostic_Delete", + "OperationID": "Backend_Delete", "IsLongRunning": true, "PagingMetadata": null, - "Description": "Deletes the specified Diagnostic." + "Description": "Deletes the specified backend." } ], "ListOperations": [ { "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends", "Method": "GET", - "OperationID": "Diagnostic_ListByService", + "OperationID": "Backend_ListByService", "IsLongRunning": false, "PagingMetadata": { "Method": "ListByService", - "NextPageMethod": "ListByServiceNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, - "Description": "Lists all diagnostics of the API Management service instance." + "Description": "Lists a collection of backends in the specified service instance." } ], "OperationsFromResourceGroupExtension": [], @@ -1267,20 +1253,22 @@ "OperationsFromTenantExtension": [], "OtherOperations": [ { - "Name": "GetEntityTag", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}", - "Method": "HEAD", - "OperationID": "Diagnostic_GetEntityTag", + "Name": "Reconnect", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}/reconnect", + "Method": "POST", + "OperationID": "Backend_Reconnect", "IsLongRunning": false, "PagingMetadata": null, - "Description": "Gets the entity state (Etag) version of the Diagnostic specified by its identifier." + "Description": "Notifies the APIM proxy to create a new connection to the backend after the specified timeout. If no timeout was specified, timeout of 2 minutes is used." } ], - "Parents": ["ApiManagementService"], - "SwaggerModelName": "DiagnosticContract", - "ResourceType": "Microsoft.ApiManagement/service/diagnostics", - "ResourceKey": "diagnosticId", - "ResourceKeySegment": "diagnostics", + "Parents": [ + "ApiManagementServiceResource" + ], + "SwaggerModelName": "BackendContract", + "ResourceType": "Microsoft.ApiManagement/service/backends", + "ResourceKey": "backendId", + "ResourceKeySegment": "backends", "IsTrackedResource": false, "IsTenantResource": false, "IsSubscriptionResource": false, @@ -1288,591 +1276,79 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "ApiIssue": { - "Name": "ApiIssue", + "CacheContract": { + "Name": "CacheContract", "GetOperations": [ { "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}", "Method": "GET", - "OperationID": "ApiIssue_Get", + "OperationID": "Cache_Get", "IsLongRunning": false, "PagingMetadata": null, - "Description": "Gets the details of the Issue for an API specified by its identifier." + "Description": "Gets the details of the Cache specified by its identifier." } ], "CreateOperations": [ { "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}", "Method": "PUT", - "OperationID": "ApiIssue_CreateOrUpdate", + "OperationID": "Cache_CreateOrUpdate", "IsLongRunning": true, "PagingMetadata": null, - "Description": "Creates a new Issue for an API or updates an existing one." + "Description": "Creates or updates an External Cache to be used in Api Management instance." } ], "UpdateOperations": [ { "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}", "Method": "PATCH", - "OperationID": "ApiIssue_Update", + "OperationID": "Cache_Update", "IsLongRunning": false, "PagingMetadata": null, - "Description": "Updates an existing issue for an API." + "Description": "Updates the details of the cache specified by its identifier." } ], "DeleteOperations": [ { "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}", "Method": "DELETE", - "OperationID": "ApiIssue_Delete", + "OperationID": "Cache_Delete", "IsLongRunning": true, "PagingMetadata": null, - "Description": "Deletes the specified Issue from an API." + "Description": "Deletes specific Cache." } ], "ListOperations": [ { "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches", "Method": "GET", - "OperationID": "ApiIssue_ListByService", + "OperationID": "Cache_ListByService", "IsLongRunning": false, "PagingMetadata": { "Method": "ListByService", - "NextPageMethod": "ListByServiceNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, - "Description": "Lists all issues associated with the specified API." + "Description": "Lists a collection of all external Caches in the specified service instance." } ], "OperationsFromResourceGroupExtension": [], "OperationsFromSubscriptionExtension": [], "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "GetEntityTag", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", - "Method": "HEAD", - "OperationID": "ApiIssue_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state (Etag) version of the Issue for an API specified by its identifier." - } - ], - "Parents": ["Api"], - "SwaggerModelName": "IssueContract", - "ResourceType": "Microsoft.ApiManagement/service/apis/issues", - "ResourceKey": "issueId", - "ResourceKeySegment": "issues", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "ApiManagementIssue": { - "Name": "ApiManagementIssue", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/issues/{issueId}", - "Method": "GET", - "OperationID": "Issue_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets API Management issue details" - } - ], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/issues", - "Method": "GET", - "OperationID": "Issue_ListByService", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByService", - "NextPageMethod": "ListByServiceNextPage", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists a collection of issues in the specified service instance." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": ["ApiManagementService"], - "SwaggerModelName": "IssueContract", - "ResourceType": "Microsoft.ApiManagement/service/issues", - "ResourceKey": "issueId", - "ResourceKeySegment": "issues", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "ApiIssueComment": { - "Name": "ApiIssueComment", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}", - "Method": "GET", - "OperationID": "ApiIssueComment_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the details of the issue Comment for an API specified by its identifier." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}", - "Method": "PUT", - "OperationID": "ApiIssueComment_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates a new Comment for the Issue in an API or updates an existing one." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}", - "Method": "PUT", - "OperationID": "ApiIssueComment_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates a new Comment for the Issue in an API or updates an existing one." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}", - "Method": "DELETE", - "OperationID": "ApiIssueComment_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes the specified comment from an Issue." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments", - "Method": "GET", - "OperationID": "ApiIssueComment_ListByService", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByService", - "NextPageMethod": "ListByServiceNextPage", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists all comments for the Issue associated with the specified API." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "GetEntityTag", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}", - "Method": "HEAD", - "OperationID": "ApiIssueComment_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state (Etag) version of the issue Comment for an API specified by its identifier." - } - ], - "Parents": ["ApiIssue"], - "SwaggerModelName": "IssueCommentContract", - "ResourceType": "Microsoft.ApiManagement/service/apis/issues/comments", - "ResourceKey": "commentId", - "ResourceKeySegment": "comments", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "ApiIssueAttachment": { - "Name": "ApiIssueAttachment", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}", - "Method": "GET", - "OperationID": "ApiIssueAttachment_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the details of the issue Attachment for an API specified by its identifier." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}", - "Method": "PUT", - "OperationID": "ApiIssueAttachment_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates a new Attachment for the Issue in an API or updates an existing one." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}", - "Method": "PUT", - "OperationID": "ApiIssueAttachment_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates a new Attachment for the Issue in an API or updates an existing one." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}", - "Method": "DELETE", - "OperationID": "ApiIssueAttachment_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes the specified comment from an Issue." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments", - "Method": "GET", - "OperationID": "ApiIssueAttachment_ListByService", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByService", - "NextPageMethod": "ListByServiceNextPage", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists all attachments for the Issue associated with the specified API." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "GetEntityTag", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}", - "Method": "HEAD", - "OperationID": "ApiIssueAttachment_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state (Etag) version of the issue Attachment for an API specified by its identifier." - } - ], - "Parents": ["ApiIssue"], - "SwaggerModelName": "IssueAttachmentContract", - "ResourceType": "Microsoft.ApiManagement/service/apis/issues/attachments", - "ResourceKey": "attachmentId", - "ResourceKeySegment": "attachments", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "ApiTagDescription": { - "Name": "ApiTagDescription", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagDescriptionId}", - "Method": "GET", - "OperationID": "ApiTagDescription_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get Tag description in scope of API" - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagDescriptionId}", - "Method": "PUT", - "OperationID": "ApiTagDescription_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create/Update tag description in scope of the Api." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagDescriptionId}", - "Method": "PUT", - "OperationID": "ApiTagDescription_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create/Update tag description in scope of the Api." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagDescriptionId}", - "Method": "DELETE", - "OperationID": "ApiTagDescription_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete tag description for the Api." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions", - "Method": "GET", - "OperationID": "ApiTagDescription_ListByService", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByService", - "NextPageMethod": "ListByServiceNextPage", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists all Tags descriptions in scope of API. Model similar to swagger - tagDescription is defined on API level but tag may be assigned to the Operations" - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "GetEntityTag", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagDescriptionId}", - "Method": "HEAD", - "OperationID": "ApiTagDescription_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state version of the tag specified by its identifier." - } - ], - "Parents": ["Api"], - "SwaggerModelName": "TagDescriptionContract", - "ResourceType": "Microsoft.ApiManagement/service/apis/tagDescriptions", - "ResourceKey": "tagDescriptionId", - "ResourceKeySegment": "tagDescriptions", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "ApiVersionSet": { - "Name": "ApiVersionSet", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}", - "Method": "GET", - "OperationID": "ApiVersionSet_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the details of the Api Version Set specified by its identifier." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}", - "Method": "PUT", - "OperationID": "ApiVersionSet_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates or Updates a Api Version Set." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}", - "Method": "PATCH", - "OperationID": "ApiVersionSet_Update", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Updates the details of the Api VersionSet specified by its identifier." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}", - "Method": "DELETE", - "OperationID": "ApiVersionSet_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes specific Api Version Set." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets", - "Method": "GET", - "OperationID": "ApiVersionSet_ListByService", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByService", - "NextPageMethod": "ListByServiceNextPage", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists a collection of API Version Sets in the specified service instance." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "GetEntityTag", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}", - "Method": "HEAD", - "OperationID": "ApiVersionSet_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state (Etag) version of the Api Version Set specified by its identifier." - } - ], - "Parents": ["ApiManagementService"], - "SwaggerModelName": "ApiVersionSetContract", - "ResourceType": "Microsoft.ApiManagement/service/apiVersionSets", - "ResourceKey": "versionSetId", - "ResourceKeySegment": "apiVersionSets", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "ApiManagementAuthorizationServer": { - "Name": "ApiManagementAuthorizationServer", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}", - "Method": "GET", - "OperationID": "AuthorizationServer_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the details of the authorization server specified by its identifier." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}", - "Method": "PUT", - "OperationID": "AuthorizationServer_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates new authorization server or updates an existing authorization server." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}", - "Method": "PATCH", - "OperationID": "AuthorizationServer_Update", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Updates the details of the authorization server specified by its identifier." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}", - "Method": "DELETE", - "OperationID": "AuthorizationServer_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Deletes specific authorization server instance." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers", - "Method": "GET", - "OperationID": "AuthorizationServer_ListByService", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByService", - "NextPageMethod": "ListByServiceNextPage", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists a collection of authorization servers defined within a service instance." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "GetSecrets", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}/listSecrets", - "Method": "POST", - "OperationID": "AuthorizationServer_ListSecrets", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the client secret details of the authorization server." - }, - { - "Name": "GetEntityTag", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}", - "Method": "HEAD", - "OperationID": "AuthorizationServer_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state (Etag) version of the authorizationServer specified by its identifier." - } + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [ + "ApiManagementServiceResource" ], - "Parents": ["ApiManagementService"], - "SwaggerModelName": "AuthorizationServerContract", - "ResourceType": "Microsoft.ApiManagement/service/authorizationServers", - "ResourceKey": "authsid", - "ResourceKeySegment": "authorizationServers", + "SwaggerModelName": "CacheContract", + "ResourceType": "Microsoft.ApiManagement/service/caches", + "ResourceKey": "cacheId", + "ResourceKeySegment": "caches", "IsTrackedResource": false, "IsTenantResource": false, "IsSubscriptionResource": false, @@ -1880,66 +1356,65 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "ApiManagementBackend": { - "Name": "ApiManagementBackend", + "CertificateContract": { + "Name": "CertificateContract", "GetOperations": [ { "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}", "Method": "GET", - "OperationID": "Backend_Get", + "OperationID": "Certificate_Get", "IsLongRunning": false, "PagingMetadata": null, - "Description": "Gets the details of the backend specified by its identifier." + "Description": "Gets the details of the certificate specified by its identifier." } ], "CreateOperations": [ { "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}", "Method": "PUT", - "OperationID": "Backend_CreateOrUpdate", + "OperationID": "Certificate_CreateOrUpdate", "IsLongRunning": true, "PagingMetadata": null, - "Description": "Creates or Updates a backend." + "Description": "Creates or updates the certificate being used for authentication with the backend." } ], "UpdateOperations": [ { "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}", - "Method": "PATCH", - "OperationID": "Backend_Update", - "IsLongRunning": false, + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}", + "Method": "PUT", + "OperationID": "Certificate_CreateOrUpdate", + "IsLongRunning": true, "PagingMetadata": null, - "Description": "Updates an existing backend." + "Description": "Creates or updates the certificate being used for authentication with the backend." } ], "DeleteOperations": [ { "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}", "Method": "DELETE", - "OperationID": "Backend_Delete", + "OperationID": "Certificate_Delete", "IsLongRunning": true, "PagingMetadata": null, - "Description": "Deletes the specified backend." + "Description": "Deletes specific certificate." } ], "ListOperations": [ { "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates", "Method": "GET", - "OperationID": "Backend_ListByService", + "OperationID": "Certificate_ListByService", "IsLongRunning": false, "PagingMetadata": { "Method": "ListByService", - "NextPageMethod": "ListByServiceNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, - "Description": "Lists a collection of backends in the specified service instance." + "Description": "Lists a collection of all certificates in the specified service instance." } ], "OperationsFromResourceGroupExtension": [], @@ -1948,29 +1423,22 @@ "OperationsFromTenantExtension": [], "OtherOperations": [ { - "Name": "Reconnect", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}/reconnect", + "Name": "RefreshSecret", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}/refreshSecret", "Method": "POST", - "OperationID": "Backend_Reconnect", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Notifies the APIM proxy to create a new connection to the backend after the specified timeout. If no timeout was specified, timeout of 2 minutes is used." - }, - { - "Name": "GetEntityTag", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}", - "Method": "HEAD", - "OperationID": "Backend_GetEntityTag", + "OperationID": "Certificate_RefreshSecret", "IsLongRunning": false, "PagingMetadata": null, - "Description": "Gets the entity state (Etag) version of the backend specified by its identifier." + "Description": "From KeyVault, Refresh the certificate being used for authentication with the backend." } ], - "Parents": ["ApiManagementService"], - "SwaggerModelName": "BackendContract", - "ResourceType": "Microsoft.ApiManagement/service/backends", - "ResourceKey": "backendId", - "ResourceKeySegment": "backends", + "Parents": [ + "ApiManagementServiceResource" + ], + "SwaggerModelName": "CertificateContract", + "ResourceType": "Microsoft.ApiManagement/service/certificates", + "ResourceKey": "certificateId", + "ResourceKeySegment": "certificates", "IsTrackedResource": false, "IsTenantResource": false, "IsSubscriptionResource": false, @@ -1978,88 +1446,79 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "ApiManagementCache": { - "Name": "ApiManagementCache", + "ContentTypeContract": { + "Name": "ContentTypeContract", "GetOperations": [ { "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}", "Method": "GET", - "OperationID": "Cache_Get", + "OperationID": "ContentType_Get", "IsLongRunning": false, "PagingMetadata": null, - "Description": "Gets the details of the Cache specified by its identifier." + "Description": "Gets the details of the developer portal's content type. Content types describe content items' properties, validation rules, and constraints." } ], "CreateOperations": [ { "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}", "Method": "PUT", - "OperationID": "Cache_CreateOrUpdate", + "OperationID": "ContentType_CreateOrUpdate", "IsLongRunning": true, "PagingMetadata": null, - "Description": "Creates or updates an External Cache to be used in Api Management instance." + "Description": "Creates or updates the developer portal's content type. Content types describe content items' properties, validation rules, and constraints. Custom content types' identifiers need to start with the `c-` prefix. Built-in content types can't be modified." } ], "UpdateOperations": [ { "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}", - "Method": "PATCH", - "OperationID": "Cache_Update", - "IsLongRunning": false, + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}", + "Method": "PUT", + "OperationID": "ContentType_CreateOrUpdate", + "IsLongRunning": true, "PagingMetadata": null, - "Description": "Updates the details of the cache specified by its identifier." + "Description": "Creates or updates the developer portal's content type. Content types describe content items' properties, validation rules, and constraints. Custom content types' identifiers need to start with the `c-` prefix. Built-in content types can't be modified." } ], "DeleteOperations": [ { "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}", "Method": "DELETE", - "OperationID": "Cache_Delete", + "OperationID": "ContentType_Delete", "IsLongRunning": true, "PagingMetadata": null, - "Description": "Deletes specific Cache." + "Description": "Removes the specified developer portal's content type. Content types describe content items' properties, validation rules, and constraints. Built-in content types (with identifiers starting with the `c-` prefix) can't be removed." } ], "ListOperations": [ { "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes", "Method": "GET", - "OperationID": "Cache_ListByService", + "OperationID": "ContentType_ListByService", "IsLongRunning": false, "PagingMetadata": { "Method": "ListByService", - "NextPageMethod": "ListByServiceNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, - "Description": "Lists a collection of all external Caches in the specified service instance." + "Description": "Lists the developer portal's content types. Content types describe content items' properties, validation rules, and constraints." } ], "OperationsFromResourceGroupExtension": [], "OperationsFromSubscriptionExtension": [], "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "GetEntityTag", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}", - "Method": "HEAD", - "OperationID": "Cache_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state (Etag) version of the Cache specified by its identifier." - } + "OtherOperations": [], + "Parents": [ + "ApiManagementServiceResource" ], - "Parents": ["ApiManagementService"], - "SwaggerModelName": "CacheContract", - "ResourceType": "Microsoft.ApiManagement/service/caches", - "ResourceKey": "cacheId", - "ResourceKeySegment": "caches", + "SwaggerModelName": "ContentTypeContract", + "ResourceType": "Microsoft.ApiManagement/service/contentTypes", + "ResourceKey": "contentTypeId", + "ResourceKeySegment": "contentTypes", "IsTrackedResource": false, "IsTenantResource": false, "IsSubscriptionResource": false, @@ -2067,97 +1526,79 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "ApiManagementCertificate": { - "Name": "ApiManagementCertificate", + "ContentItemContract": { + "Name": "ContentItemContract", "GetOperations": [ { "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems/{contentItemId}", "Method": "GET", - "OperationID": "Certificate_Get", + "OperationID": "ContentItem_Get", "IsLongRunning": false, "PagingMetadata": null, - "Description": "Gets the details of the certificate specified by its identifier." + "Description": "Returns the developer portal's content item specified by its identifier." } ], "CreateOperations": [ { "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems/{contentItemId}", "Method": "PUT", - "OperationID": "Certificate_CreateOrUpdate", + "OperationID": "ContentItem_CreateOrUpdate", "IsLongRunning": true, "PagingMetadata": null, - "Description": "Creates or updates the certificate being used for authentication with the backend." + "Description": "Creates a new developer portal's content item specified by the provided content type." } ], "UpdateOperations": [ { "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems/{contentItemId}", "Method": "PUT", - "OperationID": "Certificate_CreateOrUpdate", + "OperationID": "ContentItem_CreateOrUpdate", "IsLongRunning": true, "PagingMetadata": null, - "Description": "Creates or updates the certificate being used for authentication with the backend." + "Description": "Creates a new developer portal's content item specified by the provided content type." } ], "DeleteOperations": [ { "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems/{contentItemId}", "Method": "DELETE", - "OperationID": "Certificate_Delete", + "OperationID": "ContentItem_Delete", "IsLongRunning": true, "PagingMetadata": null, - "Description": "Deletes specific certificate." + "Description": "Removes the specified developer portal's content item." } ], "ListOperations": [ { "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems", "Method": "GET", - "OperationID": "Certificate_ListByService", + "OperationID": "ContentItem_ListByService", "IsLongRunning": false, "PagingMetadata": { "Method": "ListByService", - "NextPageMethod": "ListByServiceNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, - "Description": "Lists a collection of all certificates in the specified service instance." + "Description": "Lists developer portal's content items specified by the provided content type." } ], "OperationsFromResourceGroupExtension": [], "OperationsFromSubscriptionExtension": [], "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "RefreshSecret", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}/refreshSecret", - "Method": "POST", - "OperationID": "Certificate_RefreshSecret", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "From KeyVault, Refresh the certificate being used for authentication with the backend." - }, - { - "Name": "GetEntityTag", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}", - "Method": "HEAD", - "OperationID": "Certificate_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state (Etag) version of the certificate specified by its identifier." - } + "OtherOperations": [], + "Parents": [ + "ContentTypeContract" ], - "Parents": ["ApiManagementService"], - "SwaggerModelName": "CertificateContract", - "ResourceType": "Microsoft.ApiManagement/service/certificates", - "ResourceKey": "certificateId", - "ResourceKeySegment": "certificates", + "SwaggerModelName": "ContentItemContract", + "ResourceType": "Microsoft.ApiManagement/service/contentTypes/contentItems", + "ResourceKey": "contentItemId", + "ResourceKeySegment": "contentItems", "IsTrackedResource": false, "IsTenantResource": false, "IsSubscriptionResource": false, @@ -2165,8 +1606,8 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "ApiManagementDeletedService": { - "Name": "ApiManagementDeletedService", + "DeletedServiceContract": { + "Name": "DeletedServiceContract", "GetOperations": [ { "Name": "Get", @@ -2193,26 +1634,13 @@ ], "ListOperations": [], "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [ - { - "Name": "GetApiManagementDeletedServices", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/deletedservices", - "Method": "GET", - "OperationID": "DeletedServices_ListBySubscription", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListBySubscription", - "NextPageMethod": "ListBySubscriptionNextPage", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists all soft-deleted services available for undelete for the given subscription." - } - ], + "OperationsFromSubscriptionExtension": [], "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], "OtherOperations": [], - "Parents": ["SubscriptionResource"], + "Parents": [ + "SubscriptionResource" + ], "SwaggerModelName": "DeletedServiceContract", "ResourceType": "Microsoft.ApiManagement/locations/deletedservices", "ResourceKey": "serviceName", @@ -2224,8 +1652,8 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "ApiManagementService": { - "Name": "ApiManagementService", + "ApiManagementServiceResource": { + "Name": "ApiManagementServiceResource", "GetOperations": [ { "Name": "Get", @@ -2279,7 +1707,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "ListByResourceGroup", - "NextPageMethod": "ListByResourceGroupNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -2289,50 +1716,30 @@ "OperationsFromResourceGroupExtension": [], "OperationsFromSubscriptionExtension": [ { - "Name": "GetApiManagementServices", + "Name": "_", "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/service", "Method": "GET", "OperationID": "ApiManagementService_List", "IsLongRunning": false, "PagingMetadata": { "Method": "List", - "NextPageMethod": "ListNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, "Description": "Lists all API Management services within an Azure subscription." - }, - { - "Name": "CheckApiManagementServiceNameAvailability", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/checkNameAvailability", - "Method": "POST", - "OperationID": "ApiManagementService_CheckNameAvailability", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Checks availability and correctness of a name for an API Management service." - }, - { - "Name": "GetApiManagementServiceDomainOwnershipIdentifier", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/getDomainOwnershipIdentifier", - "Method": "POST", - "OperationID": "ApiManagementService_GetDomainOwnershipIdentifier", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get the custom domain ownership identifier for an API Management service." } ], "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], "OtherOperations": [ { - "Name": "GetApisByTags", + "Name": "ListByTags", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apisByTags", "Method": "GET", "OperationID": "Api_ListByTags", "IsLongRunning": false, "PagingMetadata": { "Method": "ListByTags", - "NextPageMethod": "ListByTagsNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -2348,105 +1755,13 @@ "Description": "Performs a connectivity check between the API Management service and a given destination, and returns metrics for the connection, as well as errors encountered while trying to establish it." }, { - "Name": "GetContentTypes", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes", - "Method": "GET", - "OperationID": "ContentType_ListByService", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByService", - "NextPageMethod": "ListByServiceNextPage", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists the developer portal\u0027s content types. Content types describe content items\u0027 properties, validation rules, and constraints." - }, - { - "Name": "GetContentType", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}", - "Method": "GET", - "OperationID": "ContentType_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the details of the developer portal\u0027s content type. Content types describe content items\u0027 properties, validation rules, and constraints." - }, - { - "Name": "CreateOrUpdateContentType", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}", - "Method": "PUT", - "OperationID": "ContentType_CreateOrUpdate", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Creates or updates the developer portal\u0027s content type. Content types describe content items\u0027 properties, validation rules, and constraints. Custom content types\u0027 identifiers need to start with the \u0060c-\u0060 prefix. Built-in content types can\u0027t be modified." - }, - { - "Name": "DeleteContentType", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}", - "Method": "DELETE", - "OperationID": "ContentType_Delete", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Removes the specified developer portal\u0027s content type. Content types describe content items\u0027 properties, validation rules, and constraints. Built-in content types (with identifiers starting with the \u0060c-\u0060 prefix) can\u0027t be removed." - }, - { - "Name": "GetContentItems", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems", - "Method": "GET", - "OperationID": "ContentItem_ListByService", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByService", - "NextPageMethod": "ListByServiceNextPage", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists developer portal\u0027s content items specified by the provided content type." - }, - { - "Name": "GetContentItemEntityTag", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems/{contentItemId}", - "Method": "HEAD", - "OperationID": "ContentItem_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Returns the entity state (ETag) version of the developer portal\u0027s content item specified by its identifier." - }, - { - "Name": "GetContentItem", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems/{contentItemId}", - "Method": "GET", - "OperationID": "ContentItem_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Returns the developer portal\u0027s content item specified by its identifier." - }, - { - "Name": "CreateOrUpdateContentItem", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems/{contentItemId}", - "Method": "PUT", - "OperationID": "ContentItem_CreateOrUpdate", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Creates a new developer portal\u0027s content item specified by the provided content type." - }, - { - "Name": "DeleteContentItem", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems/{contentItemId}", - "Method": "DELETE", - "OperationID": "ContentItem_Delete", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Removes the specified developer portal\u0027s content item." - }, - { - "Name": "GetAvailableApiManagementServiceSkus", + "Name": "ListAvailableServiceSkus", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/skus", "Method": "GET", "OperationID": "ApiManagementServiceSkus_ListAvailableServiceSkus", "IsLongRunning": false, "PagingMetadata": { "Method": "ListAvailableServiceSkus", - "NextPageMethod": "ListAvailableServiceSkusNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -2489,21 +1804,20 @@ "Description": "Updates the Microsoft.ApiManagement resource running in the Virtual network to pick the updated DNS changes." }, { - "Name": "GetNetworkStatuses", + "Name": "ListByService", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/networkstatus", "Method": "GET", "OperationID": "NetworkStatus_ListByService", "IsLongRunning": false, "PagingMetadata": { "Method": "ListByService", - "NextPageMethod": null, - "ItemName": "", - "NextLinkName": null + "ItemName": "value", + "NextLinkName": "nextLink" }, "Description": "Gets the Connectivity Status to the external resources on which the Api Management service depends from inside the Cloud Service. This also returns the DNS Servers as visible to the CloudService." }, { - "Name": "GetNetworkStatusByLocation", + "Name": "ListByLocation", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/locations/{locationName}/networkstatus", "Method": "GET", "OperationID": "NetworkStatus_ListByLocation", @@ -2512,91 +1826,85 @@ "Description": "Gets the Connectivity Status to the external resources on which the Api Management service depends from inside the Cloud Service. This also returns the DNS Servers as visible to the CloudService." }, { - "Name": "GetOutboundNetworkDependenciesEndpoints", + "Name": "ListByService", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/outboundNetworkDependenciesEndpoints", "Method": "GET", "OperationID": "OutboundNetworkDependenciesEndpoints_ListByService", "IsLongRunning": false, "PagingMetadata": { "Method": "ListByService", - "NextPageMethod": null, "ItemName": "value", - "NextLinkName": null + "NextLinkName": "nextLink" }, "Description": "Gets the network endpoints of all outbound dependencies of a ApiManagement service." }, { - "Name": "GetPolicyDescriptions", + "Name": "ListByService", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyDescriptions", "Method": "GET", "OperationID": "PolicyDescription_ListByService", "IsLongRunning": false, "PagingMetadata": { "Method": "ListByService", - "NextPageMethod": null, "ItemName": "value", - "NextLinkName": null + "NextLinkName": "nextLink" }, "Description": "Lists all policy descriptions." }, { - "Name": "GetPortalSettings", + "Name": "ListByService", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings", "Method": "GET", "OperationID": "PortalSettings_ListByService", "IsLongRunning": false, "PagingMetadata": { "Method": "ListByService", - "NextPageMethod": null, "ItemName": "value", - "NextLinkName": null + "NextLinkName": "nextLink" }, "Description": "Lists a collection of portalsettings defined within a service instance.." }, { - "Name": "GetProductsByTags", + "Name": "ListByTags", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/productsByTags", "Method": "GET", "OperationID": "Product_ListByTags", "IsLongRunning": false, "PagingMetadata": { "Method": "ListByTags", - "NextPageMethod": "ListByTagsNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, "Description": "Lists a collection of products associated with tags." }, { - "Name": "GetQuotaByCounterKeys", + "Name": "ListByService", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/quotas/{quotaCounterKey}", "Method": "GET", "OperationID": "QuotaByCounterKeys_ListByService", "IsLongRunning": false, "PagingMetadata": { "Method": "ListByService", - "NextPageMethod": null, "ItemName": "value", - "NextLinkName": null + "NextLinkName": "nextLink" }, "Description": "Lists a collection of current quota counter periods associated with the counter-key configured in the policy on the specified service instance. The api does not support paging yet." }, { - "Name": "UpdateQuotaByCounterKeys", + "Name": "Update", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/quotas/{quotaCounterKey}", "Method": "PATCH", "OperationID": "QuotaByCounterKeys_Update", "IsLongRunning": false, "PagingMetadata": { "Method": "Update", - "NextPageMethod": null, "ItemName": "value", - "NextLinkName": null + "NextLinkName": "nextLink" }, "Description": "Updates all the quota counter values specified with the existing quota counter key to a value in the specified service instance. This should be used for reset of the quota counter values." }, { - "Name": "GetQuotaByPeriodKey", + "Name": "Get", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/quotas/{quotaCounterKey}/periods/{quotaPeriodKey}", "Method": "GET", "OperationID": "QuotaByPeriodKeys_Get", @@ -2605,7 +1913,7 @@ "Description": "Gets the value of the quota counter associated with the counter-key in the policy for the specific period in service instance." }, { - "Name": "UpdateQuotaByPeriodKey", + "Name": "Update", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/quotas/{quotaCounterKey}/periods/{quotaPeriodKey}", "Method": "PATCH", "OperationID": "QuotaByPeriodKeys_Update", @@ -2614,147 +1922,137 @@ "Description": "Updates an existing quota counter value in the specified service instance." }, { - "Name": "GetRegions", + "Name": "ListByService", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/regions", "Method": "GET", "OperationID": "Region_ListByService", "IsLongRunning": false, "PagingMetadata": { "Method": "ListByService", - "NextPageMethod": "ListByServiceNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, "Description": "Lists all azure regions in which the service exists." }, { - "Name": "GetReportsByApi", + "Name": "ListByApi", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byApi", "Method": "GET", "OperationID": "Reports_ListByApi", "IsLongRunning": false, "PagingMetadata": { "Method": "ListByApi", - "NextPageMethod": "ListByApiNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, "Description": "Lists report records by API." }, { - "Name": "GetReportsByUser", + "Name": "ListByUser", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byUser", "Method": "GET", "OperationID": "Reports_ListByUser", "IsLongRunning": false, "PagingMetadata": { "Method": "ListByUser", - "NextPageMethod": "ListByUserNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, "Description": "Lists report records by User." }, { - "Name": "GetReportsByOperation", + "Name": "ListByOperation", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byOperation", "Method": "GET", "OperationID": "Reports_ListByOperation", "IsLongRunning": false, "PagingMetadata": { "Method": "ListByOperation", - "NextPageMethod": "ListByOperationNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, "Description": "Lists report records by API Operations." }, { - "Name": "GetReportsByProduct", + "Name": "ListByProduct", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byProduct", "Method": "GET", "OperationID": "Reports_ListByProduct", "IsLongRunning": false, "PagingMetadata": { "Method": "ListByProduct", - "NextPageMethod": "ListByProductNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, "Description": "Lists report records by Product." }, { - "Name": "GetReportsByGeo", + "Name": "ListByGeo", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byGeo", "Method": "GET", "OperationID": "Reports_ListByGeo", "IsLongRunning": false, "PagingMetadata": { "Method": "ListByGeo", - "NextPageMethod": "ListByGeoNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, "Description": "Lists report records by geography." }, { - "Name": "GetReportsBySubscription", + "Name": "ListBySubscription", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/bySubscription", "Method": "GET", "OperationID": "Reports_ListBySubscription", "IsLongRunning": false, "PagingMetadata": { "Method": "ListBySubscription", - "NextPageMethod": "ListBySubscriptionNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, "Description": "Lists report records by subscription." }, { - "Name": "GetReportsByTime", + "Name": "ListByTime", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byTime", "Method": "GET", "OperationID": "Reports_ListByTime", "IsLongRunning": false, "PagingMetadata": { "Method": "ListByTime", - "NextPageMethod": "ListByTimeNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, "Description": "Lists report records by Time." }, { - "Name": "GetReportsByRequest", + "Name": "ListByRequest", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byRequest", "Method": "GET", "OperationID": "Reports_ListByRequest", "IsLongRunning": false, "PagingMetadata": { "Method": "ListByRequest", - "NextPageMethod": null, "ItemName": "value", - "NextLinkName": null + "NextLinkName": "nextLink" }, "Description": "Lists report records by Request." }, { - "Name": "GetTagResources", + "Name": "ListByService", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tagResources", "Method": "GET", "OperationID": "TagResource_ListByService", "IsLongRunning": false, "PagingMetadata": { "Method": "ListByService", - "NextPageMethod": "ListByServiceNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, "Description": "Lists a collection of resources associated with tags." }, { - "Name": "DeployTenantConfiguration", + "Name": "Deploy", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{configurationName}/deploy", "Method": "POST", "OperationID": "TenantConfiguration_Deploy", @@ -2763,7 +2061,7 @@ "Description": "This operation applies changes from the specified Git branch to the configuration database. This is a long running operation and could take several minutes to complete." }, { - "Name": "SaveTenantConfiguration", + "Name": "Save", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{configurationName}/save", "Method": "POST", "OperationID": "TenantConfiguration_Save", @@ -2772,7 +2070,7 @@ "Description": "This operation creates a commit with the current configuration snapshot to the specified branch in the repository. This is a long running operation and could take several minutes to complete." }, { - "Name": "ValidateTenantConfiguration", + "Name": "Validate", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{configurationName}/validate", "Method": "POST", "OperationID": "TenantConfiguration_Validate", @@ -2781,7 +2079,7 @@ "Description": "This operation validates the changes in the specified Git branch. This is a long running operation and could take several minutes to complete." }, { - "Name": "GetTenantConfigurationSyncState", + "Name": "GetSyncState", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{configurationName}/syncState", "Method": "GET", "OperationID": "TenantConfiguration_GetSyncState", @@ -2790,7 +2088,9 @@ "Description": "Gets the status of the most recent synchronization between the configuration database and the Git repository." } ], - "Parents": ["ResourceGroupResource"], + "Parents": [ + "ResourceGroupResource" + ], "SwaggerModelName": "ApiManagementServiceResource", "ResourceType": "Microsoft.ApiManagement/service", "ResourceKey": "serviceName", @@ -2802,8 +2102,8 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "ApiManagementEmailTemplate": { - "Name": "ApiManagementEmailTemplate", + "EmailTemplateContract": { + "Name": "EmailTemplateContract", "GetOperations": [ { "Name": "Get", @@ -2857,7 +2157,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "ListByService", - "NextPageMethod": "ListByServiceNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -2868,18 +2167,10 @@ "OperationsFromSubscriptionExtension": [], "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "GetEntityTag", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates/{templateName}", - "Method": "HEAD", - "OperationID": "EmailTemplate_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state (Etag) version of the email template specified by its identifier." - } + "OtherOperations": [], + "Parents": [ + "ApiManagementServiceResource" ], - "Parents": ["ApiManagementService"], "SwaggerModelName": "EmailTemplateContract", "ResourceType": "Microsoft.ApiManagement/service/templates", "ResourceKey": "templateName", @@ -2891,8 +2182,8 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "ApiManagementGateway": { - "Name": "ApiManagementGateway", + "GatewayContract": { + "Name": "GatewayContract", "GetOperations": [ { "Name": "Get", @@ -2946,7 +2237,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "ListByService", - "NextPageMethod": "ListByServiceNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -2959,7 +2249,7 @@ "OperationsFromTenantExtension": [], "OtherOperations": [ { - "Name": "GetKeys", + "Name": "ListKeys", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/listKeys", "Method": "POST", "OperationID": "Gateway_ListKeys", @@ -2986,21 +2276,20 @@ "Description": "Gets the Shared Access Authorization Token for the gateway." }, { - "Name": "GetGatewayApisByService", + "Name": "ListByService", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/apis", "Method": "GET", "OperationID": "GatewayApi_ListByService", "IsLongRunning": false, "PagingMetadata": { "Method": "ListByService", - "NextPageMethod": "ListByServiceNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, "Description": "Lists a collection of the APIs associated with a gateway." }, { - "Name": "GetGatewayApiEntityTag", + "Name": "GetEntityTag", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/apis/{apiId}", "Method": "HEAD", "OperationID": "GatewayApi_GetEntityTag", @@ -3009,34 +2298,27 @@ "Description": "Checks that API entity specified by identifier is associated with the Gateway entity." }, { - "Name": "CreateOrUpdateGatewayApi", + "Name": "CreateOrUpdate", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/apis/{apiId}", "Method": "PUT", "OperationID": "GatewayApi_CreateOrUpdate", - "IsLongRunning": false, + "IsLongRunning": true, "PagingMetadata": null, "Description": "Adds an API to the specified Gateway." }, { - "Name": "DeleteGatewayApi", + "Name": "Delete", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/apis/{apiId}", "Method": "DELETE", "OperationID": "GatewayApi_Delete", - "IsLongRunning": false, + "IsLongRunning": true, "PagingMetadata": null, "Description": "Deletes the specified API from the specified Gateway." - }, - { - "Name": "GetEntityTag", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}", - "Method": "HEAD", - "OperationID": "Gateway_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state (Etag) version of the Gateway specified by its identifier." } ], - "Parents": ["ApiManagementService"], + "Parents": [ + "ApiManagementServiceResource" + ], "SwaggerModelName": "GatewayContract", "ResourceType": "Microsoft.ApiManagement/service/gateways", "ResourceKey": "gatewayId", @@ -3048,8 +2330,8 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "ApiManagementGatewayHostnameConfiguration": { - "Name": "ApiManagementGatewayHostnameConfiguration", + "GatewayHostnameConfigurationContract": { + "Name": "GatewayHostnameConfigurationContract", "GetOperations": [ { "Name": "Get", @@ -3103,7 +2385,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "ListByService", - "NextPageMethod": "ListByServiceNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -3114,18 +2395,10 @@ "OperationsFromSubscriptionExtension": [], "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "GetEntityTag", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/hostnameConfigurations/{hcId}", - "Method": "HEAD", - "OperationID": "GatewayHostnameConfiguration_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Checks that hostname configuration entity specified by identifier exists for specified Gateway entity." - } + "OtherOperations": [], + "Parents": [ + "GatewayContract" ], - "Parents": ["ApiManagementGateway"], "SwaggerModelName": "GatewayHostnameConfigurationContract", "ResourceType": "Microsoft.ApiManagement/service/gateways/hostnameConfigurations", "ResourceKey": "hcId", @@ -3137,8 +2410,8 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "ApiManagementGatewayCertificateAuthority": { - "Name": "ApiManagementGatewayCertificateAuthority", + "GatewayCertificateAuthorityContract": { + "Name": "GatewayCertificateAuthorityContract", "GetOperations": [ { "Name": "Get", @@ -3192,7 +2465,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "ListByService", - "NextPageMethod": "ListByServiceNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -3203,18 +2475,10 @@ "OperationsFromSubscriptionExtension": [], "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "GetEntityTag", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/certificateAuthorities/{certificateId}", - "Method": "HEAD", - "OperationID": "GatewayCertificateAuthority_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Checks if Certificate entity is assigned to Gateway entity as Certificate Authority." - } + "OtherOperations": [], + "Parents": [ + "GatewayContract" ], - "Parents": ["ApiManagementGateway"], "SwaggerModelName": "GatewayCertificateAuthorityContract", "ResourceType": "Microsoft.ApiManagement/service/gateways/certificateAuthorities", "ResourceKey": "certificateId", @@ -3226,8 +2490,8 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "ApiManagementGroup": { - "Name": "ApiManagementGroup", + "GroupContract": { + "Name": "GroupContract", "GetOperations": [ { "Name": "Get", @@ -3281,7 +2545,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "ListByService", - "NextPageMethod": "ListByServiceNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -3294,21 +2557,20 @@ "OperationsFromTenantExtension": [], "OtherOperations": [ { - "Name": "GetGroupUsers", + "Name": "List", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}/users", "Method": "GET", "OperationID": "GroupUser_List", "IsLongRunning": false, "PagingMetadata": { "Method": "List", - "NextPageMethod": "ListNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, "Description": "Lists a collection of user entities associated with the group." }, { - "Name": "CheckGroupUserEntityExists", + "Name": "CheckEntityExists", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}/users/{userId}", "Method": "HEAD", "OperationID": "GroupUser_CheckEntityExists", @@ -3317,34 +2579,27 @@ "Description": "Checks that user entity specified by identifier is associated with the group entity." }, { - "Name": "CreateGroupUser", + "Name": "Create", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}/users/{userId}", "Method": "PUT", "OperationID": "GroupUser_Create", - "IsLongRunning": false, + "IsLongRunning": true, "PagingMetadata": null, "Description": "Add existing user to existing group" }, { - "Name": "DeleteGroupUser", + "Name": "Delete", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}/users/{userId}", "Method": "DELETE", "OperationID": "GroupUser_Delete", - "IsLongRunning": false, + "IsLongRunning": true, "PagingMetadata": null, "Description": "Remove existing user from existing group." - }, - { - "Name": "GetEntityTag", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}", - "Method": "HEAD", - "OperationID": "Group_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state (Etag) version of the group specified by its identifier." } ], - "Parents": ["ApiManagementService"], + "Parents": [ + "ApiManagementServiceResource" + ], "SwaggerModelName": "GroupContract", "ResourceType": "Microsoft.ApiManagement/service/groups", "ResourceKey": "groupId", @@ -3356,8 +2611,8 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "ApiManagementIdentityProvider": { - "Name": "ApiManagementIdentityProvider", + "IdentityProviderContract": { + "Name": "IdentityProviderContract", "GetOperations": [ { "Name": "Get", @@ -3411,7 +2666,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "ListByService", - "NextPageMethod": "ListByServiceNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -3424,25 +2678,18 @@ "OperationsFromTenantExtension": [], "OtherOperations": [ { - "Name": "GetSecrets", + "Name": "ListSecrets", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}/listSecrets", "Method": "POST", "OperationID": "IdentityProvider_ListSecrets", "IsLongRunning": false, "PagingMetadata": null, "Description": "Gets the client secret details of the Identity Provider." - }, - { - "Name": "GetEntityTag", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}", - "Method": "HEAD", - "OperationID": "IdentityProvider_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state (Etag) version of the identityProvider specified by its identifier." } ], - "Parents": ["ApiManagementService"], + "Parents": [ + "ApiManagementServiceResource" + ], "SwaggerModelName": "IdentityProviderContract", "ResourceType": "Microsoft.ApiManagement/service/identityProviders", "ResourceKey": "identityProviderName", @@ -3454,8 +2701,8 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "ApiManagementLogger": { - "Name": "ApiManagementLogger", + "LoggerContract": { + "Name": "LoggerContract", "GetOperations": [ { "Name": "Get", @@ -3509,7 +2756,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "ListByService", - "NextPageMethod": "ListByServiceNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -3520,18 +2766,10 @@ "OperationsFromSubscriptionExtension": [], "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "GetEntityTag", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerId}", - "Method": "HEAD", - "OperationID": "Logger_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state (Etag) version of the logger specified by its identifier." - } + "OtherOperations": [], + "Parents": [ + "ApiManagementServiceResource" ], - "Parents": ["ApiManagementService"], "SwaggerModelName": "LoggerContract", "ResourceType": "Microsoft.ApiManagement/service/loggers", "ResourceKey": "loggerId", @@ -3543,8 +2781,8 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "ApiManagementNamedValue": { - "Name": "ApiManagementNamedValue", + "NamedValueContract": { + "Name": "NamedValueContract", "GetOperations": [ { "Name": "Get", @@ -3598,7 +2836,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "ListByService", - "NextPageMethod": "ListByServiceNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -3611,7 +2848,7 @@ "OperationsFromTenantExtension": [], "OtherOperations": [ { - "Name": "GetValue", + "Name": "ListValue", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}/listValue", "Method": "POST", "OperationID": "NamedValue_ListValue", @@ -3627,18 +2864,11 @@ "IsLongRunning": true, "PagingMetadata": null, "Description": "Refresh the secret of the named value specified by its identifier." - }, - { - "Name": "GetEntityTag", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}", - "Method": "HEAD", - "OperationID": "NamedValue_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state (Etag) version of the named value specified by its identifier." } ], - "Parents": ["ApiManagementService"], + "Parents": [ + "ApiManagementServiceResource" + ], "SwaggerModelName": "NamedValueContract", "ResourceType": "Microsoft.ApiManagement/service/namedValues", "ResourceKey": "namedValueId", @@ -3650,8 +2880,8 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "ApiManagementNotification": { - "Name": "ApiManagementNotification", + "NotificationContract": { + "Name": "NotificationContract", "GetOperations": [ { "Name": "Get", @@ -3695,7 +2925,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "ListByService", - "NextPageMethod": "ListByServiceNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -3708,21 +2937,20 @@ "OperationsFromTenantExtension": [], "OtherOperations": [ { - "Name": "GetNotificationRecipientUsers", + "Name": "ListByNotification", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientUsers", "Method": "GET", "OperationID": "NotificationRecipientUser_ListByNotification", "IsLongRunning": false, "PagingMetadata": { "Method": "ListByNotification", - "NextPageMethod": null, "ItemName": "value", - "NextLinkName": null + "NextLinkName": "nextLink" }, "Description": "Gets the list of the Notification Recipient User subscribed to the notification." }, { - "Name": "CheckNotificationRecipientUserEntityExists", + "Name": "CheckEntityExists", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientUsers/{userId}", "Method": "HEAD", "OperationID": "NotificationRecipientUser_CheckEntityExists", @@ -3731,39 +2959,38 @@ "Description": "Determine if the Notification Recipient User is subscribed to the notification." }, { - "Name": "CreateOrUpdateNotificationRecipientUser", + "Name": "CreateOrUpdate", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientUsers/{userId}", "Method": "PUT", "OperationID": "NotificationRecipientUser_CreateOrUpdate", - "IsLongRunning": false, + "IsLongRunning": true, "PagingMetadata": null, "Description": "Adds the API Management User to the list of Recipients for the Notification." }, { - "Name": "DeleteNotificationRecipientUser", + "Name": "Delete", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientUsers/{userId}", "Method": "DELETE", "OperationID": "NotificationRecipientUser_Delete", - "IsLongRunning": false, + "IsLongRunning": true, "PagingMetadata": null, "Description": "Removes the API Management user from the list of Notification." }, { - "Name": "GetNotificationRecipientEmails", + "Name": "ListByNotification", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientEmails", "Method": "GET", "OperationID": "NotificationRecipientEmail_ListByNotification", "IsLongRunning": false, "PagingMetadata": { "Method": "ListByNotification", - "NextPageMethod": null, "ItemName": "value", - "NextLinkName": null + "NextLinkName": "nextLink" }, "Description": "Gets the list of the Notification Recipient Emails subscribed to a notification." }, { - "Name": "CheckNotificationRecipientEmailEntityExists", + "Name": "CheckEntityExists", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientEmails/{email}", "Method": "HEAD", "OperationID": "NotificationRecipientEmail_CheckEntityExists", @@ -3772,25 +2999,27 @@ "Description": "Determine if Notification Recipient Email subscribed to the notification." }, { - "Name": "CreateOrUpdateNotificationRecipientEmail", + "Name": "CreateOrUpdate", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientEmails/{email}", "Method": "PUT", "OperationID": "NotificationRecipientEmail_CreateOrUpdate", - "IsLongRunning": false, + "IsLongRunning": true, "PagingMetadata": null, "Description": "Adds the Email address to the list of Recipients for the Notification." }, { - "Name": "DeleteNotificationRecipientEmail", + "Name": "Delete", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientEmails/{email}", "Method": "DELETE", "OperationID": "NotificationRecipientEmail_Delete", - "IsLongRunning": false, + "IsLongRunning": true, "PagingMetadata": null, "Description": "Removes the email from the list of Notification." } ], - "Parents": ["ApiManagementService"], + "Parents": [ + "ApiManagementServiceResource" + ], "SwaggerModelName": "NotificationContract", "ResourceType": "Microsoft.ApiManagement/service/notifications", "ResourceKey": "notificationName", @@ -3802,12 +3031,12 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "ApiManagementOpenIdConnectProvider": { - "Name": "ApiManagementOpenIdConnectProvider", + "OpenidConnectProviderContract": { + "Name": "OpenidConnectProviderContract", "GetOperations": [ { "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{openId}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}", "Method": "GET", "OperationID": "OpenIdConnectProvider_Get", "IsLongRunning": false, @@ -3818,7 +3047,7 @@ "CreateOperations": [ { "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{openId}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}", "Method": "PUT", "OperationID": "OpenIdConnectProvider_CreateOrUpdate", "IsLongRunning": true, @@ -3829,7 +3058,7 @@ "UpdateOperations": [ { "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{openId}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}", "Method": "PATCH", "OperationID": "OpenIdConnectProvider_Update", "IsLongRunning": false, @@ -3840,7 +3069,7 @@ "DeleteOperations": [ { "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{openId}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}", "Method": "DELETE", "OperationID": "OpenIdConnectProvider_Delete", "IsLongRunning": true, @@ -3857,7 +3086,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "ListByService", - "NextPageMethod": "ListByServiceNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -3870,25 +3098,18 @@ "OperationsFromTenantExtension": [], "OtherOperations": [ { - "Name": "GetSecrets", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{openId}/listSecrets", + "Name": "ListSecrets", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}/listSecrets", "Method": "POST", "OperationID": "OpenIdConnectProvider_ListSecrets", "IsLongRunning": false, "PagingMetadata": null, "Description": "Gets the client secret details of the OpenID Connect Provider." - }, - { - "Name": "GetEntityTag", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{openId}", - "Method": "HEAD", - "OperationID": "OpenIdConnectProvider_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state (Etag) version of the openIdConnectProvider specified by its identifier." } ], - "Parents": ["ApiManagementService"], + "Parents": [ + "ApiManagementServiceResource" + ], "SwaggerModelName": "OpenidConnectProviderContract", "ResourceType": "Microsoft.ApiManagement/service/openidConnectProviders", "ResourceKey": "opid", @@ -3900,8 +3121,8 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "ApiManagementPortalRevision": { - "Name": "ApiManagementPortalRevision", + "PortalRevisionContract": { + "Name": "PortalRevisionContract", "GetOperations": [ { "Name": "Get", @@ -3910,7 +3131,7 @@ "OperationID": "PortalRevision_Get", "IsLongRunning": false, "PagingMetadata": null, - "Description": "Gets the developer portal\u0027s revision specified by its identifier." + "Description": "Gets the developer portal's revision specified by its identifier." } ], "CreateOperations": [ @@ -3921,7 +3142,7 @@ "OperationID": "PortalRevision_CreateOrUpdate", "IsLongRunning": true, "PagingMetadata": null, - "Description": "Creates a new developer portal\u0027s revision by running the portal\u0027s publishing. The \u0060isCurrent\u0060 property indicates if the revision is publicly accessible." + "Description": "Creates a new developer portal's revision by running the portal's publishing. The `isCurrent` property indicates if the revision is publicly accessible." } ], "UpdateOperations": [ @@ -3945,29 +3166,20 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "ListByService", - "NextPageMethod": "ListByServiceNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, - "Description": "Lists developer portal\u0027s revisions." + "Description": "Lists developer portal's revisions." } ], "OperationsFromResourceGroupExtension": [], "OperationsFromSubscriptionExtension": [], "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "GetEntityTag", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalRevisions/{portalRevisionId}", - "Method": "HEAD", - "OperationID": "PortalRevision_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the developer portal revision specified by its identifier." - } + "OtherOperations": [], + "Parents": [ + "ApiManagementServiceResource" ], - "Parents": ["ApiManagementService"], "SwaggerModelName": "PortalRevisionContract", "ResourceType": "Microsoft.ApiManagement/service/portalRevisions", "ResourceKey": "portalRevisionId", @@ -3979,8 +3191,8 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "ApiManagementPortalSignInSetting": { - "Name": "ApiManagementPortalSignInSetting", + "PortalSigninSettings": { + "Name": "PortalSigninSetting", "GetOperations": [ { "Name": "Get", @@ -4020,18 +3232,10 @@ "OperationsFromSubscriptionExtension": [], "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "GetEntityTag", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signin", - "Method": "HEAD", - "OperationID": "SignInSettings_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state (Etag) version of the SignInSettings." - } + "OtherOperations": [], + "Parents": [ + "ApiManagementServiceResource" ], - "Parents": ["ApiManagementService"], "SwaggerModelName": "PortalSigninSettings", "ResourceType": "Microsoft.ApiManagement/service/portalsettings", "ResourceKey": "signin", @@ -4043,8 +3247,8 @@ "IsExtensionResource": false, "IsSingletonResource": true }, - "ApiManagementPortalSignUpSetting": { - "Name": "ApiManagementPortalSignUpSetting", + "PortalSignupSettings": { + "Name": "PortalSignupSetting", "GetOperations": [ { "Name": "Get", @@ -4084,18 +3288,10 @@ "OperationsFromSubscriptionExtension": [], "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "GetEntityTag", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signup", - "Method": "HEAD", - "OperationID": "SignUpSettings_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state (Etag) version of the SignUpSettings." - } + "OtherOperations": [], + "Parents": [ + "ApiManagementServiceResource" ], - "Parents": ["ApiManagementService"], "SwaggerModelName": "PortalSignupSettings", "ResourceType": "Microsoft.ApiManagement/service/portalsettings", "ResourceKey": "signup", @@ -4107,8 +3303,8 @@ "IsExtensionResource": false, "IsSingletonResource": true }, - "ApiManagementPortalDelegationSetting": { - "Name": "ApiManagementPortalDelegationSetting", + "PortalDelegationSettings": { + "Name": "PortalDelegationSetting", "GetOperations": [ { "Name": "Get", @@ -4150,25 +3346,18 @@ "OperationsFromTenantExtension": [], "OtherOperations": [ { - "Name": "GetSecrets", + "Name": "ListSecrets", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/delegation/listSecrets", "Method": "POST", "OperationID": "DelegationSettings_ListSecrets", "IsLongRunning": false, "PagingMetadata": null, "Description": "Gets the secret validation key of the DelegationSettings." - }, - { - "Name": "GetEntityTag", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/delegation", - "Method": "HEAD", - "OperationID": "DelegationSettings_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state (Etag) version of the DelegationSettings." } ], - "Parents": ["ApiManagementService"], + "Parents": [ + "ApiManagementServiceResource" + ], "SwaggerModelName": "PortalDelegationSettings", "ResourceType": "Microsoft.ApiManagement/service/portalsettings", "ResourceKey": "delegation", @@ -4180,8 +3369,8 @@ "IsExtensionResource": false, "IsSingletonResource": true }, - "ApiManagementPrivateEndpointConnection": { - "Name": "ApiManagementPrivateEndpointConnection", + "PrivateEndpointConnection": { + "Name": "PrivateEndpointConnection", "GetOperations": [ { "Name": "Get", @@ -4235,9 +3424,8 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "ListByService", - "NextPageMethod": null, "ItemName": "value", - "NextLinkName": null + "NextLinkName": "nextLink" }, "Description": "Lists all private endpoint connections of the API Management service instance." } @@ -4247,7 +3435,9 @@ "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], "OtherOperations": [], - "Parents": ["ApiManagementService"], + "Parents": [ + "ApiManagementServiceResource" + ], "SwaggerModelName": "PrivateEndpointConnection", "ResourceType": "Microsoft.ApiManagement/service/privateEndpointConnections", "ResourceKey": "privateEndpointConnectionName", @@ -4259,8 +3449,8 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "ApiManagementPrivateLinkResource": { - "Name": "ApiManagementPrivateLinkResource", + "PrivateLinkResource": { + "Name": "PrivateLinkResource", "GetOperations": [ { "Name": "Get", @@ -4284,9 +3474,8 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "ListPrivateLinkResources", - "NextPageMethod": null, "ItemName": "value", - "NextLinkName": null + "NextLinkName": "nextLink" }, "Description": "Gets the private link resources" } @@ -4296,7 +3485,9 @@ "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], "OtherOperations": [], - "Parents": ["ApiManagementService"], + "Parents": [ + "ApiManagementServiceResource" + ], "SwaggerModelName": "PrivateLinkResource", "ResourceType": "Microsoft.ApiManagement/service/privateLinkResources", "ResourceKey": "privateLinkSubResourceName", @@ -4308,8 +3499,8 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "ApiManagementProduct": { - "Name": "ApiManagementProduct", + "ProductContract": { + "Name": "ProductContract", "GetOperations": [ { "Name": "Get", @@ -4363,7 +3554,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "ListByService", - "NextPageMethod": "ListByServiceNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -4376,21 +3566,20 @@ "OperationsFromTenantExtension": [], "OtherOperations": [ { - "Name": "GetProductApis", + "Name": "ListByProduct", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apis", "Method": "GET", "OperationID": "ProductApi_ListByProduct", "IsLongRunning": false, "PagingMetadata": { "Method": "ListByProduct", - "NextPageMethod": "ListByProductNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, "Description": "Lists a collection of the APIs associated with a product." }, { - "Name": "CheckProductApiEntityExists", + "Name": "CheckEntityExists", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apis/{apiId}", "Method": "HEAD", "OperationID": "ProductApi_CheckEntityExists", @@ -4399,39 +3588,38 @@ "Description": "Checks that API entity specified by identifier is associated with the Product entity." }, { - "Name": "CreateOrUpdateProductApi", + "Name": "CreateOrUpdate", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apis/{apiId}", "Method": "PUT", "OperationID": "ProductApi_CreateOrUpdate", - "IsLongRunning": false, + "IsLongRunning": true, "PagingMetadata": null, "Description": "Adds an API to the specified product." }, { - "Name": "DeleteProductApi", + "Name": "Delete", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apis/{apiId}", "Method": "DELETE", "OperationID": "ProductApi_Delete", - "IsLongRunning": false, + "IsLongRunning": true, "PagingMetadata": null, "Description": "Deletes the specified API from the specified product." }, { - "Name": "GetProductGroups", + "Name": "ListByProduct", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groups", "Method": "GET", "OperationID": "ProductGroup_ListByProduct", "IsLongRunning": false, "PagingMetadata": { "Method": "ListByProduct", - "NextPageMethod": "ListByProductNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, "Description": "Lists the collection of developer groups associated with the specified product." }, { - "Name": "CheckProductGroupEntityExists", + "Name": "CheckEntityExists", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groups/{groupId}", "Method": "HEAD", "OperationID": "ProductGroup_CheckEntityExists", @@ -4440,48 +3628,40 @@ "Description": "Checks that Group entity specified by identifier is associated with the Product entity." }, { - "Name": "CreateOrUpdateProductGroup", + "Name": "CreateOrUpdate", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groups/{groupId}", "Method": "PUT", "OperationID": "ProductGroup_CreateOrUpdate", - "IsLongRunning": false, + "IsLongRunning": true, "PagingMetadata": null, "Description": "Adds the association between the specified developer group with the specified product." }, { - "Name": "DeleteProductGroup", + "Name": "Delete", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groups/{groupId}", "Method": "DELETE", "OperationID": "ProductGroup_Delete", - "IsLongRunning": false, + "IsLongRunning": true, "PagingMetadata": null, "Description": "Deletes the association between the specified group and product." }, { - "Name": "GetAllProductSubscriptionData", + "Name": "List", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/subscriptions", "Method": "GET", "OperationID": "ProductSubscriptions_List", "IsLongRunning": false, "PagingMetadata": { "Method": "List", - "NextPageMethod": "ListNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, "Description": "Lists the collection of subscriptions to the specified product." - }, - { - "Name": "GetEntityTag", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}", - "Method": "HEAD", - "OperationID": "Product_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state (Etag) version of the product specified by its identifier." } ], - "Parents": ["ApiManagementService"], + "Parents": [ + "ApiManagementServiceResource" + ], "SwaggerModelName": "ProductContract", "ResourceType": "Microsoft.ApiManagement/service/products", "ResourceKey": "productId", @@ -4493,8 +3673,8 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "ApiManagementGlobalSchema": { - "Name": "ApiManagementGlobalSchema", + "GlobalSchemaContract": { + "Name": "GlobalSchemaContract", "GetOperations": [ { "Name": "Get", @@ -4548,7 +3728,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "ListByService", - "NextPageMethod": "ListByServiceNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -4559,18 +3738,10 @@ "OperationsFromSubscriptionExtension": [], "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "GetEntityTag", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/schemas/{schemaId}", - "Method": "HEAD", - "OperationID": "GlobalSchema_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state (Etag) version of the Schema specified by its identifier." - } + "OtherOperations": [], + "Parents": [ + "ApiManagementServiceResource" ], - "Parents": ["ApiManagementService"], "SwaggerModelName": "GlobalSchemaContract", "ResourceType": "Microsoft.ApiManagement/service/schemas", "ResourceKey": "schemaId", @@ -4582,8 +3753,8 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "ApiManagementTenantSetting": { - "Name": "ApiManagementTenantSetting", + "TenantSettingsContract": { + "Name": "TenantSettingsContract", "GetOperations": [ { "Name": "Get", @@ -4607,7 +3778,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "ListByService", - "NextPageMethod": "ListByServiceNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -4619,7 +3789,9 @@ "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], "OtherOperations": [], - "Parents": ["ApiManagementService"], + "Parents": [ + "ApiManagementServiceResource" + ], "SwaggerModelName": "TenantSettingsContract", "ResourceType": "Microsoft.ApiManagement/service/settings", "ResourceKey": "settingsType", @@ -4631,8 +3803,32 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "ApiManagementSubscription": { - "Name": "ApiManagementSubscription", + "SubscriptionContractFixMe": { + "Name": "SubscriptionContractFixMe", + "GetOperations": [], + "CreateOperations": [], + "UpdateOperations": [], + "DeleteOperations": [], + "ListOperations": [], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [], + "SwaggerModelName": "", + "ResourceType": "", + "ResourceKey": "", + "ResourceKeySegment": "", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + }, + "SubscriptionContract": { + "Name": "SubscriptionContract", "GetOperations": [ { "Name": "Get", @@ -4686,7 +3882,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "List", - "NextPageMethod": "ListNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -4717,77 +3912,21 @@ "Description": "Regenerates secondary key of existing subscription of the API Management service instance." }, { - "Name": "GetSecrets", + "Name": "ListSecrets", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}/listSecrets", "Method": "POST", "OperationID": "Subscription_ListSecrets", "IsLongRunning": false, "PagingMetadata": null, "Description": "Gets the specified Subscription keys." - }, - { - "Name": "GetEntityTag", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}", - "Method": "HEAD", - "OperationID": "Subscription_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state (Etag) version of the apimanagement subscription specified by its identifier." - } - ], - "Parents": ["ApiManagementService"], - "SwaggerModelName": "SubscriptionContract", - "ResourceType": "Microsoft.ApiManagement/service/subscriptions", - "ResourceKey": "subscriptionId", - "ResourceKeySegment": "subscriptions", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "ApiManagementUserSubscription": { - "Name": "ApiManagementUserSubscription", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/subscriptions/{sid}", - "Method": "GET", - "OperationID": "UserSubscription_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the specified Subscription entity associated with a particular user." } ], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/subscriptions", - "Method": "GET", - "OperationID": "UserSubscription_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "NextPageMethod": "ListNextPage", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists the collection of subscriptions of the specified user." - } + "Parents": [ + "ApiManagementServiceResource" ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": ["ApiManagementUser"], "SwaggerModelName": "SubscriptionContract", - "ResourceType": "Microsoft.ApiManagement/service/users/subscriptions", - "ResourceKey": "subscriptionId", + "ResourceType": "Microsoft.ApiManagement/service/subscriptions", + "ResourceKey": "sid", "ResourceKeySegment": "subscriptions", "IsTrackedResource": false, "IsTenantResource": false, @@ -4796,8 +3935,8 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "TenantAccessInfo": { - "Name": "TenantAccessInfo", + "AccessInformationContract": { + "Name": "AccessInformationContract", "GetOperations": [ { "Name": "Get", @@ -4841,7 +3980,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "ListByService", - "NextPageMethod": "ListByServiceNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -4872,7 +4010,7 @@ "Description": "Regenerate secondary access key" }, { - "Name": "GetSecrets", + "Name": "ListSecrets", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/listSecrets", "Method": "POST", "OperationID": "TenantAccess_ListSecrets", @@ -4881,7 +4019,7 @@ "Description": "Get tenant access information details." }, { - "Name": "RegeneratePrimaryKeyForGit", + "Name": "RegeneratePrimaryKey", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/git/regeneratePrimaryKey", "Method": "POST", "OperationID": "TenantAccessGit_RegeneratePrimaryKey", @@ -4890,25 +4028,18 @@ "Description": "Regenerate primary access key for GIT." }, { - "Name": "RegenerateSecondaryKeyForGit", + "Name": "RegenerateSecondaryKey", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/git/regenerateSecondaryKey", "Method": "POST", "OperationID": "TenantAccessGit_RegenerateSecondaryKey", "IsLongRunning": false, "PagingMetadata": null, "Description": "Regenerate secondary access key for GIT." - }, - { - "Name": "GetEntityTag", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}", - "Method": "HEAD", - "OperationID": "TenantAccess_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Tenant access metadata" } ], - "Parents": ["ApiManagementService"], + "Parents": [ + "ApiManagementServiceResource" + ], "SwaggerModelName": "AccessInformationContract", "ResourceType": "Microsoft.ApiManagement/service/tenant", "ResourceKey": "accessName", @@ -4920,8 +4051,8 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "ApiManagementUser": { - "Name": "ApiManagementUser", + "UserContract": { + "Name": "UserContract", "GetOperations": [ { "Name": "Get", @@ -4975,7 +4106,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "ListByService", - "NextPageMethod": "ListByServiceNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -4988,7 +4118,7 @@ "OperationsFromTenantExtension": [], "OtherOperations": [ { - "Name": "GenerateSsoUri", + "Name": "GenerateSsoUrl", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/generateSsoUrl", "Method": "POST", "OperationID": "User_GenerateSsoUrl", @@ -5006,53 +4136,44 @@ "Description": "Gets the Shared Access Authorization Token for the User." }, { - "Name": "GetUserGroups", + "Name": "List", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/groups", "Method": "GET", "OperationID": "UserGroup_List", "IsLongRunning": false, "PagingMetadata": { "Method": "List", - "NextPageMethod": "ListNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, "Description": "Lists all user groups." }, { - "Name": "GetUserIdentities", + "Name": "List", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/identities", "Method": "GET", "OperationID": "UserIdentities_List", "IsLongRunning": false, "PagingMetadata": { "Method": "List", - "NextPageMethod": "ListNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, "Description": "List of all user identities." }, { - "Name": "SendUserConfirmationPassword", + "Name": "Send", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/confirmations/password/send", "Method": "POST", "OperationID": "UserConfirmationPassword_Send", "IsLongRunning": false, "PagingMetadata": null, "Description": "Sends confirmation" - }, - { - "Name": "GetEntityTag", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}", - "Method": "HEAD", - "OperationID": "User_GetEntityTag", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets the entity state (Etag) version of the user specified by its identifier." } ], - "Parents": ["ApiManagementService"], + "Parents": [ + "ApiManagementServiceResource" + ], "SwaggerModelName": "UserContract", "ResourceType": "Microsoft.ApiManagement/service/users", "ResourceKey": "userId", @@ -5064,5 +4185,7 @@ "IsExtensionResource": false, "IsSingletonResource": false } - } -} + }, + "RenameMapping": {}, + "OverrideOperationName": {} +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/ApiManagementServiceResource.tsp b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/ApiManagementServiceResource.tsp index 9080132793..0946d36292 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/ApiManagementServiceResource.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/ApiManagementServiceResource.tsp @@ -206,16 +206,6 @@ interface ApiManagementServiceResources { } >; - /** - * Checks availability and correctness of a name for an API Management service. - */ - #suppress "@azure-tools/typespec-azure-core/no-operation-id" "For backward compatibility" - @operationId("ApiManagementService_CheckNameAvailability") - checkNameAvailability is checkGlobalNameAvailability< - ApiManagementServiceCheckNameAvailabilityParameters, - ApiManagementServiceNameAvailabilityResult - >; - /** * Lists a collection of apis associated with tags. */ @@ -265,134 +255,6 @@ interface ApiManagementServiceResources { ...SubscriptionIdParameter, ): ArmResponse | ErrorResponse; - /** - * Lists the developer portal's content types. Content types describe content items' properties, validation rules, and constraints. - */ - // FIXME: ContentType_ListByService could not be converted to a resource operation - #suppress "@azure-tools/typespec-azure-core/no-operation-id" "For backward compatibility" - @operationId("ContentType_ListByService") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes") - @get - listByService( - ...ApiVersionParameter, - ...ResourceGroupParameter, - - /** - * The name of the API Management service. - */ - @maxLength(50) - @minLength(1) - @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") - @path - serviceName: string, - - ...SubscriptionIdParameter, - ): ArmResponse | ErrorResponse; - - /** - * Gets the details of the developer portal's content type. Content types describe content items' properties, validation rules, and constraints. - */ - // FIXME: ContentType_Get could not be converted to a resource operation - #suppress "@azure-tools/typespec-azure-core/no-operation-id" "For backward compatibility" - @operationId("ContentType_Get") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}") - @get - get( - ...ApiVersionParameter, - ...ResourceGroupParameter, - - /** - * The name of the API Management service. - */ - @maxLength(50) - @minLength(1) - @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") - @path - serviceName: string, - - /** - * Content type identifier. - */ - @maxLength(80) - @minLength(1) - @path - contentTypeId: string, - - ...SubscriptionIdParameter, - ): ArmResponse | ErrorResponse; - - /** - * Lists developer portal's content items specified by the provided content type. - */ - // FIXME: ContentItem_ListByService could not be converted to a resource operation - #suppress "@azure-tools/typespec-azure-core/no-operation-id" "For backward compatibility" - @operationId("ContentItem_ListByService") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems") - @get - listByService( - ...ApiVersionParameter, - ...ResourceGroupParameter, - - /** - * The name of the API Management service. - */ - @maxLength(50) - @minLength(1) - @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") - @path - serviceName: string, - - /** - * Content type identifier. - */ - @maxLength(80) - @minLength(1) - @path - contentTypeId: string, - - ...SubscriptionIdParameter, - ): ArmResponse | ErrorResponse; - - /** - * Returns the developer portal's content item specified by its identifier. - */ - // FIXME: ContentItem_Get could not be converted to a resource operation - #suppress "@azure-tools/typespec-azure-core/no-operation-id" "For backward compatibility" - @operationId("ContentItem_Get") - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems/{contentItemId}") - @get - get( - ...ApiVersionParameter, - ...ResourceGroupParameter, - - /** - * The name of the API Management service. - */ - @maxLength(50) - @minLength(1) - @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") - @path - serviceName: string, - - /** - * Content type identifier. - */ - @maxLength(80) - @minLength(1) - @path - contentTypeId: string, - - /** - * Content item identifier. - */ - @maxLength(80) - @minLength(1) - @path - contentItemId: string, - - ...SubscriptionIdParameter, - ): ArmResponse | ErrorResponse; - /** * Gets all available SKU for a given API Management service */ @@ -546,7 +408,7 @@ interface ApiManagementServiceResources { serviceName: string, ...SubscriptionIdParameter, - ): ArmResponse> | ErrorResponse; + ): ArmResponse | ErrorResponse; /** * Lists a collection of products associated with tags. diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/ContentItemContract.tsp b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/ContentItemContract.tsp new file mode 100644 index 0000000000..3615c81645 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/ContentItemContract.tsp @@ -0,0 +1,98 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; +import "./ContentTypeContract.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Azure.ResourceManager.ApiManagement; +/** + * Content type contract details. + */ +@parentResource(ContentTypeContract) +model ContentItemContract + is Azure.ResourceManager.ProxyResource> { + ...ResourceNameParameter< + Resource = ContentItemContract, + KeyName = "contentItemId", + SegmentName = "contentItems", + NamePattern = "" + >; +} + +@armResourceOperations +interface ContentItemContracts { + /** + * Returns the developer portal's content item specified by its identifier. + */ + #suppress "@azure-tools/typespec-azure-core/no-operation-id" "For backward compatibility" + @operationId("ContentItem_Get") + get is ArmResourceRead; + + /** + * Returns the entity state (ETag) version of the developer portal's content item specified by its identifier. + */ + #suppress "@azure-tools/typespec-azure-core/no-operation-id" "For backward compatibility" + @head + @operationId("ContentItem_GetEntityTag") + getEntityTag( + ...ResourceInstanceParameters< + ContentItemContract, + BaseParameters + >, + ): OkResponse | ErrorResponse; + + /** + * Creates a new developer portal's content item specified by the provided content type. + */ + #suppress "@azure-tools/typespec-azure-core/no-operation-id" "For backward compatibility" + @operationId("ContentItem_CreateOrUpdate") + createOrUpdate is ArmResourceCreateOrReplaceSync< + ContentItemContract, + { + ...Azure.ResourceManager.Foundations.BaseParameters; + + /** + * ETag of the Entity. Not required when creating an entity, but required when updating an entity. + */ + @header + `If-Match`?: string; + } + >; + + /** + * Removes the specified developer portal's content item. + */ + #suppress "@azure-tools/typespec-azure-core/no-operation-id" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/no-response-body" "For backward compatibility" + @operationId("ContentItem_Delete") + delete is ArmResourceDeleteSync< + ContentItemContract, + { + ...Azure.ResourceManager.Foundations.BaseParameters; + + /** + * ETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update. + */ + @header + `If-Match`: string; + } + >; + + /** + * Lists developer portal's content items specified by the provided content type. + */ + #suppress "@azure-tools/typespec-azure-core/no-operation-id" "For backward compatibility" + @operationId("ContentItem_ListByService") + listByService is ArmResourceListByParent; +} + +@@maxLength(ContentItemContract.name, 80); +@@minLength(ContentItemContract.name, 1); +@@doc(ContentItemContract.name, "Content item identifier."); +@@doc(ContentItemContract.properties, "Properties of the content item."); diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/ContentTypeContract.tsp b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/ContentTypeContract.tsp new file mode 100644 index 0000000000..7f6bd8f960 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/ContentTypeContract.tsp @@ -0,0 +1,85 @@ +import "@azure-tools/typespec-azure-core"; +import "@azure-tools/typespec-azure-resource-manager"; +import "@typespec/openapi"; +import "@typespec/rest"; +import "./models.tsp"; +import "./ApiManagementServiceResource.tsp"; + +using TypeSpec.Rest; +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.OpenAPI; + +namespace Azure.ResourceManager.ApiManagement; +/** + * Content type contract details. + */ +@parentResource(ApiManagementServiceResource) +model ContentTypeContract + is Azure.ResourceManager.ProxyResource { + ...ResourceNameParameter< + Resource = ContentTypeContract, + KeyName = "contentTypeId", + SegmentName = "contentTypes", + NamePattern = "" + >; +} + +@armResourceOperations +interface ContentTypeContracts { + /** + * Gets the details of the developer portal's content type. Content types describe content items' properties, validation rules, and constraints. + */ + #suppress "@azure-tools/typespec-azure-core/no-operation-id" "For backward compatibility" + @operationId("ContentType_Get") + get is ArmResourceRead; + + /** + * Creates or updates the developer portal's content type. Content types describe content items' properties, validation rules, and constraints. Custom content types' identifiers need to start with the `c-` prefix. Built-in content types can't be modified. + */ + #suppress "@azure-tools/typespec-azure-core/no-operation-id" "For backward compatibility" + @operationId("ContentType_CreateOrUpdate") + createOrUpdate is ArmResourceCreateOrReplaceSync< + ContentTypeContract, + { + ...Azure.ResourceManager.Foundations.BaseParameters; + + /** + * ETag of the Entity. Not required when creating an entity, but required when updating an entity. + */ + @header + `If-Match`?: string; + } + >; + + /** + * Removes the specified developer portal's content type. Content types describe content items' properties, validation rules, and constraints. Built-in content types (with identifiers starting with the `c-` prefix) can't be removed. + */ + #suppress "@azure-tools/typespec-azure-core/no-operation-id" "For backward compatibility" + #suppress "@azure-tools/typespec-azure-core/no-response-body" "For backward compatibility" + @operationId("ContentType_Delete") + delete is ArmResourceDeleteSync< + ContentTypeContract, + { + ...Azure.ResourceManager.Foundations.BaseParameters; + + /** + * ETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update. + */ + @header + `If-Match`: string; + } + >; + + /** + * Lists the developer portal's content types. Content types describe content items' properties, validation rules, and constraints. + */ + #suppress "@azure-tools/typespec-azure-core/no-operation-id" "For backward compatibility" + @operationId("ContentType_ListByService") + listByService is ArmResourceListByParent; +} + +@@maxLength(ContentTypeContract.name, 80); +@@minLength(ContentTypeContract.name, 1); +@@doc(ContentTypeContract.name, "Content type identifier."); +@@doc(ContentTypeContract.properties, "Properties of the content type."); diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/DeletedServiceContract.tsp b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/DeletedServiceContract.tsp index e678611df5..77e32cc703 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/DeletedServiceContract.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/DeletedServiceContract.tsp @@ -43,13 +43,6 @@ interface DeletedServiceContracts { #suppress "@azure-tools/typespec-azure-core/no-response-body" "For backward compatibility" @operationId("DeletedServices_Purge") purge is ArmResourceDeleteAsync; - - /** - * Lists all soft-deleted services available for undelete for the given subscription. - */ - #suppress "@azure-tools/typespec-azure-core/no-operation-id" "For backward compatibility" - @operationId("DeletedServices_ListBySubscription") - listBySubscription is ArmListBySubscription; } @@maxLength(DeletedServiceContract.name, 50); diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/DiagnosticContractFixMe.tsp b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/DiagnosticContractFixMe.tsp new file mode 100644 index 0000000000..b312d86c1f --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/DiagnosticContractFixMe.tsp @@ -0,0 +1 @@ +// You defined multiple pathes under the model DiagnosticContract. We currently don't support it. Please fix it manually. \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/IssueContractFixMe.tsp b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/IssueContractFixMe.tsp new file mode 100644 index 0000000000..c84994d009 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/IssueContractFixMe.tsp @@ -0,0 +1 @@ +// You defined multiple pathes under the model IssueContract. We currently don't support it. Please fix it manually. \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/OpenidConnectProviderContract.tsp b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/OpenidConnectProviderContract.tsp index 229535e537..6eddd302e0 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/OpenidConnectProviderContract.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/OpenidConnectProviderContract.tsp @@ -32,20 +32,20 @@ interface OpenidConnectProviderContracts { */ #suppress "@azure-tools/typespec-azure-core/no-operation-id" "For backward compatibility" @operationId("OpenIdConnectProvider_Get") - get is ArmResourceRead< - OpenidConnectProviderContract, - { - ...Azure.ResourceManager.Foundations.BaseParameters; + get is ArmResourceRead; - /** - * Identifier of the OpenID Connect Provider. - */ - @maxLength(256) - @pattern("^[^*#&+:<>?]+$") - @path - OpenId: string; - } - >; + /** + * Gets the entity state (Etag) version of the openIdConnectProvider specified by its identifier. + */ + #suppress "@azure-tools/typespec-azure-core/no-operation-id" "For backward compatibility" + @head + @operationId("OpenIdConnectProvider_GetEntityTag") + getEntityTag( + ...ResourceInstanceParameters< + OpenidConnectProviderContract, + BaseParameters + >, + ): OkResponse | ErrorResponse; /** * Creates or updates the OpenID Connect Provider. @@ -57,14 +57,6 @@ interface OpenidConnectProviderContracts { { ...Azure.ResourceManager.Foundations.BaseParameters; - /** - * Identifier of the OpenID Connect Provider. - */ - @maxLength(256) - @pattern("^[^*#&+:<>?]+$") - @path - OpenId: string; - /** * ETag of the Entity. Not required when creating an entity, but required when updating an entity. */ @@ -85,14 +77,6 @@ interface OpenidConnectProviderContracts { { ...Azure.ResourceManager.Foundations.BaseParameters; - /** - * Identifier of the OpenID Connect Provider. - */ - @maxLength(256) - @pattern("^[^*#&+:<>?]+$") - @path - OpenId: string; - /** * ETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update. */ @@ -112,14 +96,6 @@ interface OpenidConnectProviderContracts { { ...Azure.ResourceManager.Foundations.BaseParameters; - /** - * Identifier of the OpenID Connect Provider. - */ - @maxLength(256) - @pattern("^[^*#&+:<>?]+$") - @path - OpenId: string; - /** * ETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update. */ @@ -167,18 +143,7 @@ interface OpenidConnectProviderContracts { listSecrets is ArmResourceActionSync< OpenidConnectProviderContract, void, - ClientSecretContract, - { - ...Azure.ResourceManager.Foundations.BaseParameters; - - /** - * Identifier of the OpenID Connect Provider. - */ - @maxLength(256) - @pattern("^[^*#&+:<>?]+$") - @path - OpenId: string; - } + ClientSecretContract >; } diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/PolicyContractFixMe.tsp b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/PolicyContractFixMe.tsp new file mode 100644 index 0000000000..5b75c5c07d --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/PolicyContractFixMe.tsp @@ -0,0 +1 @@ +// You defined multiple pathes under the model PolicyContract. We currently don't support it. Please fix it manually. \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/PortalDelegationSettings.tsp b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/PortalDelegationSettings.tsp index 360cffa38e..76aed8fc6d 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/PortalDelegationSettings.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/PortalDelegationSettings.tsp @@ -86,13 +86,6 @@ interface PortalDelegationSettingsOperationGroup { } >; - /** - * Lists a collection of portalsettings defined within a service instance.. - */ - #suppress "@azure-tools/typespec-azure-core/no-operation-id" "For backward compatibility" - @operationId("PortalSettings_ListByService") - listByService is ArmResourceListByParent; - /** * Gets the secret validation key of the DelegationSettings. */ diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/PortalSigninSettings.tsp b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/PortalSigninSettings.tsp index 87d7ed98bf..6414771b5e 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/PortalSigninSettings.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/PortalSigninSettings.tsp @@ -85,13 +85,6 @@ interface PortalSigninSettingsOperationGroup { `If-Match`: string; } >; - - /** - * Lists a collection of portalsettings defined within a service instance.. - */ - #suppress "@azure-tools/typespec-azure-core/no-operation-id" "For backward compatibility" - @operationId("PortalSettings_ListByService") - listByService is ArmResourceListByParent; } @@doc(PortalSigninSettings.name, ""); diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/PortalSignupSettings.tsp b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/PortalSignupSettings.tsp index 405d2f8e42..6c968ac1c0 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/PortalSignupSettings.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/PortalSignupSettings.tsp @@ -85,13 +85,6 @@ interface PortalSignupSettingsOperationGroup { `If-Match`: string; } >; - - /** - * Lists a collection of portalsettings defined within a service instance.. - */ - #suppress "@azure-tools/typespec-azure-core/no-operation-id" "For backward compatibility" - @operationId("PortalSettings_ListByService") - listByService is ArmResourceListByParent; } @@doc(PortalSignupSettings.name, ""); diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/SubscriptionContract.tsp b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/SubscriptionContract.tsp index 197afafaaa..16cf1356d4 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/SubscriptionContract.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/SubscriptionContract.tsp @@ -19,9 +19,9 @@ model SubscriptionContract is Azure.ResourceManager.ProxyResource { ...ResourceNameParameter< Resource = SubscriptionContract, - KeyName = "subscriptionId", + KeyName = "sid", SegmentName = "subscriptions", - NamePattern = "" + NamePattern = "^[^*#&+:<>?]+$" >; } @@ -195,8 +195,9 @@ interface SubscriptionContracts { >; } +@@maxLength(SubscriptionContract.name, 256); @@doc(SubscriptionContract.name, - "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." + "Subscription entity Identifier. The entity represents the association between a user and a product in API Management." ); @@doc(SubscriptionContract.properties, "Subscription contract properties."); @@encodedName(SubscriptionContracts.createOrUpdate::parameters.resource, diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/SubscriptionContractFixMe.tsp b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/SubscriptionContractFixMe.tsp new file mode 100644 index 0000000000..e99b559446 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/SubscriptionContractFixMe.tsp @@ -0,0 +1 @@ +// You defined multiple pathes under the model SubscriptionContract. We currently don't support it. Please fix it manually. \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/TagContractFixMe.tsp b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/TagContractFixMe.tsp new file mode 100644 index 0000000000..9c14942642 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/TagContractFixMe.tsp @@ -0,0 +1 @@ +// You defined multiple pathes under the model TagContract. We currently don't support it. Please fix it manually. \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/client.tsp b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/client.tsp index da7fd943e8..c850f16c95 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/client.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/client.tsp @@ -40,12 +40,6 @@ using Azure.ResourceManager.ApiManagement; #suppress "deprecated" "@flattenProperty decorator is not recommended to use." @@flattenProperty(CertificateCreateOrUpdateParameters.properties); -#suppress "deprecated" "@flattenProperty decorator is not recommended to use." -@@flattenProperty(ContentTypeContract.properties); - -#suppress "deprecated" "@flattenProperty decorator is not recommended to use." -@@flattenProperty(ContentItemContract.properties); - #suppress "deprecated" "@flattenProperty decorator is not recommended to use." @@flattenProperty(RemotePrivateEndpointConnectionWrapper.properties); @@ -193,6 +187,12 @@ using Azure.ResourceManager.ApiManagement; #suppress "deprecated" "@flattenProperty decorator is not recommended to use." @@flattenProperty(CertificateContract.properties); +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(ContentTypeContract.properties); + +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(ContentItemContract.properties); + #suppress "deprecated" "@flattenProperty decorator is not recommended to use." @@flattenProperty(DeletedServiceContract.properties); diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementService_CheckNameAvailability.json b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementService_CheckNameAvailability.json deleted file mode 100644 index a9fb6419ad..0000000000 --- a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ApiManagementService_CheckNameAvailability.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "parameters": { - "api-version": "2021-08-01", - "parameters": { - "name": "apimService1" - }, - "resourceGroupName": "rg1", - "subscriptionId": "subid" - }, - "responses": { - "200": { - "body": { - "message": "", - "nameAvailable": true, - "reason": "Valid" - } - } - }, - "operationId": "ApiManagementService_CheckNameAvailability", - "title": "ApiManagementServiceCheckNameAvailability" -} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ContentItem_CreateOrUpdate.json b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ContentItem_CreateOrUpdate.json new file mode 100644 index 0000000000..4ada8593a2 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ContentItem_CreateOrUpdate.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "api-version": "2021-08-01", + "contentItemId": "4e3cf6a5-574a-ba08-1f23-2e7a38faa6d8", + "contentTypeId": "page", + "parameters": { + "properties": { + "en_us": { + "description": "Short story about the company.", + "documentId": "contentTypes/document/contentItems/4e3cf6a5-574a-ba08-1f23-2e7a38faa6d8", + "keywords": "company, about", + "permalink": "/about", + "title": "About" + } + } + }, + "resourceGroupName": "rg1", + "serviceName": "apimService1", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "name": "4e3cf6a5-574a-ba08-1f23-2e7a38faa6d8", + "type": "Microsoft.ApiManagement/service/contentTypes/contentItems", + "id": "/contentTypes/page/contentItems/4e3cf6a5-574a-ba08-1f23-2e7a38faa6d8", + "properties": { + "en_us": { + "description": "Short story about the company.", + "documentId": "contentTypes/document/contentItems/4e3cf6a5-574a-ba08-1f23-2e7a38faa6d8", + "keywords": "company, about", + "permalink": "/about", + "title": "About" + } + } + } + }, + "201": { + "body": { + "name": "4e3cf6a5-574a-ba08-1f23-2e7a38faa6d8", + "type": "Microsoft.ApiManagement/service/contentTypes/contentItems", + "id": "/contentTypes/page/contentItems/4e3cf6a5-574a-ba08-1f23-2e7a38faa6d8", + "properties": { + "en_us": { + "description": "Short story about the company.", + "documentId": "contentTypes/document/contentItems/4e3cf6a5-574a-ba08-1f23-2e7a38faa6d8", + "keywords": "company, about", + "permalink": "/about", + "title": "About" + } + } + } + } + }, + "operationId": "ContentItem_CreateOrUpdate", + "title": "ApiManagementCreateContentTypeContentItem" +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ContentItem_Delete.json b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ContentItem_Delete.json new file mode 100644 index 0000000000..be18560f6d --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ContentItem_Delete.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "If-Match": "*", + "api-version": "2021-08-01", + "contentItemId": "4e3cf6a5-574a-ba08-1f23-2e7a38faa6d8", + "contentTypeId": "page", + "resourceGroupName": "rg1", + "serviceName": "apimService1", + "subscriptionId": "subid" + }, + "responses": { + "200": {}, + "204": {} + }, + "operationId": "ContentItem_Delete", + "title": "ApiManagementDeleteContentTypeContentItem" +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ContentItem_GetEntityTag.json b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ContentItem_GetEntityTag.json new file mode 100644 index 0000000000..53ad2794a3 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ContentItem_GetEntityTag.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "api-version": "2021-08-01", + "contentItemId": "4e3cf6a5-574a-ba08-1f23-2e7a38faa6d8", + "contentTypeId": "page", + "resourceGroupName": "rg1", + "serviceName": "apimService1", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "headers": { + "etag": "AAAAAAAAAAa=" + } + } + }, + "operationId": "ContentItem_GetEntityTag", + "title": "ApiManagementHeadContentTypeContentItem" +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ContentType_CreateOrUpdate.json b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ContentType_CreateOrUpdate.json new file mode 100644 index 0000000000..6dcfb304c8 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ContentType_CreateOrUpdate.json @@ -0,0 +1,179 @@ +{ + "parameters": { + "api-version": "2021-08-01", + "contentTypeId": "page", + "parameters": { + "properties": { + "name": "Page", + "schema": { + "additionalProperties": false, + "properties": { + "en_us": { + "type": "object", + "additionalProperties": false, + "properties": { + "description": { + "type": "string", + "description": "Page description. This property gets included in SEO attributes.", + "indexed": true, + "title": "Description" + }, + "documentId": { + "type": "string", + "description": "Reference to page content document.", + "title": "Document ID" + }, + "keywords": { + "type": "string", + "description": "Page keywords. This property gets included in SEO attributes.", + "indexed": true, + "title": "Keywords" + }, + "permalink": { + "type": "string", + "description": "Page permalink, e.g. '/about'.", + "indexed": true, + "title": "Permalink" + }, + "title": { + "type": "string", + "description": "Page title. This property gets included in SEO attributes.", + "indexed": true, + "title": "Title" + } + }, + "required": [ + "title", + "permalink", + "documentId" + ] + } + } + }, + "description": "A regular page", + "version": "1.0.0" + } + }, + "resourceGroupName": "rg1", + "serviceName": "apimService1", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "name": "page", + "type": "Microsoft.ApiManagement/service/contentTypes", + "id": "/contentTypes/page", + "properties": { + "name": "Page", + "schema": { + "additionalProperties": false, + "properties": { + "en_us": { + "type": "object", + "additionalProperties": false, + "properties": { + "description": { + "type": "string", + "description": "Page description. This property gets included in SEO attributes.", + "indexed": true, + "title": "Description" + }, + "documentId": { + "type": "string", + "description": "Reference to page content document.", + "title": "Document ID" + }, + "keywords": { + "type": "string", + "description": "Page keywords. This property gets included in SEO attributes.", + "indexed": true, + "title": "Keywords" + }, + "permalink": { + "type": "string", + "description": "Page permalink, e.g. '/about'.", + "indexed": true, + "title": "Permalink" + }, + "title": { + "type": "string", + "description": "Page title. This property gets included in SEO attributes.", + "indexed": true, + "title": "Title" + } + }, + "required": [ + "title", + "permalink", + "documentId" + ] + } + } + }, + "description": "A regular page", + "version": "1.0.0" + } + } + }, + "201": { + "body": { + "name": "page", + "type": "Microsoft.ApiManagement/service/contentTypes", + "id": "/contentTypes/page", + "properties": { + "name": "Page", + "schema": { + "additionalProperties": false, + "properties": { + "en_us": { + "type": "object", + "additionalProperties": false, + "properties": { + "description": { + "type": "string", + "description": "Page description. This property gets included in SEO attributes.", + "indexed": true, + "title": "Description" + }, + "documentId": { + "type": "string", + "description": "Reference to page content document.", + "title": "Document ID" + }, + "keywords": { + "type": "string", + "description": "Page keywords. This property gets included in SEO attributes.", + "indexed": true, + "title": "Keywords" + }, + "permalink": { + "type": "string", + "description": "Page permalink, e.g. '/about'.", + "indexed": true, + "title": "Permalink" + }, + "title": { + "type": "string", + "description": "Page title. This property gets included in SEO attributes.", + "indexed": true, + "title": "Title" + } + }, + "required": [ + "title", + "permalink", + "documentId" + ] + } + } + }, + "description": "A regular page", + "version": "1.0.0" + } + } + } + }, + "operationId": "ContentType_CreateOrUpdate", + "title": "ApiManagementCreateContentType" +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ContentType_Delete.json b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ContentType_Delete.json new file mode 100644 index 0000000000..80503e3dce --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/ContentType_Delete.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "If-Match": "*", + "api-version": "2021-08-01", + "contentTypeId": "page", + "resourceGroupName": "rg1", + "serviceName": "apimService1", + "subscriptionId": "subid" + }, + "responses": { + "200": {}, + "204": {} + }, + "operationId": "ContentType_Delete", + "title": "ApiManagementDeleteContentType" +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/DeletedServices_ListBySubscription.json b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/DeletedServices_ListBySubscription.json deleted file mode 100644 index a1488768af..0000000000 --- a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/DeletedServices_ListBySubscription.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "parameters": { - "api-version": "2021-08-01", - "subscriptionId": "subid" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "apimService3", - "type": "Microsoft.ApiManagement/deletedservices", - "id": "/subscriptions/subid/providers/Microsoft.ApiManagement/locations/westus/deletedservices/apimService3", - "location": "West US", - "properties": { - "deletionDate": "2017-05-27T15:33:55.5426123Z", - "scheduledPurgeDate": "2017-05-27T15:33:55.5426123Z", - "serviceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService3" - } - }, - { - "name": "apimService", - "type": "Microsoft.ApiManagement/deletedservices", - "id": "/subscriptions/subid/providers/Microsoft.ApiManagement/locations/westus2/deletedservices/apimService", - "location": "West US 2", - "properties": { - "deletionDate": "2017-05-27T15:33:55.5426123Z", - "scheduledPurgeDate": "2017-05-27T15:33:55.5426123Z", - "serviceId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService" - } - } - ] - } - } - }, - "operationId": "DeletedServices_ListBySubscription", - "title": "ApiManagementDeletedServicesListBySubscription" -} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/OpenIdConnectProvider_GetEntityTag.json b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/OpenIdConnectProvider_GetEntityTag.json new file mode 100644 index 0000000000..cd60156b71 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/examples/2021-08-01/OpenIdConnectProvider_GetEntityTag.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "api-version": "2021-08-01", + "opid": "templateOpenIdConnect2", + "resourceGroupName": "rg1", + "serviceName": "apimService1", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "headers": { + "etag": "AAAAAAAAAAa=" + } + } + }, + "operationId": "OpenIdConnectProvider_GetEntityTag", + "title": "ApiManagementHeadOpenIdConnectProvider" +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/main.tsp b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/main.tsp index 03e156345c..65e808e7c1 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/main.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/main.tsp @@ -13,17 +13,9 @@ import "./ApiContract.tsp"; import "./ApiReleaseContract.tsp"; import "./OperationContract.tsp"; import "./PolicyContract.tsp"; -import "./PolicyContract.tsp"; -import "./PolicyContract.tsp"; -import "./PolicyContract.tsp"; -import "./TagContract.tsp"; -import "./TagContract.tsp"; -import "./TagContract.tsp"; import "./TagContract.tsp"; import "./SchemaContract.tsp"; import "./DiagnosticContract.tsp"; -import "./DiagnosticContract.tsp"; -import "./IssueContract.tsp"; import "./IssueContract.tsp"; import "./IssueCommentContract.tsp"; import "./IssueAttachmentContract.tsp"; @@ -33,6 +25,8 @@ import "./AuthorizationServerContract.tsp"; import "./BackendContract.tsp"; import "./CacheContract.tsp"; import "./CertificateContract.tsp"; +import "./ContentTypeContract.tsp"; +import "./ContentItemContract.tsp"; import "./DeletedServiceContract.tsp"; import "./ApiManagementServiceResource.tsp"; import "./EmailTemplateContract.tsp"; @@ -55,7 +49,6 @@ import "./ProductContract.tsp"; import "./GlobalSchemaContract.tsp"; import "./TenantSettingsContract.tsp"; import "./SubscriptionContract.tsp"; -import "./SubscriptionContract.tsp"; import "./AccessInformationContract.tsp"; import "./UserContract.tsp"; import "./routes.tsp"; diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/models.tsp b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/models.tsp index ed64b9a175..5d3af8e643 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/models.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/models.tsp @@ -3354,22 +3354,6 @@ model ConnectivityIssue { context?: Record[]; } -/** - * Paged list of content types. - */ -model ContentTypeListResult is Azure.Core.Page; - -/** - * Content type contract details. - */ -model ContentTypeContract extends Resource { - /** - * Properties of the content type. - */ - @extension("x-ms-client-flatten", true) - properties?: ContentTypeContractProperties; -} - model ContentTypeContractProperties { /** * Content type identifier @@ -3398,21 +3382,9 @@ model ContentTypeContractProperties { } /** - * Paged list of content items. + * Paged deleted API Management Services List Representation. */ -model ContentItemListResult is Azure.Core.Page; - -/** - * Content type contract details. - */ -model ContentItemContract extends Resource { - /** - * Properties of the content item. - */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "For backward compatibility" - @extension("x-ms-client-flatten", true) - properties?: Record; -} +model DeletedServicesListResult is Azure.Core.Page; model DeletedServiceContractProperties { /** @@ -5406,6 +5378,21 @@ model PortalRevisionContractProperties { updatedDateTime?: utcDateTime; } +/** + * Descriptions of APIM policies. + */ +model PortalSettingsListResult { + /** + * Descriptions of APIM policies. + */ + value?: PortalSettingsContract[]; + + /** + * Total record count number. + */ + count?: int64; +} + /** * Portal Settings for the Developer Portal. */ diff --git a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/routes.tsp b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/routes.tsp index bf97eea969..62d3fc0cb0 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/routes.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-apimanagement/tsp-output/routes.tsp @@ -11,7 +11,212 @@ using Azure.ResourceManager; namespace Azure.ResourceManager.ApiManagement; +interface ApiOperations { + /** + * Gets the entity state (Etag) version of the API specified by its identifier. + */ + @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}") + @head + getEntityTag( + ...ApiVersionParameter, + ...ResourceGroupParameter, + + /** + * The name of the API Management service. + */ + @maxLength(50) + @minLength(1) + @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") + @path + serviceName: string, + + /** + * API revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number. + */ + @maxLength(256) + @minLength(1) + @pattern("^[^*#&+:<>?]+$") + @path + apiId: string, + + ...SubscriptionIdParameter, + ): ArmResponse | ErrorResponse; +} + +interface ApiReleaseOperations { + /** + * Returns the etag of an API release. + */ + @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}") + @head + getEntityTag( + ...ApiVersionParameter, + ...ResourceGroupParameter, + + /** + * The name of the API Management service. + */ + @maxLength(50) + @minLength(1) + @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") + @path + serviceName: string, + + /** + * API identifier. Must be unique in the current API Management service instance. + */ + @maxLength(80) + @minLength(1) + @path + apiId: string, + + /** + * Release identifier within an API. Must be unique in the current API Management service instance. + */ + @maxLength(80) + @minLength(1) + @pattern("^[^*#&+:<>?]+$") + @path + releaseId: string, + + ...SubscriptionIdParameter, + ): ArmResponse | ErrorResponse; +} + +interface ApiOperationOperations { + /** + * Gets the entity state (Etag) version of the API operation specified by its identifier. + */ + @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}") + @head + getEntityTag( + ...ApiVersionParameter, + ...ResourceGroupParameter, + + /** + * The name of the API Management service. + */ + @maxLength(50) + @minLength(1) + @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") + @path + serviceName: string, + + /** + * API revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number. + */ + @maxLength(256) + @minLength(1) + @pattern("^[^*#&+:<>?]+$") + @path + apiId: string, + + /** + * Operation identifier within an API. Must be unique in the current API Management service instance. + */ + @maxLength(80) + @minLength(1) + @path + operationId: string, + + ...SubscriptionIdParameter, + ): ArmResponse | ErrorResponse; +} + +interface ApiOperationPolicyOperations { + /** + * Gets the entity state (Etag) version of the API operation policy specified by its identifier. + */ + @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies/{policyId}") + @head + getEntityTag( + ...ApiVersionParameter, + ...ResourceGroupParameter, + + /** + * The name of the API Management service. + */ + @maxLength(50) + @minLength(1) + @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") + @path + serviceName: string, + + /** + * API revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number. + */ + @maxLength(256) + @minLength(1) + @pattern("^[^*#&+:<>?]+$") + @path + apiId: string, + + /** + * Operation identifier within an API. Must be unique in the current API Management service instance. + */ + @maxLength(80) + @minLength(1) + @path + operationId: string, + + /** + * The identifier of the Policy. + */ + @path + policyId: PolicyIdName, + + ...SubscriptionIdParameter, + ): ArmResponse | ErrorResponse; +} + interface TagOperations { + /** + * Gets the entity state version of the tag specified by its identifier. + */ + @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}") + @head + getEntityStateByOperation( + ...ApiVersionParameter, + ...ResourceGroupParameter, + + /** + * The name of the API Management service. + */ + @maxLength(50) + @minLength(1) + @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") + @path + serviceName: string, + + /** + * API revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number. + */ + @maxLength(256) + @minLength(1) + @pattern("^[^*#&+:<>?]+$") + @path + apiId: string, + + /** + * Operation identifier within an API. Must be unique in the current API Management service instance. + */ + @maxLength(80) + @minLength(1) + @path + operationId: string, + + /** + * Tag identifier. Must be unique in the current API Management service instance. + */ + @maxLength(80) + @minLength(1) + @pattern("^[^*#&+:<>?]+$") + @path + tagId: string, + + ...SubscriptionIdParameter, + ): ArmResponse | ErrorResponse; + /** * Lists all Tags associated with the API. */ @@ -850,13 +1055,13 @@ interface ApiPolicyOperations { ): ArmResponse | ErrorResponse; } -interface ApiExportOperations { +interface ApiSchemaOperations { /** - * Gets the details of the API specified by its identifier in the format specified to the Storage Blob with SAS Key valid for 5 minutes. + * Gets the entity state (Etag) version of the schema specified by its identifier. */ - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}") - @get - get( + @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}") + @head + getEntityTag( ...ApiVersionParameter, ...ResourceGroupParameter, @@ -879,28 +1084,24 @@ interface ApiExportOperations { apiId: string, /** - * Format in which to export the Api Details to the Storage Blob with Sas Key valid for 5 minutes. - */ - @query("format") - format: ExportFormat, - - /** - * Query parameter required to export the API details. + * Schema id identifier. Must be unique in the current API Management service instance. */ - @query("export") - export: ExportApi, + @maxLength(80) + @minLength(1) + @path + schemaId: string, ...SubscriptionIdParameter, - ): ArmResponse | ErrorResponse; + ): ArmResponse | ErrorResponse; } -interface DiagnosticOperations { +interface ApiDiagnosticOperations { /** - * Lists all diagnostics of the API Management service instance. + * Gets the entity state (Etag) version of the Diagnostic for an API specified by its identifier. */ - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics") - @get - listByService( + @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}") + @head + getEntityTag( ...ApiVersionParameter, ...ResourceGroupParameter, @@ -914,31 +1115,31 @@ interface DiagnosticOperations { serviceName: string, /** - * | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
- */ - @query("$filter") - $filter?: string, - - /** - * Number of records to return. + * API identifier. Must be unique in the current API Management service instance. */ - @minValue(1) - @query("$top") - $top?: int32, + @maxLength(80) + @minLength(1) + @path + apiId: string, /** - * Number of records to skip. + * Diagnostic identifier. Must be unique in the current API Management service instance. */ - @query("$skip") - $skip?: int32, + @maxLength(80) + @minLength(1) + @pattern("^[^*#&+:<>?]+$") + @path + diagnosticId: string, ...SubscriptionIdParameter, - ): ArmResponse> | ErrorResponse; + ): ArmResponse | ErrorResponse; +} +interface ApiIssueOperations { /** - * Gets the entity state (Etag) version of the Diagnostic specified by its identifier. + * Gets the entity state (Etag) version of the Issue for an API specified by its identifier. */ - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}") + @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}") @head getEntityTag( ...ApiVersionParameter, @@ -954,24 +1155,597 @@ interface DiagnosticOperations { serviceName: string, /** - * Diagnostic identifier. Must be unique in the current API Management service instance. + * API identifier. Must be unique in the current API Management service instance. */ @maxLength(80) @minLength(1) + @path + apiId: string, + + /** + * Issue identifier. Must be unique in the current API Management service instance. + */ + @maxLength(256) + @minLength(1) @pattern("^[^*#&+:<>?]+$") @path - diagnosticId: string, + issueId: string, ...SubscriptionIdParameter, ): ArmResponse | ErrorResponse; +} +interface ApiIssueCommentOperations { /** - * Gets the details of the Diagnostic specified by its identifier. + * Gets the entity state (Etag) version of the issue Comment for an API specified by its identifier. */ - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}") - @get - get( - ...ApiVersionParameter, + @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}") + @head + getEntityTag( + ...ApiVersionParameter, + ...ResourceGroupParameter, + + /** + * The name of the API Management service. + */ + @maxLength(50) + @minLength(1) + @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") + @path + serviceName: string, + + /** + * API identifier. Must be unique in the current API Management service instance. + */ + @maxLength(80) + @minLength(1) + @path + apiId: string, + + /** + * Issue identifier. Must be unique in the current API Management service instance. + */ + @maxLength(256) + @minLength(1) + @pattern("^[^*#&+:<>?]+$") + @path + issueId: string, + + /** + * Comment identifier within an Issue. Must be unique in the current Issue. + */ + @maxLength(256) + @minLength(1) + @pattern("^[^*#&+:<>?]+$") + @path + commentId: string, + + ...SubscriptionIdParameter, + ): ArmResponse | ErrorResponse; +} + +interface ApiIssueAttachmentOperations { + /** + * Gets the entity state (Etag) version of the issue Attachment for an API specified by its identifier. + */ + @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}") + @head + getEntityTag( + ...ApiVersionParameter, + ...ResourceGroupParameter, + + /** + * The name of the API Management service. + */ + @maxLength(50) + @minLength(1) + @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") + @path + serviceName: string, + + /** + * API identifier. Must be unique in the current API Management service instance. + */ + @maxLength(80) + @minLength(1) + @path + apiId: string, + + /** + * Issue identifier. Must be unique in the current API Management service instance. + */ + @maxLength(256) + @minLength(1) + @pattern("^[^*#&+:<>?]+$") + @path + issueId: string, + + /** + * Attachment identifier within an Issue. Must be unique in the current Issue. + */ + @maxLength(256) + @minLength(1) + @pattern("^[^*#&+:<>?]+$") + @path + attachmentId: string, + + ...SubscriptionIdParameter, + ): ArmResponse | ErrorResponse; +} + +interface ApiTagDescriptionOperations { + /** + * Gets the entity state version of the tag specified by its identifier. + */ + @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagDescriptionId}") + @head + getEntityTag( + ...ApiVersionParameter, + ...ResourceGroupParameter, + + /** + * The name of the API Management service. + */ + @maxLength(50) + @minLength(1) + @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") + @path + serviceName: string, + + /** + * API revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number. + */ + @maxLength(256) + @minLength(1) + @pattern("^[^*#&+:<>?]+$") + @path + apiId: string, + + /** + * Tag description identifier. Used when creating tagDescription for API/Tag association. Based on API and Tag names. + */ + @maxLength(80) + @minLength(1) + @pattern("^[^*#&+:<>?]+$") + @path + tagDescriptionId: string, + + ...SubscriptionIdParameter, + ): ArmResponse | ErrorResponse; +} + +interface ApiExportOperations { + /** + * Gets the details of the API specified by its identifier in the format specified to the Storage Blob with SAS Key valid for 5 minutes. + */ + @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}") + @get + get( + ...ApiVersionParameter, + ...ResourceGroupParameter, + + /** + * The name of the API Management service. + */ + @maxLength(50) + @minLength(1) + @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") + @path + serviceName: string, + + /** + * API revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number. + */ + @maxLength(256) + @minLength(1) + @pattern("^[^*#&+:<>?]+$") + @path + apiId: string, + + /** + * Format in which to export the Api Details to the Storage Blob with Sas Key valid for 5 minutes. + */ + @query("format") + format: ExportFormat, + + /** + * Query parameter required to export the API details. + */ + @query("export") + export: ExportApi, + + ...SubscriptionIdParameter, + ): ArmResponse | ErrorResponse; +} + +interface ApiVersionSetOperations { + /** + * Gets the entity state (Etag) version of the Api Version Set specified by its identifier. + */ + @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}") + @head + getEntityTag( + ...ApiVersionParameter, + ...ResourceGroupParameter, + + /** + * The name of the API Management service. + */ + @maxLength(50) + @minLength(1) + @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") + @path + serviceName: string, + + /** + * Api Version Set identifier. Must be unique in the current API Management service instance. + */ + @maxLength(80) + @minLength(1) + @pattern("^[^*#&+:<>?]+$") + @path + versionSetId: string, + + ...SubscriptionIdParameter, + ): ArmResponse | ErrorResponse; +} + +interface AuthorizationServerOperations { + /** + * Gets the entity state (Etag) version of the authorizationServer specified by its identifier. + */ + @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}") + @head + getEntityTag( + ...ApiVersionParameter, + ...ResourceGroupParameter, + + /** + * The name of the API Management service. + */ + @maxLength(50) + @minLength(1) + @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") + @path + serviceName: string, + + /** + * Identifier of the authorization server. + */ + @maxLength(80) + @minLength(1) + @pattern("^[^*#&+:<>?]+$") + @path + authsid: string, + + ...SubscriptionIdParameter, + ): ArmResponse | ErrorResponse; +} + +interface BackendOperations { + /** + * Gets the entity state (Etag) version of the backend specified by its identifier. + */ + @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}") + @head + getEntityTag( + ...ApiVersionParameter, + ...ResourceGroupParameter, + + /** + * The name of the API Management service. + */ + @maxLength(50) + @minLength(1) + @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") + @path + serviceName: string, + + /** + * Identifier of the Backend entity. Must be unique in the current API Management service instance. + */ + @maxLength(80) + @minLength(1) + @path + backendId: string, + + ...SubscriptionIdParameter, + ): ArmResponse | ErrorResponse; +} + +interface CacheOperations { + /** + * Gets the entity state (Etag) version of the Cache specified by its identifier. + */ + @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}") + @head + getEntityTag( + ...ApiVersionParameter, + ...ResourceGroupParameter, + + /** + * The name of the API Management service. + */ + @maxLength(50) + @minLength(1) + @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") + @path + serviceName: string, + + /** + * Identifier of the Cache entity. Cache identifier (should be either 'default' or valid Azure region identifier). + */ + @maxLength(80) + @minLength(1) + @pattern("^[^*#&+:<>?]+$") + @path + cacheId: string, + + ...SubscriptionIdParameter, + ): ArmResponse | ErrorResponse; +} + +interface CertificateOperations { + /** + * Gets the entity state (Etag) version of the certificate specified by its identifier. + */ + @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}") + @head + getEntityTag( + ...ApiVersionParameter, + ...ResourceGroupParameter, + + /** + * The name of the API Management service. + */ + @maxLength(50) + @minLength(1) + @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") + @path + serviceName: string, + + /** + * Identifier of the certificate entity. Must be unique in the current API Management service instance. + */ + @maxLength(80) + @minLength(1) + @pattern("^[^*#&+:<>?]+$") + @path + certificateId: string, + + ...SubscriptionIdParameter, + ): ArmResponse | ErrorResponse; +} + +interface ContentItemOperations { + /** + * Returns the entity state (ETag) version of the developer portal's content item specified by its identifier. + */ + @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems/{contentItemId}") + @head + getEntityTag( + ...ApiVersionParameter, + ...ResourceGroupParameter, + + /** + * The name of the API Management service. + */ + @maxLength(50) + @minLength(1) + @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") + @path + serviceName: string, + + /** + * Content type identifier. + */ + @maxLength(80) + @minLength(1) + @path + contentTypeId: string, + + /** + * Content item identifier. + */ + @maxLength(80) + @minLength(1) + @path + contentItemId: string, + + ...SubscriptionIdParameter, + ): ArmResponse | ErrorResponse; +} + +interface DeletedServicesOperations { + /** + * Lists all soft-deleted services available for undelete for the given subscription. + */ + @route("/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/deletedservices") + @get + listBySubscription( + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ): ArmResponse | ErrorResponse; +} + +interface ApiManagementServiceOperations { + /** + * Checks availability and correctness of a name for an API Management service. + */ + @route("/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/checkNameAvailability") + @post + checkNameAvailability( + ...ApiVersionParameter, + ...SubscriptionIdParameter, + + /** + * Parameters supplied to the CheckNameAvailability operation. + */ + @body + parameters: ApiManagementServiceCheckNameAvailabilityParameters, + ): ArmResponse | ErrorResponse; + + /** + * Get the custom domain ownership identifier for an API Management service. + */ + @route("/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/getDomainOwnershipIdentifier") + @post + getDomainOwnershipIdentifier( + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ): ArmResponse | ErrorResponse; +} + +interface DiagnosticOperations { + /** + * Lists all diagnostics of the API Management service instance. + */ + @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics") + @get + listByService( + ...ApiVersionParameter, + ...ResourceGroupParameter, + + /** + * The name of the API Management service. + */ + @maxLength(50) + @minLength(1) + @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") + @path + serviceName: string, + + /** + * | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
+ */ + @query("$filter") + $filter?: string, + + /** + * Number of records to return. + */ + @minValue(1) + @query("$top") + $top?: int32, + + /** + * Number of records to skip. + */ + @query("$skip") + $skip?: int32, + + ...SubscriptionIdParameter, + ): ArmResponse> | ErrorResponse; + + /** + * Gets the entity state (Etag) version of the Diagnostic specified by its identifier. + */ + @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}") + @head + getEntityTag( + ...ApiVersionParameter, + ...ResourceGroupParameter, + + /** + * The name of the API Management service. + */ + @maxLength(50) + @minLength(1) + @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") + @path + serviceName: string, + + /** + * Diagnostic identifier. Must be unique in the current API Management service instance. + */ + @maxLength(80) + @minLength(1) + @pattern("^[^*#&+:<>?]+$") + @path + diagnosticId: string, + + ...SubscriptionIdParameter, + ): ArmResponse | ErrorResponse; + + /** + * Gets the details of the Diagnostic specified by its identifier. + */ + @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}") + @get + get( + ...ApiVersionParameter, + ...ResourceGroupParameter, + + /** + * The name of the API Management service. + */ + @maxLength(50) + @minLength(1) + @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") + @path + serviceName: string, + + /** + * Diagnostic identifier. Must be unique in the current API Management service instance. + */ + @maxLength(80) + @minLength(1) + @pattern("^[^*#&+:<>?]+$") + @path + diagnosticId: string, + + ...SubscriptionIdParameter, + ): ArmResponse | ErrorResponse; + + /** + * Creates a new Diagnostic or updates an existing one. + */ + @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}") + @put + createOrUpdate( + ...ApiVersionParameter, + ...ResourceGroupParameter, + + /** + * The name of the API Management service. + */ + @maxLength(50) + @minLength(1) + @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") + @path + serviceName: string, + + /** + * Diagnostic identifier. Must be unique in the current API Management service instance. + */ + @maxLength(80) + @minLength(1) + @pattern("^[^*#&+:<>?]+$") + @path + diagnosticId: string, + + /** + * ETag of the Entity. Not required when creating an entity, but required when updating an entity. + */ + @header + `If-Match`?: string, + + ...SubscriptionIdParameter, + + /** + * Create parameters. + */ + @body + parameters: DiagnosticContract, + ): ArmResponse | ErrorResponse; + + /** + * Updates the details of the Diagnostic specified by its identifier. + */ + @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}") + @patch + update( + ...ApiVersionParameter, ...ResourceGroupParameter, /** @@ -992,15 +1766,27 @@ interface DiagnosticOperations { @path diagnosticId: string, + /** + * ETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update. + */ + @header + `If-Match`: string, + ...SubscriptionIdParameter, + + /** + * Diagnostic Update parameters. + */ + @body + parameters: DiagnosticContract, ): ArmResponse | ErrorResponse; /** - * Creates a new Diagnostic or updates an existing one. + * Deletes the specified Diagnostic. */ @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}") - @put - createOrUpdate( + @delete + delete( ...ApiVersionParameter, ...ResourceGroupParameter, @@ -1023,26 +1809,51 @@ interface DiagnosticOperations { diagnosticId: string, /** - * ETag of the Entity. Not required when creating an entity, but required when updating an entity. + * ETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update. */ @header - `If-Match`?: string, + `If-Match`: string, ...SubscriptionIdParameter, + ): ArmResponse | ErrorResponse; +} + +interface EmailTemplateOperations { + /** + * Gets the entity state (Etag) version of the email template specified by its identifier. + */ + @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates/{templateName}") + @head + getEntityTag( + ...ApiVersionParameter, + ...ResourceGroupParameter, /** - * Create parameters. + * The name of the API Management service. */ - @body - parameters: DiagnosticContract, - ): ArmResponse | ErrorResponse; + @maxLength(50) + @minLength(1) + @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") + @path + serviceName: string, + + /** + * Email Template Name Identifier. + */ + @path + templateName: TemplateName, + + ...SubscriptionIdParameter, + ): ArmResponse | ErrorResponse; +} +interface GatewayOperations { /** - * Updates the details of the Diagnostic specified by its identifier. + * Gets the entity state (Etag) version of the Gateway specified by its identifier. */ - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}") - @patch - update( + @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}") + @head + getEntityTag( ...ApiVersionParameter, ...ResourceGroupParameter, @@ -1056,35 +1867,63 @@ interface DiagnosticOperations { serviceName: string, /** - * Diagnostic identifier. Must be unique in the current API Management service instance. + * Gateway entity identifier. Must be unique in the current API Management service instance. Must not have value 'managed' */ @maxLength(80) @minLength(1) - @pattern("^[^*#&+:<>?]+$") @path - diagnosticId: string, + gatewayId: string, + + ...SubscriptionIdParameter, + ): ArmResponse | ErrorResponse; +} + +interface GatewayHostnameConfigurationOperations { + /** + * Checks that hostname configuration entity specified by identifier exists for specified Gateway entity. + */ + @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/hostnameConfigurations/{hcId}") + @head + getEntityTag( + ...ApiVersionParameter, + ...ResourceGroupParameter, /** - * ETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update. + * The name of the API Management service. */ - @header - `If-Match`: string, + @maxLength(50) + @minLength(1) + @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") + @path + serviceName: string, - ...SubscriptionIdParameter, + /** + * Gateway entity identifier. Must be unique in the current API Management service instance. Must not have value 'managed' + */ + @maxLength(80) + @minLength(1) + @path + gatewayId: string, /** - * Diagnostic Update parameters. + * Gateway hostname configuration identifier. Must be unique in the scope of parent Gateway entity. */ - @body - parameters: DiagnosticContract, - ): ArmResponse | ErrorResponse; + @maxLength(80) + @minLength(1) + @path + hcId: string, + ...SubscriptionIdParameter, + ): ArmResponse | ErrorResponse; +} + +interface GatewayCertificateAuthorityOperations { /** - * Deletes the specified Diagnostic. + * Checks if Certificate entity is assigned to Gateway entity as Certificate Authority. */ - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}") - @delete - delete( + @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/certificateAuthorities/{certificateId}") + @head + getEntityTag( ...ApiVersionParameter, ...ResourceGroupParameter, @@ -1098,19 +1937,81 @@ interface DiagnosticOperations { serviceName: string, /** - * Diagnostic identifier. Must be unique in the current API Management service instance. + * Gateway entity identifier. Must be unique in the current API Management service instance. Must not have value 'managed' + */ + @maxLength(80) + @minLength(1) + @path + gatewayId: string, + + /** + * Identifier of the certificate entity. Must be unique in the current API Management service instance. */ @maxLength(80) @minLength(1) @pattern("^[^*#&+:<>?]+$") @path - diagnosticId: string, + certificateId: string, + + ...SubscriptionIdParameter, + ): ArmResponse | ErrorResponse; +} + +interface GroupOperations { + /** + * Gets the entity state (Etag) version of the group specified by its identifier. + */ + @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}") + @head + getEntityTag( + ...ApiVersionParameter, + ...ResourceGroupParameter, /** - * ETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update. + * The name of the API Management service. */ - @header - `If-Match`: string, + @maxLength(50) + @minLength(1) + @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") + @path + serviceName: string, + + /** + * Group identifier. Must be unique in the current API Management service instance. + */ + @maxLength(256) + @minLength(1) + @path + groupId: string, + + ...SubscriptionIdParameter, + ): ArmResponse | ErrorResponse; +} + +interface IdentityProviderOperations { + /** + * Gets the entity state (Etag) version of the identityProvider specified by its identifier. + */ + @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}") + @head + getEntityTag( + ...ApiVersionParameter, + ...ResourceGroupParameter, + + /** + * The name of the API Management service. + */ + @maxLength(50) + @minLength(1) + @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") + @path + serviceName: string, + + /** + * Identity Provider Type identifier. + */ + @path + identityProviderName: IdentityProviderType, ...SubscriptionIdParameter, ): ArmResponse | ErrorResponse; @@ -1136,33 +2037,127 @@ interface IssueOperations { serviceName: string, /** - * | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| apiId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| title | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| authorName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
- */ - @query("$filter") - $filter?: string, - - /** - * Number of records to return. - */ - @minValue(1) - @query("$top") - $top?: int32, - - /** - * Number of records to skip. + * | Field | Usage | Supported operators | Supported functions |
|-------------|-------------|-------------|-------------|
| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| apiId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| title | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| description | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| authorName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| state | filter | eq | |
+ */ + @query("$filter") + $filter?: string, + + /** + * Number of records to return. + */ + @minValue(1) + @query("$top") + $top?: int32, + + /** + * Number of records to skip. + */ + @query("$skip") + $skip?: int32, + + ...SubscriptionIdParameter, + ): ArmResponse> | ErrorResponse; + + /** + * Gets API Management issue details + */ + @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/issues/{issueId}") + @get + get( + ...ApiVersionParameter, + ...ResourceGroupParameter, + + /** + * The name of the API Management service. + */ + @maxLength(50) + @minLength(1) + @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") + @path + serviceName: string, + + /** + * Issue identifier. Must be unique in the current API Management service instance. + */ + @maxLength(256) + @minLength(1) + @pattern("^[^*#&+:<>?]+$") + @path + issueId: string, + + ...SubscriptionIdParameter, + ): ArmResponse | ErrorResponse; +} + +interface LoggerOperations { + /** + * Gets the entity state (Etag) version of the logger specified by its identifier. + */ + @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerId}") + @head + getEntityTag( + ...ApiVersionParameter, + ...ResourceGroupParameter, + + /** + * The name of the API Management service. + */ + @maxLength(50) + @minLength(1) + @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") + @path + serviceName: string, + + /** + * Logger identifier. Must be unique in the API Management service instance. + */ + @maxLength(256) + @pattern("^[^*#&+:<>?]+$") + @path + loggerId: string, + + ...SubscriptionIdParameter, + ): ArmResponse | ErrorResponse; +} + +interface NamedValueOperations { + /** + * Gets the entity state (Etag) version of the named value specified by its identifier. + */ + @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}") + @head + getEntityTag( + ...ApiVersionParameter, + ...ResourceGroupParameter, + + /** + * The name of the API Management service. + */ + @maxLength(50) + @minLength(1) + @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") + @path + serviceName: string, + + /** + * Identifier of the NamedValue. */ - @query("$skip") - $skip?: int32, + @maxLength(256) + @pattern("^[^*#&+:<>?]+$") + @path + namedValueId: string, ...SubscriptionIdParameter, - ): ArmResponse> | ErrorResponse; + ): ArmResponse | ErrorResponse; +} +interface OpenIdConnectProviderOperations { /** - * Gets API Management issue details + * Gets the entity state (Etag) version of the openIdConnectProvider specified by its identifier. */ - @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/issues/{issueId}") - @get - get( + @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}") + @head + getEntityTag( ...ApiVersionParameter, ...ResourceGroupParameter, @@ -1176,16 +2171,15 @@ interface IssueOperations { serviceName: string, /** - * Issue identifier. Must be unique in the current API Management service instance. + * Identifier of the OpenID Connect Provider. */ @maxLength(256) - @minLength(1) @pattern("^[^*#&+:<>?]+$") @path - issueId: string, + OpenId: string, ...SubscriptionIdParameter, - ): ArmResponse | ErrorResponse; + ): ArmResponse | ErrorResponse; } interface PolicyOperations { @@ -1343,6 +2337,137 @@ interface PolicyOperations { ): ArmResponse | ErrorResponse; } +interface PortalRevisionOperations { + /** + * Gets the developer portal revision specified by its identifier. + */ + @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalRevisions/{portalRevisionId}") + @head + getEntityTag( + ...ApiVersionParameter, + ...ResourceGroupParameter, + + /** + * The name of the API Management service. + */ + @maxLength(50) + @minLength(1) + @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") + @path + serviceName: string, + + /** + * Portal revision identifier. Must be unique in the current API Management service instance. + */ + @maxLength(256) + @minLength(1) + @path + portalRevisionId: string, + + ...SubscriptionIdParameter, + ): ArmResponse | ErrorResponse; +} + +interface SignInSettingsOperations { + /** + * Gets the entity state (Etag) version of the SignInSettings. + */ + @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signin") + @head + getEntityTag( + ...ApiVersionParameter, + ...ResourceGroupParameter, + + /** + * The name of the API Management service. + */ + @maxLength(50) + @minLength(1) + @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") + @path + serviceName: string, + + ...SubscriptionIdParameter, + ): ArmResponse | ErrorResponse; +} + +interface SignUpSettingsOperations { + /** + * Gets the entity state (Etag) version of the SignUpSettings. + */ + @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signup") + @head + getEntityTag( + ...ApiVersionParameter, + ...ResourceGroupParameter, + + /** + * The name of the API Management service. + */ + @maxLength(50) + @minLength(1) + @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") + @path + serviceName: string, + + ...SubscriptionIdParameter, + ): ArmResponse | ErrorResponse; +} + +interface DelegationSettingsOperations { + /** + * Gets the entity state (Etag) version of the DelegationSettings. + */ + @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/delegation") + @head + getEntityTag( + ...ApiVersionParameter, + ...ResourceGroupParameter, + + /** + * The name of the API Management service. + */ + @maxLength(50) + @minLength(1) + @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") + @path + serviceName: string, + + ...SubscriptionIdParameter, + ): ArmResponse | ErrorResponse; +} + +interface ProductOperations { + /** + * Gets the entity state (Etag) version of the product specified by its identifier. + */ + @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}") + @head + getEntityTag( + ...ApiVersionParameter, + ...ResourceGroupParameter, + + /** + * The name of the API Management service. + */ + @maxLength(50) + @minLength(1) + @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") + @path + serviceName: string, + + /** + * Product identifier. Must be unique in the current API Management service instance. + */ + @maxLength(256) + @minLength(1) + @path + productId: string, + + ...SubscriptionIdParameter, + ): ArmResponse | ErrorResponse; +} + interface ProductPolicyOperations { /** * Get the policy configuration at the Product level. @@ -1538,6 +2663,37 @@ interface ProductPolicyOperations { ): ArmResponse | ErrorResponse; } +interface GlobalSchemaOperations { + /** + * Gets the entity state (Etag) version of the Schema specified by its identifier. + */ + @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/schemas/{schemaId}") + @head + getEntityTag( + ...ApiVersionParameter, + ...ResourceGroupParameter, + + /** + * The name of the API Management service. + */ + @maxLength(50) + @minLength(1) + @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") + @path + serviceName: string, + + /** + * Schema id identifier. Must be unique in the current API Management service instance. + */ + @maxLength(80) + @minLength(1) + @path + schemaId: string, + + ...SubscriptionIdParameter, + ): ArmResponse | ErrorResponse; +} + interface ApiManagementSkusOperations { /** * Gets the list of Microsoft.ApiManagement SKUs available for your Subscription. @@ -1550,6 +2706,97 @@ interface ApiManagementSkusOperations { ): ArmResponse | ErrorResponse; } +interface SubscriptionOperations { + /** + * Gets the entity state (Etag) version of the apimanagement subscription specified by its identifier. + */ + @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}") + @head + getEntityTag( + ...ApiVersionParameter, + ...ResourceGroupParameter, + + /** + * The name of the API Management service. + */ + @maxLength(50) + @minLength(1) + @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") + @path + serviceName: string, + + /** + * Subscription entity Identifier. The entity represents the association between a user and a product in API Management. + */ + @maxLength(256) + @pattern("^[^*#&+:<>?]+$") + @path + sid: string, + + ...SubscriptionIdParameter, + ): ArmResponse | ErrorResponse; +} + +interface TenantAccessOperations { + /** + * Tenant access metadata + */ + @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}") + @head + getEntityTag( + ...ApiVersionParameter, + ...ResourceGroupParameter, + + /** + * The name of the API Management service. + */ + @maxLength(50) + @minLength(1) + @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") + @path + serviceName: string, + + ...SubscriptionIdParameter, + + /** + * The identifier of the Access configuration. + */ + @path + accessName: AccessIdName, + ): ArmResponse | ErrorResponse; +} + +interface UserOperations { + /** + * Gets the entity state (Etag) version of the user specified by its identifier. + */ + @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}") + @head + getEntityTag( + ...ApiVersionParameter, + ...ResourceGroupParameter, + + /** + * The name of the API Management service. + */ + @maxLength(50) + @minLength(1) + @pattern("^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$") + @path + serviceName: string, + + /** + * User identifier. Must be unique in the current API Management service instance. + */ + @maxLength(80) + @minLength(1) + @path + userId: string, + + ...SubscriptionIdParameter, + ): ArmResponse | ErrorResponse; +} + interface UserSubscriptionOperations { /** * Lists the collection of subscriptions of the specified user. diff --git a/packages/extensions/openapi-to-typespec/test/arm-authorization/tsp-output/examples/2015-07-01/DenyAssignments_ListForScope.json b/packages/extensions/openapi-to-typespec/test/arm-authorization/tsp-output/examples/2015-07-01/DenyAssignments_ListForScope.json deleted file mode 100644 index f824f0589d..0000000000 --- a/packages/extensions/openapi-to-typespec/test/arm-authorization/tsp-output/examples/2015-07-01/DenyAssignments_ListForScope.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "parameters": { - "api-version": "2022-04-01", - "scope": "subscriptions/subId" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "denyAssignmentId", - "type": "Microsoft.Authorization/denyAssignments", - "id": "/subscriptions/subId/providers/Microsoft.Authorization/denyAssignments/denyAssignmentId", - "properties": { - "description": "Deny assignment description", - "denyAssignmentName": "Deny assignment name", - "doNotApplyToChildScopes": false, - "excludePrincipals": [ - { - "type": "principalType2", - "id": "principalId2" - } - ], - "isSystemProtected": true, - "permissions": [ - { - "actions": [ - "action" - ], - "dataActions": [ - "action" - ], - "notActions": [], - "notDataActions": [] - } - ], - "principals": [ - { - "type": "principalType1", - "id": "principalId1" - } - ], - "scope": "/subscriptions/subId" - } - } - ] - } - } - }, - "operationId": "DenyAssignments_ListForScope", - "title": "List deny assignments for scope" -} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-compute/resources.json b/packages/extensions/openapi-to-typespec/test/arm-compute/resources.json index aba6342de1..db533e94cb 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-compute/resources.json +++ b/packages/extensions/openapi-to-typespec/test/arm-compute/resources.json @@ -5,7 +5,7 @@ "GetOperations": [ { "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", "Method": "GET", "OperationID": "VirtualMachineScaleSets_Get", "IsLongRunning": false, @@ -16,7 +16,7 @@ "CreateOperations": [ { "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", "Method": "PUT", "OperationID": "VirtualMachineScaleSets_CreateOrUpdate", "IsLongRunning": true, @@ -27,7 +27,7 @@ "UpdateOperations": [ { "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", "Method": "PATCH", "OperationID": "VirtualMachineScaleSets_Update", "IsLongRunning": true, @@ -38,7 +38,7 @@ "DeleteOperations": [ { "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", "Method": "DELETE", "OperationID": "VirtualMachineScaleSets_Delete", "IsLongRunning": true, @@ -55,7 +55,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "List", - "NextPageMethod": "ListNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -65,28 +64,13 @@ "OperationsFromResourceGroupExtension": [], "OperationsFromSubscriptionExtension": [ { - "Name": "GetVirtualMachineScaleSetsByLocation", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/virtualMachineScaleSets", - "Method": "GET", - "OperationID": "VirtualMachineScaleSets_ListByLocation", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByLocation", - "NextPageMethod": "ListByLocationNextPage", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Gets all the VM scale sets under the specified subscription for the specified location." - }, - { - "Name": "GetVirtualMachineScaleSets", + "Name": "_", "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/virtualMachineScaleSets", "Method": "GET", "OperationID": "VirtualMachineScaleSets_ListAll", "IsLongRunning": false, "PagingMetadata": { "Method": "ListAll", - "NextPageMethod": "ListAllNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -98,7 +82,7 @@ "OtherOperations": [ { "Name": "Deallocate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/deallocate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/deallocate", "Method": "POST", "OperationID": "VirtualMachineScaleSets_Deallocate", "IsLongRunning": true, @@ -107,7 +91,7 @@ }, { "Name": "DeleteInstances", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/delete", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/delete", "Method": "POST", "OperationID": "VirtualMachineScaleSets_DeleteInstances", "IsLongRunning": true, @@ -116,7 +100,7 @@ }, { "Name": "GetInstanceView", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/instanceView", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/instanceView", "Method": "GET", "OperationID": "VirtualMachineScaleSets_GetInstanceView", "IsLongRunning": false, @@ -124,14 +108,13 @@ "Description": "Gets the status of a VM scale set instance." }, { - "Name": "GetSkus", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/skus", + "Name": "ListSkus", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/skus", "Method": "GET", "OperationID": "VirtualMachineScaleSets_ListSkus", "IsLongRunning": false, "PagingMetadata": { "Method": "ListSkus", - "NextPageMethod": "ListSkusNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -139,13 +122,12 @@ }, { "Name": "GetOSUpgradeHistory", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/osUpgradeHistory", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/osUpgradeHistory", "Method": "GET", "OperationID": "VirtualMachineScaleSets_GetOSUpgradeHistory", "IsLongRunning": false, "PagingMetadata": { "Method": "GetOSUpgradeHistory", - "NextPageMethod": "GetOSUpgradeHistoryNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -153,7 +135,7 @@ }, { "Name": "PowerOff", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/poweroff", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/poweroff", "Method": "POST", "OperationID": "VirtualMachineScaleSets_PowerOff", "IsLongRunning": true, @@ -162,7 +144,7 @@ }, { "Name": "Restart", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/restart", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/restart", "Method": "POST", "OperationID": "VirtualMachineScaleSets_Restart", "IsLongRunning": true, @@ -171,7 +153,7 @@ }, { "Name": "Start", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/start", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/start", "Method": "POST", "OperationID": "VirtualMachineScaleSets_Start", "IsLongRunning": true, @@ -180,7 +162,7 @@ }, { "Name": "Reapply", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/reapply", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/reapply", "Method": "POST", "OperationID": "VirtualMachineScaleSets_Reapply", "IsLongRunning": true, @@ -189,7 +171,7 @@ }, { "Name": "Redeploy", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/redeploy", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/redeploy", "Method": "POST", "OperationID": "VirtualMachineScaleSets_Redeploy", "IsLongRunning": true, @@ -198,7 +180,7 @@ }, { "Name": "PerformMaintenance", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/performMaintenance", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/performMaintenance", "Method": "POST", "OperationID": "VirtualMachineScaleSets_PerformMaintenance", "IsLongRunning": true, @@ -207,7 +189,7 @@ }, { "Name": "UpdateInstances", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/manualupgrade", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/manualupgrade", "Method": "POST", "OperationID": "VirtualMachineScaleSets_UpdateInstances", "IsLongRunning": true, @@ -216,16 +198,16 @@ }, { "Name": "Reimage", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/reimage", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/reimage", "Method": "POST", "OperationID": "VirtualMachineScaleSets_Reimage", "IsLongRunning": true, "PagingMetadata": null, - "Description": "Reimages (upgrade the operating system) one or more virtual machines in a VM scale set which don\u0027t have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state." + "Description": "Reimages (upgrade the operating system) one or more virtual machines in a VM scale set which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state." }, { "Name": "ReimageAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/reimageall", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/reimageall", "Method": "POST", "OperationID": "VirtualMachineScaleSets_ReimageAll", "IsLongRunning": true, @@ -234,7 +216,7 @@ }, { "Name": "ForceRecoveryServiceFabricPlatformUpdateDomainWalk", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/forceRecoveryServiceFabricPlatformUpdateDomainWalk", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/forceRecoveryServiceFabricPlatformUpdateDomainWalk", "Method": "POST", "OperationID": "VirtualMachineScaleSets_ForceRecoveryServiceFabricPlatformUpdateDomainWalk", "IsLongRunning": false, @@ -243,7 +225,7 @@ }, { "Name": "ConvertToSinglePlacementGroup", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/convertToSinglePlacementGroup", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/convertToSinglePlacementGroup", "Method": "POST", "OperationID": "VirtualMachineScaleSets_ConvertToSinglePlacementGroup", "IsLongRunning": false, @@ -252,7 +234,7 @@ }, { "Name": "SetOrchestrationServiceState", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/setOrchestrationServiceState", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/setOrchestrationServiceState", "Method": "POST", "OperationID": "VirtualMachineScaleSets_SetOrchestrationServiceState", "IsLongRunning": true, @@ -260,8 +242,8 @@ "Description": "Changes ServiceState property for a given service" }, { - "Name": "CancelVirtualMachineScaleSetRollingUpgrade", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/rollingUpgrades/cancel", + "Name": "Cancel", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/rollingUpgrades/cancel", "Method": "POST", "OperationID": "VirtualMachineScaleSetRollingUpgrades_Cancel", "IsLongRunning": true, @@ -269,8 +251,8 @@ "Description": "Cancels the current virtual machine scale set rolling upgrade." }, { - "Name": "StartOSUpgradeVirtualMachineScaleSetRollingUpgrade", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/osRollingUpgrade", + "Name": "StartOSUpgrade", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/osRollingUpgrade", "Method": "POST", "OperationID": "VirtualMachineScaleSetRollingUpgrades_StartOSUpgrade", "IsLongRunning": true, @@ -278,8 +260,8 @@ "Description": "Starts a rolling upgrade to move all virtual machine scale set instances to the latest available Platform Image OS version. Instances which are already running the latest available OS version are not affected." }, { - "Name": "StartExtensionUpgradeVirtualMachineScaleSetRollingUpgrade", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/extensionRollingUpgrade", + "Name": "StartExtensionUpgrade", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensionRollingUpgrade", "Method": "POST", "OperationID": "VirtualMachineScaleSetRollingUpgrades_StartExtensionUpgrade", "IsLongRunning": true, @@ -287,7 +269,9 @@ "Description": "Starts a rolling upgrade to move all extensions for all virtual machine scale set instances to the latest available extension version. Instances which are already running the latest extension versions are not affected." } ], - "Parents": ["ResourceGroupResource"], + "Parents": [ + "ResourceGroupResource" + ], "SwaggerModelName": "VirtualMachineScaleSet", "ResourceType": "Microsoft.Compute/virtualMachineScaleSets", "ResourceKey": "vmScaleSetName", @@ -304,7 +288,7 @@ "GetOperations": [ { "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/extensions/{vmssExtensionName}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}", "Method": "GET", "OperationID": "VirtualMachineScaleSetExtensions_Get", "IsLongRunning": false, @@ -315,7 +299,7 @@ "CreateOperations": [ { "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/extensions/{vmssExtensionName}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}", "Method": "PUT", "OperationID": "VirtualMachineScaleSetExtensions_CreateOrUpdate", "IsLongRunning": true, @@ -326,7 +310,7 @@ "UpdateOperations": [ { "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/extensions/{vmssExtensionName}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}", "Method": "PATCH", "OperationID": "VirtualMachineScaleSetExtensions_Update", "IsLongRunning": true, @@ -337,7 +321,7 @@ "DeleteOperations": [ { "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/extensions/{vmssExtensionName}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}", "Method": "DELETE", "OperationID": "VirtualMachineScaleSetExtensions_Delete", "IsLongRunning": true, @@ -348,13 +332,12 @@ "ListOperations": [ { "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/extensions", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions", "Method": "GET", "OperationID": "VirtualMachineScaleSetExtensions_List", "IsLongRunning": false, "PagingMetadata": { "Method": "List", - "NextPageMethod": "ListNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -366,7 +349,9 @@ "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], "OtherOperations": [], - "Parents": ["VirtualMachineScaleSet"], + "Parents": [ + "VirtualMachineScaleSet" + ], "SwaggerModelName": "VirtualMachineScaleSetExtension", "ResourceType": "Microsoft.Compute/virtualMachineScaleSets/extensions", "ResourceKey": "vmssExtensionName", @@ -383,7 +368,7 @@ "GetOperations": [ { "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/rollingUpgrades/latest", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/rollingUpgrades/latest", "Method": "GET", "OperationID": "VirtualMachineScaleSetRollingUpgrades_GetLatest", "IsLongRunning": false, @@ -400,7 +385,9 @@ "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], "OtherOperations": [], - "Parents": ["VirtualMachineScaleSet"], + "Parents": [ + "VirtualMachineScaleSet" + ], "SwaggerModelName": "RollingUpgradeStatusInfo", "ResourceType": "Microsoft.Compute/virtualMachineScaleSets/rollingUpgrades", "ResourceKey": "latest", @@ -412,12 +399,12 @@ "IsExtensionResource": false, "IsSingletonResource": true }, - "VirtualMachineScaleSetVmExtension": { - "Name": "VirtualMachineScaleSetVmExtension", + "VirtualMachineScaleSetVMExtension": { + "Name": "VirtualMachineScaleSetVMExtension", "GetOperations": [ { "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}", "Method": "GET", "OperationID": "VirtualMachineScaleSetVMExtensions_Get", "IsLongRunning": false, @@ -428,7 +415,7 @@ "CreateOperations": [ { "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}", "Method": "PUT", "OperationID": "VirtualMachineScaleSetVMExtensions_CreateOrUpdate", "IsLongRunning": true, @@ -439,7 +426,7 @@ "UpdateOperations": [ { "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}", "Method": "PATCH", "OperationID": "VirtualMachineScaleSetVMExtensions_Update", "IsLongRunning": true, @@ -450,7 +437,7 @@ "DeleteOperations": [ { "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}", "Method": "DELETE", "OperationID": "VirtualMachineScaleSetVMExtensions_Delete", "IsLongRunning": true, @@ -461,15 +448,14 @@ "ListOperations": [ { "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{instanceId}/extensions", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions", "Method": "GET", "OperationID": "VirtualMachineScaleSetVMExtensions_List", "IsLongRunning": false, "PagingMetadata": { "Method": "List", - "NextPageMethod": null, "ItemName": "value", - "NextLinkName": null + "NextLinkName": "nextLink" }, "Description": "The operation to get all extensions of an instance in Virtual Machine Scaleset." } @@ -479,7 +465,9 @@ "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], "OtherOperations": [], - "Parents": ["VirtualMachineScaleSetVm"], + "Parents": [ + "VirtualMachineScaleSetVM" + ], "SwaggerModelName": "VirtualMachineScaleSetVMExtension", "ResourceType": "Microsoft.Compute/virtualMachineScaleSets/virtualMachines/extensions", "ResourceKey": "vmExtensionName", @@ -491,12 +479,12 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "VirtualMachineScaleSetVm": { - "Name": "VirtualMachineScaleSetVm", + "VirtualMachineScaleSetVM": { + "Name": "VirtualMachineScaleSetVM", "GetOperations": [ { "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{instanceId}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}", "Method": "GET", "OperationID": "VirtualMachineScaleSetVMs_Get", "IsLongRunning": false, @@ -507,7 +495,7 @@ "CreateOperations": [ { "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{instanceId}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}", "Method": "PUT", "OperationID": "VirtualMachineScaleSetVMs_Update", "IsLongRunning": true, @@ -518,7 +506,7 @@ "UpdateOperations": [ { "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{instanceId}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}", "Method": "PUT", "OperationID": "VirtualMachineScaleSetVMs_Update", "IsLongRunning": true, @@ -529,7 +517,7 @@ "DeleteOperations": [ { "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{instanceId}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}", "Method": "DELETE", "OperationID": "VirtualMachineScaleSetVMs_Delete", "IsLongRunning": true, @@ -537,22 +525,7 @@ "Description": "Deletes a virtual machine from a VM scale set." } ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines", - "Method": "GET", - "OperationID": "VirtualMachineScaleSetVMs_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "NextPageMethod": "ListNextPage", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Gets a list of all virtual machines in a VM scale sets." - } - ], + "ListOperations": [], "OperationsFromResourceGroupExtension": [], "OperationsFromSubscriptionExtension": [], "OperationsFromManagementGroupExtension": [], @@ -560,7 +533,7 @@ "OtherOperations": [ { "Name": "Reimage", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{instanceId}/reimage", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/reimage", "Method": "POST", "OperationID": "VirtualMachineScaleSetVMs_Reimage", "IsLongRunning": true, @@ -569,7 +542,7 @@ }, { "Name": "ReimageAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{instanceId}/reimageall", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/reimageall", "Method": "POST", "OperationID": "VirtualMachineScaleSetVMs_ReimageAll", "IsLongRunning": true, @@ -578,7 +551,7 @@ }, { "Name": "Deallocate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{instanceId}/deallocate", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/deallocate", "Method": "POST", "OperationID": "VirtualMachineScaleSetVMs_Deallocate", "IsLongRunning": true, @@ -587,7 +560,7 @@ }, { "Name": "GetInstanceView", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{instanceId}/instanceView", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/instanceView", "Method": "GET", "OperationID": "VirtualMachineScaleSetVMs_GetInstanceView", "IsLongRunning": false, @@ -596,7 +569,7 @@ }, { "Name": "PowerOff", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualmachines/{instanceId}/poweroff", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/poweroff", "Method": "POST", "OperationID": "VirtualMachineScaleSetVMs_PowerOff", "IsLongRunning": true, @@ -605,7 +578,7 @@ }, { "Name": "Restart", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualmachines/{instanceId}/restart", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/restart", "Method": "POST", "OperationID": "VirtualMachineScaleSetVMs_Restart", "IsLongRunning": true, @@ -614,7 +587,7 @@ }, { "Name": "Start", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualmachines/{instanceId}/start", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/start", "Method": "POST", "OperationID": "VirtualMachineScaleSetVMs_Start", "IsLongRunning": true, @@ -623,7 +596,7 @@ }, { "Name": "Redeploy", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualmachines/{instanceId}/redeploy", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/redeploy", "Method": "POST", "OperationID": "VirtualMachineScaleSetVMs_Redeploy", "IsLongRunning": true, @@ -632,7 +605,7 @@ }, { "Name": "RetrieveBootDiagnosticsData", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualmachines/{instanceId}/retrieveBootDiagnosticsData", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/retrieveBootDiagnosticsData", "Method": "POST", "OperationID": "VirtualMachineScaleSetVMs_RetrieveBootDiagnosticsData", "IsLongRunning": false, @@ -641,7 +614,7 @@ }, { "Name": "PerformMaintenance", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualmachines/{instanceId}/performMaintenance", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/performMaintenance", "Method": "POST", "OperationID": "VirtualMachineScaleSetVMs_PerformMaintenance", "IsLongRunning": true, @@ -650,7 +623,7 @@ }, { "Name": "SimulateEviction", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{instanceId}/simulateEviction", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/simulateEviction", "Method": "POST", "OperationID": "VirtualMachineScaleSetVMs_SimulateEviction", "IsLongRunning": false, @@ -659,15 +632,21 @@ }, { "Name": "RunCommand", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualmachines/{instanceId}/runCommand", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/runCommand", "Method": "POST", "OperationID": "VirtualMachineScaleSetVMs_RunCommand", "IsLongRunning": true, - "PagingMetadata": null, + "PagingMetadata": { + "Method": "RunCommand", + "ItemName": "value", + "NextLinkName": "nextLink" + }, "Description": "Run command on a virtual machine in a VM scale set." } ], - "Parents": ["VirtualMachineScaleSet"], + "Parents": [ + "VirtualMachineScaleSet" + ], "SwaggerModelName": "VirtualMachineScaleSetVM", "ResourceType": "Microsoft.Compute/virtualMachineScaleSets/virtualMachines", "ResourceKey": "instanceId", @@ -734,9 +713,8 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "List", - "NextPageMethod": null, "ItemName": "value", - "NextLinkName": null + "NextLinkName": "nextLink" }, "Description": "The operation to get all extensions of a Virtual Machine." } @@ -746,7 +724,9 @@ "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], "OtherOperations": [], - "Parents": ["VirtualMachine"], + "Parents": [ + "VirtualMachine" + ], "SwaggerModelName": "VirtualMachineExtension", "ResourceType": "Microsoft.Compute/virtualMachines/extensions", "ResourceKey": "vmExtensionName", @@ -813,7 +793,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "List", - "NextPageMethod": "ListNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -823,28 +802,13 @@ "OperationsFromResourceGroupExtension": [], "OperationsFromSubscriptionExtension": [ { - "Name": "GetVirtualMachinesByLocation", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/virtualMachines", - "Method": "GET", - "OperationID": "VirtualMachines_ListByLocation", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "ListByLocation", - "NextPageMethod": "ListByLocationNextPage", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Gets all the virtual machines under the specified subscription for the specified location." - }, - { - "Name": "GetVirtualMachines", + "Name": "_", "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/virtualMachines", "Method": "GET", "OperationID": "VirtualMachines_ListAll", "IsLongRunning": false, "PagingMetadata": { "Method": "ListAll", - "NextPageMethod": "ListAllNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -900,16 +864,15 @@ "Description": "Sets the OS state of the virtual machine to generalized. It is recommended to sysprep the virtual machine before performing this operation. For Windows, please refer to [Create a managed image of a generalized VM in Azure](https://docs.microsoft.com/azure/virtual-machines/windows/capture-image-resource). For Linux, please refer to [How to create an image of a virtual machine or VHD](https://docs.microsoft.com/azure/virtual-machines/linux/capture-image)." }, { - "Name": "GetAvailableSizes", + "Name": "ListAvailableSizes", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/vmSizes", "Method": "GET", "OperationID": "VirtualMachines_ListAvailableSizes", "IsLongRunning": false, "PagingMetadata": { "Method": "ListAvailableSizes", - "NextPageMethod": null, "ItemName": "value", - "NextLinkName": null + "NextLinkName": "nextLink" }, "Description": "Lists all available virtual machine sizes to which the specified virtual machine can be resized." }, @@ -929,7 +892,7 @@ "OperationID": "VirtualMachines_Reapply", "IsLongRunning": true, "PagingMetadata": null, - "Description": "The operation to reapply a virtual machine\u0027s state." + "Description": "The operation to reapply a virtual machine's state." }, { "Name": "Restart", @@ -965,7 +928,7 @@ "OperationID": "VirtualMachines_Reimage", "IsLongRunning": true, "PagingMetadata": null, - "Description": "Reimages (upgrade the operating system) a virtual machine which don\u0027t have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. NOTE: The retaining of old OS disk depends on the value of deleteOption of OS disk. If deleteOption is detach, the old OS disk will be preserved after reimage. If deleteOption is delete, the old OS disk will be deleted after reimage. The deleteOption of the OS disk should be updated accordingly before performing the reimage." + "Description": "Reimages (upgrade the operating system) a virtual machine which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. NOTE: The retaining of old OS disk depends on the value of deleteOption of OS disk. If deleteOption is detach, the old OS disk will be preserved after reimage. If deleteOption is delete, the old OS disk will be deleted after reimage. The deleteOption of the OS disk should be updated accordingly before performing the reimage." }, { "Name": "RetrieveBootDiagnosticsData", @@ -974,7 +937,7 @@ "OperationID": "VirtualMachines_RetrieveBootDiagnosticsData", "IsLongRunning": false, "PagingMetadata": null, - "Description": "The operation to retrieve SAS URIs for a virtual machine\u0027s boot diagnostic logs." + "Description": "The operation to retrieve SAS URIs for a virtual machine's boot diagnostic logs." }, { "Name": "PerformMaintenance", @@ -1018,11 +981,17 @@ "Method": "POST", "OperationID": "VirtualMachines_RunCommand", "IsLongRunning": true, - "PagingMetadata": null, + "PagingMetadata": { + "Method": "RunCommand", + "ItemName": "value", + "NextLinkName": "nextLink" + }, "Description": "Run command on the VM." } ], - "Parents": ["ResourceGroupResource"], + "Parents": [ + "ResourceGroupResource" + ], "SwaggerModelName": "VirtualMachine", "ResourceType": "Microsoft.Compute/virtualMachines", "ResourceKey": "vmName", @@ -1059,11 +1028,23 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "ListTypes", - "NextPageMethod": null, - "ItemName": "", - "NextLinkName": null + "ItemName": "value", + "NextLinkName": "nextLink" }, "Description": "Gets a list of virtual machine extension image types." + }, + { + "Name": "GetAll", + "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmextension/types/{type}/versions", + "Method": "GET", + "OperationID": "VirtualMachineExtensionImages_ListVersions", + "IsLongRunning": false, + "PagingMetadata": { + "Method": "ListVersions", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Gets a list of virtual machine extension image versions." } ], "OperationsFromResourceGroupExtension": [], @@ -1071,7 +1052,9 @@ "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], "OtherOperations": [], - "Parents": ["SubscriptionResource"], + "Parents": [ + "SubscriptionResource" + ], "SwaggerModelName": "VirtualMachineExtensionImage", "ResourceType": "Microsoft.Compute/locations/publishers/artifacttypes/types/versions", "ResourceKey": "version", @@ -1138,7 +1121,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "List", - "NextPageMethod": "ListNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -1148,14 +1130,13 @@ "OperationsFromResourceGroupExtension": [], "OperationsFromSubscriptionExtension": [ { - "Name": "GetAvailabilitySets", + "Name": "_", "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/availabilitySets", "Method": "GET", "OperationID": "AvailabilitySets_ListBySubscription", "IsLongRunning": false, "PagingMetadata": { "Method": "ListBySubscription", - "NextPageMethod": "ListBySubscriptionNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -1166,21 +1147,22 @@ "OperationsFromTenantExtension": [], "OtherOperations": [ { - "Name": "GetAvailableSizes", + "Name": "ListAvailableSizes", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}/vmSizes", "Method": "GET", "OperationID": "AvailabilitySets_ListAvailableSizes", "IsLongRunning": false, "PagingMetadata": { "Method": "ListAvailableSizes", - "NextPageMethod": null, "ItemName": "value", - "NextLinkName": null + "NextLinkName": "nextLink" }, "Description": "Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing availability set." } ], - "Parents": ["ResourceGroupResource"], + "Parents": [ + "ResourceGroupResource" + ], "SwaggerModelName": "AvailabilitySet", "ResourceType": "Microsoft.Compute/availabilitySets", "ResourceKey": "availabilitySetName", @@ -1247,7 +1229,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "ListByResourceGroup", - "NextPageMethod": "ListByResourceGroupNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -1257,14 +1238,13 @@ "OperationsFromResourceGroupExtension": [], "OperationsFromSubscriptionExtension": [ { - "Name": "GetProximityPlacementGroups", + "Name": "_", "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/proximityPlacementGroups", "Method": "GET", "OperationID": "ProximityPlacementGroups_ListBySubscription", "IsLongRunning": false, "PagingMetadata": { "Method": "ListBySubscription", - "NextPageMethod": "ListBySubscriptionNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -1274,7 +1254,9 @@ "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], "OtherOperations": [], - "Parents": ["ResourceGroupResource"], + "Parents": [ + "ResourceGroupResource" + ], "SwaggerModelName": "ProximityPlacementGroup", "ResourceType": "Microsoft.Compute/proximityPlacementGroups", "ResourceKey": "proximityPlacementGroupName", @@ -1341,7 +1323,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "ListByResourceGroup", - "NextPageMethod": "ListByResourceGroupNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -1351,14 +1332,13 @@ "OperationsFromResourceGroupExtension": [], "OperationsFromSubscriptionExtension": [ { - "Name": "GetDedicatedHostGroups", + "Name": "_", "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/hostGroups", "Method": "GET", "OperationID": "DedicatedHostGroups_ListBySubscription", "IsLongRunning": false, "PagingMetadata": { "Method": "ListBySubscription", - "NextPageMethod": "ListBySubscriptionNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -1368,7 +1348,9 @@ "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], "OtherOperations": [], - "Parents": ["ResourceGroupResource"], + "Parents": [ + "ResourceGroupResource" + ], "SwaggerModelName": "DedicatedHostGroup", "ResourceType": "Microsoft.Compute/hostGroups", "ResourceKey": "hostGroupName", @@ -1435,7 +1417,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "ListByHostGroup", - "NextPageMethod": "ListByHostGroupNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -1457,21 +1438,22 @@ "Description": "Restart the dedicated host. The operation will complete successfully once the dedicated host has restarted and is running. To determine the health of VMs deployed on the dedicated host after the restart check the Resource Health Center in the Azure Portal. Please refer to https://docs.microsoft.com/azure/service-health/resource-health-overview for more details." }, { - "Name": "GetAvailableSizes", + "Name": "ListAvailableSizes", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}/hostSizes", "Method": "GET", "OperationID": "DedicatedHosts_ListAvailableSizes", "IsLongRunning": false, "PagingMetadata": { "Method": "ListAvailableSizes", - "NextPageMethod": null, "ItemName": "value", - "NextLinkName": null + "NextLinkName": "nextLink" }, "Description": "Lists all available dedicated host sizes to which the specified dedicated host can be resized. NOTE: The dedicated host sizes provided can be used to only scale up the existing dedicated host." } ], - "Parents": ["DedicatedHostGroup"], + "Parents": [ + "DedicatedHostGroup" + ], "SwaggerModelName": "DedicatedHost", "ResourceType": "Microsoft.Compute/hostGroups/hosts", "ResourceKey": "hostName", @@ -1538,7 +1520,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "ListByResourceGroup", - "NextPageMethod": "ListByResourceGroupNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -1548,14 +1529,13 @@ "OperationsFromResourceGroupExtension": [], "OperationsFromSubscriptionExtension": [ { - "Name": "GetSshPublicKeyResources", + "Name": "_", "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/sshPublicKeys", "Method": "GET", "OperationID": "SshPublicKeys_ListBySubscription", "IsLongRunning": false, "PagingMetadata": { "Method": "ListBySubscription", - "NextPageMethod": "ListBySubscriptionNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -1575,7 +1555,9 @@ "Description": "Generates and returns a public/private key pair and populates the SSH public key resource with the public key. The length of the key will be 3072 bits. This operation can only be performed once per SSH public key resource." } ], - "Parents": ["ResourceGroupResource"], + "Parents": [ + "ResourceGroupResource" + ], "SwaggerModelName": "SshPublicKeyResource", "ResourceType": "Microsoft.Compute/sshPublicKeys", "ResourceKey": "sshPublicKeyName", @@ -1642,7 +1624,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "ListByResourceGroup", - "NextPageMethod": "ListByResourceGroupNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -1652,14 +1633,13 @@ "OperationsFromResourceGroupExtension": [], "OperationsFromSubscriptionExtension": [ { - "Name": "GetImages", + "Name": "_", "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/images", "Method": "GET", "OperationID": "Images_List", "IsLongRunning": false, "PagingMetadata": { "Method": "List", - "NextPageMethod": "ListNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -1669,7 +1649,9 @@ "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], "OtherOperations": [], - "Parents": ["ResourceGroupResource"], + "Parents": [ + "ResourceGroupResource" + ], "SwaggerModelName": "Image", "ResourceType": "Microsoft.Compute/images", "ResourceKey": "imageName", @@ -1681,12 +1663,12 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "RestorePointGroup": { - "Name": "RestorePointGroup", + "RestorePointCollection": { + "Name": "RestorePointCollection", "GetOperations": [ { "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointGroupName}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}", "Method": "GET", "OperationID": "RestorePointCollections_Get", "IsLongRunning": false, @@ -1697,7 +1679,7 @@ "CreateOperations": [ { "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointGroupName}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}", "Method": "PUT", "OperationID": "RestorePointCollections_CreateOrUpdate", "IsLongRunning": true, @@ -1708,7 +1690,7 @@ "UpdateOperations": [ { "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointGroupName}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}", "Method": "PATCH", "OperationID": "RestorePointCollections_Update", "IsLongRunning": false, @@ -1719,7 +1701,7 @@ "DeleteOperations": [ { "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointGroupName}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}", "Method": "DELETE", "OperationID": "RestorePointCollections_Delete", "IsLongRunning": true, @@ -1736,7 +1718,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "List", - "NextPageMethod": "ListNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -1746,14 +1727,13 @@ "OperationsFromResourceGroupExtension": [], "OperationsFromSubscriptionExtension": [ { - "Name": "GetRestorePointGroups", + "Name": "_", "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/restorePointCollections", "Method": "GET", "OperationID": "RestorePointCollections_ListAll", "IsLongRunning": false, "PagingMetadata": { "Method": "ListAll", - "NextPageMethod": "ListAllNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -1763,7 +1743,9 @@ "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], "OtherOperations": [], - "Parents": ["ResourceGroupResource"], + "Parents": [ + "ResourceGroupResource" + ], "SwaggerModelName": "RestorePointCollection", "ResourceType": "Microsoft.Compute/restorePointCollections", "ResourceKey": "restorePointCollectionName", @@ -1780,7 +1762,7 @@ "GetOperations": [ { "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointGroupName}/restorePoints/{restorePointName}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}", "Method": "GET", "OperationID": "RestorePoints_Get", "IsLongRunning": false, @@ -1791,7 +1773,7 @@ "CreateOperations": [ { "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointGroupName}/restorePoints/{restorePointName}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}", "Method": "PUT", "OperationID": "RestorePoints_Create", "IsLongRunning": true, @@ -1802,7 +1784,7 @@ "UpdateOperations": [ { "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointGroupName}/restorePoints/{restorePointName}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}", "Method": "PUT", "OperationID": "RestorePoints_Create", "IsLongRunning": true, @@ -1813,7 +1795,7 @@ "DeleteOperations": [ { "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointGroupName}/restorePoints/{restorePointName}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}", "Method": "DELETE", "OperationID": "RestorePoints_Delete", "IsLongRunning": true, @@ -1827,7 +1809,9 @@ "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], "OtherOperations": [], - "Parents": ["RestorePointGroup"], + "Parents": [ + "RestorePointCollection" + ], "SwaggerModelName": "RestorePoint", "ResourceType": "Microsoft.Compute/restorePointCollections/restorePoints", "ResourceKey": "restorePointName", @@ -1894,7 +1878,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "ListByResourceGroup", - "NextPageMethod": "ListByResourceGroupNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -1904,14 +1887,13 @@ "OperationsFromResourceGroupExtension": [], "OperationsFromSubscriptionExtension": [ { - "Name": "GetCapacityReservationGroups", + "Name": "_", "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/capacityReservationGroups", "Method": "GET", "OperationID": "CapacityReservationGroups_ListBySubscription", "IsLongRunning": false, "PagingMetadata": { "Method": "ListBySubscription", - "NextPageMethod": "ListBySubscriptionNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -1921,7 +1903,9 @@ "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], "OtherOperations": [], - "Parents": ["ResourceGroupResource"], + "Parents": [ + "ResourceGroupResource" + ], "SwaggerModelName": "CapacityReservationGroup", "ResourceType": "Microsoft.Compute/capacityReservationGroups", "ResourceKey": "capacityReservationGroupName", @@ -1988,7 +1972,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "ListByCapacityReservationGroup", - "NextPageMethod": "ListByCapacityReservationGroupNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -2000,7 +1983,9 @@ "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], "OtherOperations": [], - "Parents": ["CapacityReservationGroup"], + "Parents": [ + "CapacityReservationGroup" + ], "SwaggerModelName": "CapacityReservation", "ResourceType": "Microsoft.Compute/capacityReservationGroups/capacityReservations", "ResourceKey": "capacityReservationName", @@ -2012,6 +1997,30 @@ "IsExtensionResource": false, "IsSingletonResource": false }, + "VirtualMachineRunCommandFixMe": { + "Name": "VirtualMachineRunCommandFixMe", + "GetOperations": [], + "CreateOperations": [], + "UpdateOperations": [], + "DeleteOperations": [], + "ListOperations": [], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [], + "SwaggerModelName": "", + "ResourceType": "", + "ResourceKey": "", + "ResourceKeySegment": "", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + }, "VirtualMachineRunCommand": { "Name": "VirtualMachineRunCommand", "GetOperations": [ @@ -2067,7 +2076,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "ListByVirtualMachine", - "NextPageMethod": "ListByVirtualMachineNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -2075,116 +2083,15 @@ } ], "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [ - { - "Name": "GetVirtualMachineRunCommands", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/runCommands", - "Method": "GET", - "OperationID": "VirtualMachineRunCommands_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "NextPageMethod": "ListNextPage", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "Lists all available run commands for a subscription in a location." - }, - { - "Name": "GetVirtualMachineRunCommand", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/runCommands/{commandId}", - "Method": "GET", - "OperationID": "VirtualMachineRunCommands_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Gets specific run command for a subscription in a location." - } - ], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": ["VirtualMachine"], - "SwaggerModelName": "VirtualMachineRunCommand", - "ResourceType": "Microsoft.Compute/virtualMachines/runCommands", - "ResourceKey": "runCommandName", - "ResourceKeySegment": "runCommands", - "IsTrackedResource": true, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "VirtualMachineScaleSetVmRunCommand": { - "Name": "VirtualMachineScaleSetVmRunCommand", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}", - "Method": "GET", - "OperationID": "VirtualMachineScaleSetVMRunCommands_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "The operation to get the VMSS VM run command." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}", - "Method": "PUT", - "OperationID": "VirtualMachineScaleSetVMRunCommands_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "The operation to create or update the VMSS VM run command." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}", - "Method": "PATCH", - "OperationID": "VirtualMachineScaleSetVMRunCommands_Update", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "The operation to update the VMSS VM run command." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}", - "Method": "DELETE", - "OperationID": "VirtualMachineScaleSetVMRunCommands_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "The operation to delete the VMSS VM run command." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{instanceId}/runCommands", - "Method": "GET", - "OperationID": "VirtualMachineScaleSetVMRunCommands_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "NextPageMethod": "ListNextPage", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "The operation to get all run commands of an instance in Virtual Machine Scaleset." - } - ], - "OperationsFromResourceGroupExtension": [], "OperationsFromSubscriptionExtension": [], "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], "OtherOperations": [], - "Parents": ["VirtualMachineScaleSetVm"], + "Parents": [ + "VirtualMachine" + ], "SwaggerModelName": "VirtualMachineRunCommand", - "ResourceType": "Microsoft.Compute/virtualMachineScaleSets/virtualMachines/runCommands", + "ResourceType": "Microsoft.Compute/virtualMachines/runCommands", "ResourceKey": "runCommandName", "ResourceKeySegment": "runCommands", "IsTrackedResource": true, @@ -2249,7 +2156,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "ListByResourceGroup", - "NextPageMethod": "ListByResourceGroupNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -2259,14 +2165,13 @@ "OperationsFromResourceGroupExtension": [], "OperationsFromSubscriptionExtension": [ { - "Name": "GetDisks", + "Name": "_", "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/disks", "Method": "GET", "OperationID": "Disks_List", "IsLongRunning": false, "PagingMetadata": { "Method": "List", - "NextPageMethod": "ListNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -2295,7 +2200,9 @@ "Description": "Revokes access to a disk." } ], - "Parents": ["ResourceGroupResource"], + "Parents": [ + "ResourceGroupResource" + ], "SwaggerModelName": "Disk", "ResourceType": "Microsoft.Compute/disks", "ResourceKey": "diskName", @@ -2362,7 +2269,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "ListByResourceGroup", - "NextPageMethod": "ListByResourceGroupNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -2372,14 +2278,13 @@ "OperationsFromResourceGroupExtension": [], "OperationsFromSubscriptionExtension": [ { - "Name": "GetDiskAccesses", + "Name": "_", "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/diskAccesses", "Method": "GET", "OperationID": "DiskAccesses_List", "IsLongRunning": false, "PagingMetadata": { "Method": "List", - "NextPageMethod": "ListNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -2397,14 +2302,15 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "GetPrivateLinkResources", - "NextPageMethod": null, "ItemName": "value", - "NextLinkName": null + "NextLinkName": "nextLink" }, "Description": "Gets the private link resources possible under disk access resource" } ], - "Parents": ["ResourceGroupResource"], + "Parents": [ + "ResourceGroupResource" + ], "SwaggerModelName": "DiskAccess", "ResourceType": "Microsoft.Compute/diskAccesses", "ResourceKey": "diskAccessName", @@ -2416,8 +2322,8 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "ComputePrivateEndpointConnection": { - "Name": "ComputePrivateEndpointConnection", + "PrivateEndpointConnection": { + "Name": "PrivateEndpointConnection", "GetOperations": [ { "Name": "Get", @@ -2437,7 +2343,7 @@ "OperationID": "DiskAccesses_UpdateAPrivateEndpointConnection", "IsLongRunning": true, "PagingMetadata": null, - "Description": "Approve or reject a private endpoint connection under disk access resource, this can\u0027t be used to create a new private endpoint connection." + "Description": "Approve or reject a private endpoint connection under disk access resource, this can't be used to create a new private endpoint connection." } ], "UpdateOperations": [ @@ -2448,7 +2354,7 @@ "OperationID": "DiskAccesses_UpdateAPrivateEndpointConnection", "IsLongRunning": true, "PagingMetadata": null, - "Description": "Approve or reject a private endpoint connection under disk access resource, this can\u0027t be used to create a new private endpoint connection." + "Description": "Approve or reject a private endpoint connection under disk access resource, this can't be used to create a new private endpoint connection." } ], "DeleteOperations": [ @@ -2471,7 +2377,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "ListPrivateEndpointConnections", - "NextPageMethod": "ListPrivateEndpointConnectionsNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -2483,7 +2388,9 @@ "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], "OtherOperations": [], - "Parents": ["DiskAccess"], + "Parents": [ + "DiskAccess" + ], "SwaggerModelName": "PrivateEndpointConnection", "ResourceType": "Microsoft.Compute/diskAccesses/privateEndpointConnections", "ResourceKey": "privateEndpointConnectionName", @@ -2550,7 +2457,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "ListByResourceGroup", - "NextPageMethod": "ListByResourceGroupNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -2560,14 +2466,13 @@ "OperationsFromResourceGroupExtension": [], "OperationsFromSubscriptionExtension": [ { - "Name": "GetDiskEncryptionSets", + "Name": "_", "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/diskEncryptionSets", "Method": "GET", "OperationID": "DiskEncryptionSets_List", "IsLongRunning": false, "PagingMetadata": { "Method": "List", - "NextPageMethod": "ListNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -2578,21 +2483,22 @@ "OperationsFromTenantExtension": [], "OtherOperations": [ { - "Name": "GetAssociatedResources", + "Name": "ListAssociatedResources", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}/associatedResources", "Method": "GET", "OperationID": "DiskEncryptionSets_ListAssociatedResources", "IsLongRunning": false, "PagingMetadata": { "Method": "ListAssociatedResources", - "NextPageMethod": "ListAssociatedResourcesNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, "Description": "Lists all resources that are encrypted with this disk encryption set." } ], - "Parents": ["ResourceGroupResource"], + "Parents": [ + "ResourceGroupResource" + ], "SwaggerModelName": "DiskEncryptionSet", "ResourceType": "Microsoft.Compute/diskEncryptionSets", "ResourceKey": "diskEncryptionSetName", @@ -2609,7 +2515,7 @@ "GetOperations": [ { "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointGroupName}/restorePoints/{vmRestorePointName}/diskRestorePoints/{diskRestorePointName}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{vmRestorePointName}/diskRestorePoints/{diskRestorePointName}", "Method": "GET", "OperationID": "DiskRestorePoint_Get", "IsLongRunning": false, @@ -2623,13 +2529,12 @@ "ListOperations": [ { "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointGroupName}/restorePoints/{vmRestorePointName}/diskRestorePoints", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{vmRestorePointName}/diskRestorePoints", "Method": "GET", "OperationID": "DiskRestorePoint_ListByRestorePoint", "IsLongRunning": false, "PagingMetadata": { "Method": "ListByRestorePoint", - "NextPageMethod": "ListByRestorePointNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -2643,7 +2548,7 @@ "OtherOperations": [ { "Name": "GrantAccess", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointGroupName}/restorePoints/{vmRestorePointName}/diskRestorePoints/{diskRestorePointName}/beginGetAccess", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{vmRestorePointName}/diskRestorePoints/{diskRestorePointName}/beginGetAccess", "Method": "POST", "OperationID": "DiskRestorePoint_GrantAccess", "IsLongRunning": true, @@ -2652,7 +2557,7 @@ }, { "Name": "RevokeAccess", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointGroupName}/restorePoints/{vmRestorePointName}/diskRestorePoints/{diskRestorePointName}/endGetAccess", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{vmRestorePointName}/diskRestorePoints/{diskRestorePointName}/endGetAccess", "Method": "POST", "OperationID": "DiskRestorePoint_RevokeAccess", "IsLongRunning": true, @@ -2660,7 +2565,9 @@ "Description": "Revokes access to a diskRestorePoint." } ], - "Parents": ["RestorePoint"], + "Parents": [ + "RestorePointCollection" + ], "SwaggerModelName": "DiskRestorePoint", "ResourceType": "Microsoft.Compute/restorePointCollections/restorePoints/diskRestorePoints", "ResourceKey": "diskRestorePointName", @@ -2727,7 +2634,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "ListByResourceGroup", - "NextPageMethod": "ListByResourceGroupNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -2737,14 +2643,13 @@ "OperationsFromResourceGroupExtension": [], "OperationsFromSubscriptionExtension": [ { - "Name": "GetSnapshots", + "Name": "_", "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/snapshots", "Method": "GET", "OperationID": "Snapshots_List", "IsLongRunning": false, "PagingMetadata": { "Method": "List", - "NextPageMethod": "ListNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -2773,7 +2678,9 @@ "Description": "Revokes access to a snapshot." } ], - "Parents": ["ResourceGroupResource"], + "Parents": [ + "ResourceGroupResource" + ], "SwaggerModelName": "Snapshot", "ResourceType": "Microsoft.Compute/snapshots", "ResourceKey": "snapshotName", @@ -2840,7 +2747,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "ListByResourceGroup", - "NextPageMethod": "ListByResourceGroupNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -2850,14 +2756,13 @@ "OperationsFromResourceGroupExtension": [], "OperationsFromSubscriptionExtension": [ { - "Name": "GetGalleries", + "Name": "_", "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/galleries", "Method": "GET", "OperationID": "Galleries_List", "IsLongRunning": false, "PagingMetadata": { "Method": "List", - "NextPageMethod": "ListNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -2868,7 +2773,7 @@ "OperationsFromTenantExtension": [], "OtherOperations": [ { - "Name": "UpdateGallerySharingProfile", + "Name": "Update", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/share", "Method": "POST", "OperationID": "GallerySharingProfile_Update", @@ -2877,7 +2782,9 @@ "Description": "Update sharing profile of a gallery." } ], - "Parents": ["ResourceGroupResource"], + "Parents": [ + "ResourceGroupResource" + ], "SwaggerModelName": "Gallery", "ResourceType": "Microsoft.Compute/galleries", "ResourceKey": "galleryName", @@ -2944,7 +2851,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "ListByGallery", - "NextPageMethod": "ListByGalleryNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -2956,7 +2862,9 @@ "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], "OtherOperations": [], - "Parents": ["Gallery"], + "Parents": [ + "Gallery" + ], "SwaggerModelName": "GalleryImage", "ResourceType": "Microsoft.Compute/galleries/images", "ResourceKey": "galleryImageName", @@ -3023,7 +2931,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "ListByGalleryImage", - "NextPageMethod": "ListByGalleryImageNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -3035,7 +2942,9 @@ "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], "OtherOperations": [], - "Parents": ["GalleryImage"], + "Parents": [ + "GalleryImage" + ], "SwaggerModelName": "GalleryImageVersion", "ResourceType": "Microsoft.Compute/galleries/images/versions", "ResourceKey": "galleryImageVersionName", @@ -3102,7 +3011,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "ListByGallery", - "NextPageMethod": "ListByGalleryNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -3114,7 +3022,9 @@ "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], "OtherOperations": [], - "Parents": ["Gallery"], + "Parents": [ + "Gallery" + ], "SwaggerModelName": "GalleryApplication", "ResourceType": "Microsoft.Compute/galleries/applications", "ResourceKey": "galleryApplicationName", @@ -3181,7 +3091,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "ListByGalleryApplication", - "NextPageMethod": "ListByGalleryApplicationNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -3193,7 +3102,9 @@ "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], "OtherOperations": [], - "Parents": ["GalleryApplication"], + "Parents": [ + "GalleryApplication" + ], "SwaggerModelName": "GalleryApplicationVersion", "ResourceType": "Microsoft.Compute/galleries/applications/versions", "ResourceKey": "galleryApplicationVersionName", @@ -3205,285 +3116,6 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "SharedGallery": { - "Name": "SharedGallery", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}", - "Method": "GET", - "OperationID": "SharedGalleries_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get a shared gallery by subscription id or tenant id." - } - ], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries", - "Method": "GET", - "OperationID": "SharedGalleries_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "NextPageMethod": "ListNextPage", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "List shared galleries by subscription id or tenant id." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": ["SubscriptionResource"], - "SwaggerModelName": "SharedGallery", - "ResourceType": "Microsoft.Compute/locations/sharedGalleries", - "ResourceKey": "galleryUniqueName", - "ResourceKeySegment": "sharedGalleries", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": true, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "SharedGalleryImage": { - "Name": "SharedGalleryImage", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}", - "Method": "GET", - "OperationID": "SharedGalleryImages_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get a shared gallery image by subscription id or tenant id." - } - ], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images", - "Method": "GET", - "OperationID": "SharedGalleryImages_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "NextPageMethod": "ListNextPage", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "List shared gallery images by subscription id or tenant id." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": ["SharedGallery"], - "SwaggerModelName": "SharedGalleryImage", - "ResourceType": "Microsoft.Compute/locations/sharedGalleries/images", - "ResourceKey": "galleryImageName", - "ResourceKeySegment": "images", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "SharedGalleryImageVersion": { - "Name": "SharedGalleryImageVersion", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}/versions/{galleryImageVersionName}", - "Method": "GET", - "OperationID": "SharedGalleryImageVersions_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get a shared gallery image version by subscription id or tenant id." - } - ], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}/versions", - "Method": "GET", - "OperationID": "SharedGalleryImageVersions_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "NextPageMethod": "ListNextPage", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "List shared gallery image versions by subscription id or tenant id." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": ["SharedGalleryImage"], - "SwaggerModelName": "SharedGalleryImageVersion", - "ResourceType": "Microsoft.Compute/locations/sharedGalleries/images/versions", - "ResourceKey": "galleryImageVersionName", - "ResourceKeySegment": "versions", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "CommunityGallery": { - "Name": "CommunityGallery", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}", - "Method": "GET", - "OperationID": "CommunityGalleries_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get a community gallery by gallery public name." - } - ], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [], - "ListOperations": [], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": ["SubscriptionResource"], - "SwaggerModelName": "CommunityGallery", - "ResourceType": "Microsoft.Compute/locations/communityGalleries", - "ResourceKey": "publicGalleryName", - "ResourceKeySegment": "communityGalleries", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": true, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "CommunityGalleryImage": { - "Name": "CommunityGalleryImage", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images/{galleryImageName}", - "Method": "GET", - "OperationID": "CommunityGalleryImages_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get a community gallery image." - } - ], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images", - "Method": "GET", - "OperationID": "CommunityGalleryImages_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "NextPageMethod": "ListNextPage", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "List community gallery images inside a gallery." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": ["CommunityGallery"], - "SwaggerModelName": "CommunityGalleryImage", - "ResourceType": "Microsoft.Compute/locations/communityGalleries/images", - "ResourceKey": "galleryImageName", - "ResourceKeySegment": "images", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "CommunityGalleryImageVersion": { - "Name": "CommunityGalleryImageVersion", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}", - "Method": "GET", - "OperationID": "CommunityGalleryImageVersions_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get a community gallery image version." - } - ], - "CreateOperations": [], - "UpdateOperations": [], - "DeleteOperations": [], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images/{galleryImageName}/versions", - "Method": "GET", - "OperationID": "CommunityGalleryImageVersions_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "NextPageMethod": "ListNextPage", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "List community gallery image versions inside an image." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": ["CommunityGalleryImage"], - "SwaggerModelName": "CommunityGalleryImageVersion", - "ResourceType": "Microsoft.Compute/locations/communityGalleries/images/versions", - "ResourceKey": "galleryImageVersionName", - "ResourceKeySegment": "versions", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, "RoleInstance": { "Name": "RoleInstance", "GetOperations": [ @@ -3519,7 +3151,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "List", - "NextPageMethod": "ListNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -3577,12 +3208,14 @@ "Description": "Gets a remote desktop file for a role instance in a cloud service." } ], - "Parents": ["CloudService"], + "Parents": [ + "CloudService" + ], "SwaggerModelName": "RoleInstance", "ResourceType": "Microsoft.Compute/cloudServices/roleInstances", "ResourceKey": "roleInstanceName", "ResourceKeySegment": "roleInstances", - "IsTrackedResource": false, + "IsTrackedResource": true, "IsTenantResource": false, "IsSubscriptionResource": false, "IsManagementGroupResource": false, @@ -3614,7 +3247,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "List", - "NextPageMethod": "ListNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -3626,7 +3258,9 @@ "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], "OtherOperations": [], - "Parents": ["CloudService"], + "Parents": [ + "CloudService" + ], "SwaggerModelName": "CloudServiceRole", "ResourceType": "Microsoft.Compute/cloudServices/roles", "ResourceKey": "roleName", @@ -3693,7 +3327,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "List", - "NextPageMethod": "ListNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -3703,14 +3336,13 @@ "OperationsFromResourceGroupExtension": [], "OperationsFromSubscriptionExtension": [ { - "Name": "GetCloudServices", + "Name": "_", "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/cloudServices", "Method": "GET", "OperationID": "CloudServices_ListAll", "IsLongRunning": false, "PagingMetadata": { "Method": "ListAll", - "NextPageMethod": "ListAllNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -3784,7 +3416,7 @@ "Description": "Deletes role instances in a cloud service." }, { - "Name": "WalkUpdateDomainCloudServicesUpdateDomain", + "Name": "WalkUpdateDomain", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/updateDomains/{updateDomain}", "Method": "PUT", "OperationID": "CloudServicesUpdateDomain_WalkUpdateDomain", @@ -3793,7 +3425,7 @@ "Description": "Updates the role instances in the specified update domain." }, { - "Name": "GetUpdateDomainCloudServicesUpdateDomain", + "Name": "GetUpdateDomain", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/updateDomains/{updateDomain}", "Method": "GET", "OperationID": "CloudServicesUpdateDomain_GetUpdateDomain", @@ -3802,21 +3434,22 @@ "Description": "Gets the specified update domain of a cloud service. Use nextLink property in the response to get the next page of update domains. Do this till nextLink is null to fetch all the update domains." }, { - "Name": "GetUpdateDomainsCloudServicesUpdateDomains", + "Name": "ListUpdateDomains", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/updateDomains", "Method": "GET", "OperationID": "CloudServicesUpdateDomain_ListUpdateDomains", "IsLongRunning": false, "PagingMetadata": { "Method": "ListUpdateDomains", - "NextPageMethod": "ListUpdateDomainsNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, "Description": "Gets a list of all update domains in a cloud service." } ], - "Parents": ["ResourceGroupResource"], + "Parents": [ + "ResourceGroupResource" + ], "SwaggerModelName": "CloudService", "ResourceType": "Microsoft.Compute/cloudServices", "ResourceKey": "cloudServiceName", @@ -3853,7 +3486,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "ListOSVersions", - "NextPageMethod": "ListOSVersionsNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -3865,7 +3497,9 @@ "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], "OtherOperations": [], - "Parents": ["SubscriptionResource"], + "Parents": [ + "SubscriptionResource" + ], "SwaggerModelName": "OSVersion", "ResourceType": "Microsoft.Compute/locations/cloudServiceOsVersions", "ResourceKey": "osVersionName", @@ -3902,7 +3536,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "ListOSFamilies", - "NextPageMethod": "ListOSFamiliesNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -3914,7 +3547,9 @@ "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], "OtherOperations": [], - "Parents": ["SubscriptionResource"], + "Parents": [ + "SubscriptionResource" + ], "SwaggerModelName": "OSFamily", "ResourceType": "Microsoft.Compute/locations/cloudServiceOsFamilies", "ResourceKey": "osFamilyName", @@ -3926,5 +3561,7 @@ "IsExtensionResource": false, "IsSingletonResource": false } - } -} + }, + "RenameMapping": {}, + "OverrideOperationName": {} +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/CommunityGallery.tsp b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/CommunityGallery.tsp deleted file mode 100644 index 54a4d928c1..0000000000 --- a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/CommunityGallery.tsp +++ /dev/null @@ -1,36 +0,0 @@ -import "@azure-tools/typespec-azure-core"; -import "@azure-tools/typespec-azure-resource-manager"; -import "@typespec/openapi"; -import "@typespec/rest"; -import "./models.tsp"; - -using TypeSpec.Rest; -using Azure.ResourceManager; -using TypeSpec.Http; -using TypeSpec.OpenAPI; - -namespace Microsoft.Compute; -// FIXME: CommunityGallery has no properties property -/** - * Specifies information about the Community Gallery that you want to create or update. - */ -@subscriptionResource -@parentResource(SubscriptionLocationResource) -model CommunityGallery is Azure.ResourceManager.ProxyResource<{}> { - ...ResourceNameParameter< - Resource = CommunityGallery, - KeyName = "publicGalleryName", - SegmentName = "communityGalleries", - NamePattern = "" - >; -} - -@armResourceOperations -interface CommunityGalleries { - /** - * Get a community gallery by gallery public name. - */ - get is ArmResourceRead; -} - -@@doc(CommunityGallery.name, "The public name of the community gallery."); diff --git a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/CommunityGalleryImage.tsp b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/CommunityGalleryImage.tsp deleted file mode 100644 index ccdb0708f1..0000000000 --- a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/CommunityGalleryImage.tsp +++ /dev/null @@ -1,48 +0,0 @@ -import "@azure-tools/typespec-azure-core"; -import "@azure-tools/typespec-azure-resource-manager"; -import "@typespec/openapi"; -import "@typespec/rest"; -import "./models.tsp"; -import "./CommunityGallery.tsp"; - -using TypeSpec.Rest; -using Azure.ResourceManager; -using TypeSpec.Http; -using TypeSpec.OpenAPI; - -namespace Microsoft.Compute; -/** - * Specifies information about the gallery image definition that you want to create or update. - */ -@parentResource(CommunityGallery) -model CommunityGalleryImage - is Azure.ResourceManager.ProxyResource { - ...ResourceNameParameter< - Resource = CommunityGalleryImage, - KeyName = "galleryImageName", - SegmentName = "images", - NamePattern = "" - >; -} - -@armResourceOperations -interface CommunityGalleryImages { - /** - * Get a community gallery image. - */ - get is ArmResourceRead; - - /** - * List community gallery images inside a gallery. - */ - #suppress "@azure-tools/typespec-azure-core/no-operation-id" "For backward compatibility" - @operationId("CommunityGalleryImages_List") - list is ArmResourceListByParent; -} - -@@doc(CommunityGalleryImage.name, - "The name of the community gallery image definition." -); -@@doc(CommunityGalleryImage.properties, - "Describes the properties of a gallery image definition." -); diff --git a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/CommunityGalleryImageVersion.tsp b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/CommunityGalleryImageVersion.tsp deleted file mode 100644 index a0a86bbc65..0000000000 --- a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/CommunityGalleryImageVersion.tsp +++ /dev/null @@ -1,48 +0,0 @@ -import "@azure-tools/typespec-azure-core"; -import "@azure-tools/typespec-azure-resource-manager"; -import "@typespec/openapi"; -import "@typespec/rest"; -import "./models.tsp"; -import "./CommunityGalleryImage.tsp"; - -using TypeSpec.Rest; -using Azure.ResourceManager; -using TypeSpec.Http; -using TypeSpec.OpenAPI; - -namespace Microsoft.Compute; -/** - * Specifies information about the gallery image version that you want to create or update. - */ -@parentResource(CommunityGalleryImage) -model CommunityGalleryImageVersion - is Azure.ResourceManager.ProxyResource { - ...ResourceNameParameter< - Resource = CommunityGalleryImageVersion, - KeyName = "galleryImageVersionName", - SegmentName = "versions", - NamePattern = "" - >; -} - -@armResourceOperations -interface CommunityGalleryImageVersions { - /** - * Get a community gallery image version. - */ - get is ArmResourceRead; - - /** - * List community gallery image versions inside an image. - */ - #suppress "@azure-tools/typespec-azure-core/no-operation-id" "For backward compatibility" - @operationId("CommunityGalleryImageVersions_List") - list is ArmResourceListByParent; -} - -@@doc(CommunityGalleryImageVersion.name, - "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: .." -); -@@doc(CommunityGalleryImageVersion.properties, - "Describes the properties of a gallery image version." -); diff --git a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/DiskRestorePoint.tsp b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/DiskRestorePoint.tsp index 8fa92c4b9b..8e2a86cbfa 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/DiskRestorePoint.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/DiskRestorePoint.tsp @@ -3,7 +3,7 @@ import "@azure-tools/typespec-azure-resource-manager"; import "@typespec/openapi"; import "@typespec/rest"; import "./models.tsp"; -import "./RestorePoint.tsp"; +import "./RestorePointCollection.tsp"; using TypeSpec.Rest; using Azure.ResourceManager; @@ -14,7 +14,7 @@ namespace Microsoft.Compute; /** * Properties of disk restore point */ -@parentResource(RestorePoint) +@parentResource(RestorePointCollection) model DiskRestorePoint is Azure.ResourceManager.ProxyResource { ...ResourceNameParameter< @@ -32,36 +32,14 @@ interface DiskRestorePoints { */ #suppress "@azure-tools/typespec-azure-core/no-operation-id" "For backward compatibility" @operationId("DiskRestorePoint_Get") - get is ArmResourceRead< - DiskRestorePoint, - { - ...Azure.ResourceManager.Foundations.BaseParameters; - - /** - * The name of the restore point collection that the disk restore point belongs. - */ - @path - restorePointCollectionName: string; - } - >; + get is ArmResourceRead; /** * Lists diskRestorePoints under a vmRestorePoint. */ #suppress "@azure-tools/typespec-azure-core/no-operation-id" "For backward compatibility" @operationId("DiskRestorePoint_ListByRestorePoint") - listByRestorePoint is ArmResourceListByParent< - DiskRestorePoint, - { - ...Azure.ResourceManager.Foundations.BaseParameters; - - /** - * The name of the restore point collection that the disk restore point belongs. - */ - @path - restorePointCollectionName: string; - } - >; + listByRestorePoint is ArmResourceListByParent; /** * Grants access to a diskRestorePoint. @@ -71,16 +49,7 @@ interface DiskRestorePoints { grantAccess is ArmResourceActionAsync< DiskRestorePoint, GrantAccessData, - AccessUri, - { - ...Azure.ResourceManager.Foundations.BaseParameters; - - /** - * The name of the restore point collection that the disk restore point belongs. - */ - @path - restorePointCollectionName: string; - } + AccessUri >; /** @@ -88,20 +57,7 @@ interface DiskRestorePoints { */ #suppress "@azure-tools/typespec-azure-core/no-operation-id" "For backward compatibility" @operationId("DiskRestorePoint_RevokeAccess") - revokeAccess is ArmResourceActionAsync< - DiskRestorePoint, - void, - void, - { - ...Azure.ResourceManager.Foundations.BaseParameters; - - /** - * The name of the restore point collection that the disk restore point belongs. - */ - @path - restorePointCollectionName: string; - } - >; + revokeAccess is ArmResourceActionAsync; } @@doc(DiskRestorePoint.name, "The name of the disk restore point created."); diff --git a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/RestorePoint.tsp b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/RestorePoint.tsp index 6602c4f5d7..f4309e7399 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/RestorePoint.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/RestorePoint.tsp @@ -35,12 +35,6 @@ interface RestorePoints { { ...Azure.ResourceManager.Foundations.BaseParameters; - /** - * The name of the restore point collection. - */ - @path - restorePointCollectionName: string; - /** * The expand expression to apply on the operation. 'InstanceView' retrieves information about the run-time state of a restore point. */ @@ -52,18 +46,7 @@ interface RestorePoints { /** * The operation to create the restore point. Updating properties of an existing restore point is not allowed */ - create is ArmResourceCreateOrReplaceAsync< - RestorePoint, - { - ...Azure.ResourceManager.Foundations.BaseParameters; - - /** - * The name of the restore point collection. - */ - @path - restorePointCollectionName: string; - } - >; + create is ArmResourceCreateOrReplaceAsync; /** * The operation to delete the restore point. @@ -71,18 +54,7 @@ interface RestorePoints { #suppress "deprecated" "For backward compatibility" #suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "For backward compatibility" #suppress "@azure-tools/typespec-azure-core/no-response-body" "For backward compatibility" - delete is ArmResourceDeleteAsync< - RestorePoint, - { - ...Azure.ResourceManager.Foundations.BaseParameters; - - /** - * The name of the Restore Point Collection. - */ - @path - restorePointCollectionName: string; - } - >; + delete is ArmResourceDeleteAsync; } @@doc(RestorePoint.name, "The name of the restore point."); diff --git a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/RestorePointCollection.tsp b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/RestorePointCollection.tsp index 332cba77dc..a63cb301fb 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/RestorePointCollection.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/RestorePointCollection.tsp @@ -33,12 +33,6 @@ interface RestorePointCollections { { ...Azure.ResourceManager.Foundations.BaseParameters; - /** - * The name of the restore point collection. - */ - @path - restorePointCollectionName: string; - /** * The expand expression to apply on the operation. If expand=restorePoints, server will return all contained restore points in the restorePointCollection. */ @@ -50,18 +44,7 @@ interface RestorePointCollections { /** * The operation to create or update the restore point collection. Please refer to https://aka.ms/RestorePoints for more details. When updating a restore point collection, only tags may be modified. */ - createOrUpdate is ArmResourceCreateOrReplaceSync< - RestorePointCollection, - { - ...Azure.ResourceManager.Foundations.BaseParameters; - - /** - * The name of the restore point collection. - */ - @path - restorePointCollectionName: string; - } - >; + createOrUpdate is ArmResourceCreateOrReplaceSync; /** * The operation to update the restore point collection. @@ -69,16 +52,7 @@ interface RestorePointCollections { @parameterVisibility update is ArmCustomPatchSync< RestorePointCollection, - RestorePointCollectionUpdate, - { - ...Azure.ResourceManager.Foundations.BaseParameters; - - /** - * The name of the restore point collection. - */ - @path - restorePointCollectionName: string; - } + RestorePointCollectionUpdate >; /** @@ -87,18 +61,7 @@ interface RestorePointCollections { #suppress "deprecated" "For backward compatibility" #suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "For backward compatibility" #suppress "@azure-tools/typespec-azure-core/no-response-body" "For backward compatibility" - delete is ArmResourceDeleteAsync< - RestorePointCollection, - { - ...Azure.ResourceManager.Foundations.BaseParameters; - - /** - * The name of the Restore Point Collection. - */ - @path - restorePointCollectionName: string; - } - >; + delete is ArmResourceDeleteAsync; /** * Gets the list of restore point collections in a resource group. diff --git a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/RoleInstance.tsp b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/RoleInstance.tsp index 4e070b2aa4..88ef9ffc3e 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/RoleInstance.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/RoleInstance.tsp @@ -16,7 +16,7 @@ namespace Microsoft.Compute; */ @parentResource(CloudService) model RoleInstance - is Azure.ResourceManager.ProxyResource { + is Azure.ResourceManager.TrackedResource { ...ResourceNameParameter< Resource = RoleInstance, KeyName = "roleInstanceName", diff --git a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/RollingUpgradeStatusInfo.tsp b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/RollingUpgradeStatusInfo.tsp index 4545c427a5..1ba171ea68 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/RollingUpgradeStatusInfo.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/RollingUpgradeStatusInfo.tsp @@ -33,18 +33,7 @@ interface RollingUpgradeStatusInfos { */ #suppress "@azure-tools/typespec-azure-core/no-operation-id" "For backward compatibility" @operationId("VirtualMachineScaleSetRollingUpgrades_GetLatest") - getLatest is ArmResourceRead< - RollingUpgradeStatusInfo, - { - ...Azure.ResourceManager.Foundations.BaseParameters; - - /** - * The name of the VM scale set. - */ - @path - vmScaleSetName: string; - } - >; + getLatest is ArmResourceRead; } @@doc(RollingUpgradeStatusInfo.name, ""); diff --git a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/SharedGallery.tsp b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/SharedGallery.tsp deleted file mode 100644 index d6790ef8e3..0000000000 --- a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/SharedGallery.tsp +++ /dev/null @@ -1,54 +0,0 @@ -import "@azure-tools/typespec-azure-core"; -import "@azure-tools/typespec-azure-resource-manager"; -import "@typespec/openapi"; -import "@typespec/rest"; -import "./models.tsp"; - -using TypeSpec.Rest; -using Azure.ResourceManager; -using TypeSpec.Http; -using TypeSpec.OpenAPI; - -namespace Microsoft.Compute; -// FIXME: SharedGallery has no properties property -/** - * Specifies information about the Shared Gallery that you want to create or update. - */ -@subscriptionResource -@parentResource(SubscriptionLocationResource) -model SharedGallery is Azure.ResourceManager.ProxyResource<{}> { - ...ResourceNameParameter< - Resource = SharedGallery, - KeyName = "galleryUniqueName", - SegmentName = "sharedGalleries", - NamePattern = "" - >; -} - -@armResourceOperations -interface SharedGalleries { - /** - * Get a shared gallery by subscription id or tenant id. - */ - get is ArmResourceRead; - - /** - * List shared galleries by subscription id or tenant id. - */ - #suppress "@azure-tools/typespec-azure-core/no-operation-id" "For backward compatibility" - @operationId("SharedGalleries_List") - list is ArmResourceListByParent< - SharedGallery, - { - ...Azure.ResourceManager.Foundations.SubscriptionBaseParameters; - - /** - * The query parameter to decide what shared galleries to fetch when doing listing operations. - */ - @query("sharedTo") - sharedTo?: SharedToValues; - } - >; -} - -@@doc(SharedGallery.name, "The unique name of the Shared Gallery."); diff --git a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/SharedGalleryImage.tsp b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/SharedGalleryImage.tsp deleted file mode 100644 index e3494e5f9b..0000000000 --- a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/SharedGalleryImage.tsp +++ /dev/null @@ -1,59 +0,0 @@ -import "@azure-tools/typespec-azure-core"; -import "@azure-tools/typespec-azure-resource-manager"; -import "@typespec/openapi"; -import "@typespec/rest"; -import "./models.tsp"; -import "./SharedGallery.tsp"; - -using TypeSpec.Rest; -using Azure.ResourceManager; -using TypeSpec.Http; -using TypeSpec.OpenAPI; - -namespace Microsoft.Compute; -/** - * Specifies information about the gallery image definition that you want to create or update. - */ -@parentResource(SharedGallery) -model SharedGalleryImage - is Azure.ResourceManager.ProxyResource { - ...ResourceNameParameter< - Resource = SharedGalleryImage, - KeyName = "galleryImageName", - SegmentName = "images", - NamePattern = "" - >; -} - -@armResourceOperations -interface SharedGalleryImages { - /** - * Get a shared gallery image by subscription id or tenant id. - */ - get is ArmResourceRead; - - /** - * List shared gallery images by subscription id or tenant id. - */ - #suppress "@azure-tools/typespec-azure-core/no-operation-id" "For backward compatibility" - @operationId("SharedGalleryImages_List") - list is ArmResourceListByParent< - SharedGalleryImage, - { - ...Azure.ResourceManager.Foundations.BaseParameters; - - /** - * The query parameter to decide what shared galleries to fetch when doing listing operations. - */ - @query("sharedTo") - sharedTo?: SharedToValues; - } - >; -} - -@@doc(SharedGalleryImage.name, - "The name of the Shared Gallery Image Definition from which the Image Versions are to be listed." -); -@@doc(SharedGalleryImage.properties, - "Describes the properties of a gallery image definition." -); diff --git a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/SharedGalleryImageVersion.tsp b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/SharedGalleryImageVersion.tsp deleted file mode 100644 index 8e4fb01492..0000000000 --- a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/SharedGalleryImageVersion.tsp +++ /dev/null @@ -1,59 +0,0 @@ -import "@azure-tools/typespec-azure-core"; -import "@azure-tools/typespec-azure-resource-manager"; -import "@typespec/openapi"; -import "@typespec/rest"; -import "./models.tsp"; -import "./SharedGalleryImage.tsp"; - -using TypeSpec.Rest; -using Azure.ResourceManager; -using TypeSpec.Http; -using TypeSpec.OpenAPI; - -namespace Microsoft.Compute; -/** - * Specifies information about the gallery image version that you want to create or update. - */ -@parentResource(SharedGalleryImage) -model SharedGalleryImageVersion - is Azure.ResourceManager.ProxyResource { - ...ResourceNameParameter< - Resource = SharedGalleryImageVersion, - KeyName = "galleryImageVersionName", - SegmentName = "versions", - NamePattern = "" - >; -} - -@armResourceOperations -interface SharedGalleryImageVersions { - /** - * Get a shared gallery image version by subscription id or tenant id. - */ - get is ArmResourceRead; - - /** - * List shared gallery image versions by subscription id or tenant id. - */ - #suppress "@azure-tools/typespec-azure-core/no-operation-id" "For backward compatibility" - @operationId("SharedGalleryImageVersions_List") - list is ArmResourceListByParent< - SharedGalleryImageVersion, - { - ...Azure.ResourceManager.Foundations.BaseParameters; - - /** - * The query parameter to decide what shared galleries to fetch when doing listing operations. - */ - @query("sharedTo") - sharedTo?: SharedToValues; - } - >; -} - -@@doc(SharedGalleryImageVersion.name, - "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: .." -); -@@doc(SharedGalleryImageVersion.properties, - "Describes the properties of a gallery image version." -); diff --git a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/VirtualMachine.tsp b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/VirtualMachine.tsp index a4ba3eb4b8..e61aebdbd3 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/VirtualMachine.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/VirtualMachine.tsp @@ -121,18 +121,6 @@ interface VirtualMachines { } >; - /** - * Gets all the virtual machines under the specified subscription for the specified location. - */ - listByLocation is ArmResourceListAtScope< - VirtualMachine, - LocationScope, - { - ...Azure.ResourceManager.Foundations.BaseParameters; - ...LocationResourceParameter; - } - >; - /** * Lists all of the virtual machines in the specified subscription. Use the nextLink property in the response to get the next page of virtual machines. */ diff --git a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/VirtualMachineRunCommand.tsp b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/VirtualMachineRunCommand.tsp index 75fff05cf3..78a92c45c3 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/VirtualMachineRunCommand.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/VirtualMachineRunCommand.tsp @@ -82,18 +82,6 @@ interface VirtualMachineRunCommands { $expand?: string; } >; - - /** - * Lists all available run commands for a subscription in a location. - */ - list is ArmResourceListAtScope< - VirtualMachineRunCommand, - LocationScope, - { - ...Azure.ResourceManager.Foundations.BaseParameters; - ...LocationResourceParameter; - } - >; } @@doc(VirtualMachineRunCommand.name, diff --git a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/VirtualMachineRunCommandFixMe.tsp b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/VirtualMachineRunCommandFixMe.tsp new file mode 100644 index 0000000000..3c5dcb9d8c --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/VirtualMachineRunCommandFixMe.tsp @@ -0,0 +1 @@ +// You defined multiple pathes under the model VirtualMachineRunCommand. We currently don't support it. Please fix it manually. \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/VirtualMachineScaleSet.tsp b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/VirtualMachineScaleSet.tsp index faeab77c5e..9538a83e90 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/VirtualMachineScaleSet.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/VirtualMachineScaleSet.tsp @@ -58,12 +58,6 @@ interface VirtualMachineScaleSets { { ...Azure.ResourceManager.Foundations.BaseParameters; - /** - * The name of the VM scale set. - */ - @path - vmScaleSetName: string; - /** * The expand expression to apply on the operation. 'UserData' retrieves the UserData property of the VM scale set that was provided by the user during the VM scale set Create/Update operation */ @@ -75,18 +69,7 @@ interface VirtualMachineScaleSets { /** * Create or update a VM scale set. */ - createOrUpdate is ArmResourceCreateOrReplaceAsync< - VirtualMachineScaleSet, - { - ...Azure.ResourceManager.Foundations.BaseParameters; - - /** - * The name of the VM scale set to create or update. - */ - @path - vmScaleSetName: string; - } - >; + createOrUpdate is ArmResourceCreateOrReplaceAsync; /** * Update a VM scale set. @@ -94,16 +77,7 @@ interface VirtualMachineScaleSets { @parameterVisibility update is ArmCustomPatchAsync< VirtualMachineScaleSet, - VirtualMachineScaleSetUpdate, - { - ...Azure.ResourceManager.Foundations.BaseParameters; - - /** - * The name of the VM scale set to create or update. - */ - @path - vmScaleSetName: string; - } + VirtualMachineScaleSetUpdate >; /** @@ -117,12 +91,6 @@ interface VirtualMachineScaleSets { { ...Azure.ResourceManager.Foundations.BaseParameters; - /** - * The name of the VM scale set. - */ - @path - vmScaleSetName: string; - /** * Optional parameter to force delete a VM scale set. (Feature in Preview) */ @@ -138,18 +106,6 @@ interface VirtualMachineScaleSets { @operationId("VirtualMachineScaleSets_List") list is ArmResourceListByParent; - /** - * Gets all the VM scale sets under the specified subscription for the specified location. - */ - listByLocation is ArmResourceListAtScope< - VirtualMachineScaleSet, - LocationScope, - { - ...Azure.ResourceManager.Foundations.BaseParameters; - ...LocationResourceParameter; - } - >; - /** * Gets a list of all VM Scale Sets in the subscription, regardless of the associated resource group. Use nextLink property in the response to get the next page of VM Scale Sets. Do this till nextLink is null to fetch all the VM Scale Sets. */ @@ -165,12 +121,6 @@ interface VirtualMachineScaleSets { { ...Azure.ResourceManager.Foundations.BaseParameters; - /** - * The name of the VM scale set. - */ - @path - vmScaleSetName: string; - /** * Optional parameter to hibernate a virtual machine from the VM scale set. (This feature is available for VMSS with Flexible OrchestrationMode only) */ @@ -189,12 +139,6 @@ interface VirtualMachineScaleSets { { ...Azure.ResourceManager.Foundations.BaseParameters; - /** - * The name of the VM scale set. - */ - @path - vmScaleSetName: string; - /** * Optional parameter to force delete virtual machines from the VM scale set. (Feature in Preview) */ @@ -213,12 +157,6 @@ interface VirtualMachineScaleSets { { ...Azure.ResourceManager.Foundations.BaseParameters; - /** - * The name of the VM scale set. - */ - @path - vmScaleSetName: string; - /** * The parameter to request non-graceful VM shutdown. True value for this flag indicates non-graceful shutdown whereas false indicates otherwise. Default value for this flag is false if not specified */ @@ -233,16 +171,7 @@ interface VirtualMachineScaleSets { restart is ArmResourceActionAsync< VirtualMachineScaleSet, VirtualMachineScaleSetVMInstanceIDs, - void, - { - ...Azure.ResourceManager.Foundations.BaseParameters; - - /** - * The name of the VM scale set. - */ - @path - vmScaleSetName: string; - } + void >; /** @@ -251,35 +180,13 @@ interface VirtualMachineScaleSets { start is ArmResourceActionAsync< VirtualMachineScaleSet, VirtualMachineScaleSetVMInstanceIDs, - void, - { - ...Azure.ResourceManager.Foundations.BaseParameters; - - /** - * The name of the VM scale set. - */ - @path - vmScaleSetName: string; - } + void >; /** * Reapplies the Virtual Machine Scale Set Virtual Machine Profile to the Virtual Machine Instances */ - reapply is ArmResourceActionAsync< - VirtualMachineScaleSet, - void, - void, - { - ...Azure.ResourceManager.Foundations.BaseParameters; - - /** - * The name of the VM scale set. - */ - @path - vmScaleSetName: string; - } - >; + reapply is ArmResourceActionAsync; /** * Shuts down all the virtual machines in the virtual machine scale set, moves them to a new node, and powers them back on. @@ -287,16 +194,7 @@ interface VirtualMachineScaleSets { redeploy is ArmResourceActionAsync< VirtualMachineScaleSet, VirtualMachineScaleSetVMInstanceIDs, - void, - { - ...Azure.ResourceManager.Foundations.BaseParameters; - - /** - * The name of the VM scale set. - */ - @path - vmScaleSetName: string; - } + void >; /** @@ -305,16 +203,7 @@ interface VirtualMachineScaleSets { performMaintenance is ArmResourceActionAsync< VirtualMachineScaleSet, VirtualMachineScaleSetVMInstanceIDs, - void, - { - ...Azure.ResourceManager.Foundations.BaseParameters; - - /** - * The name of the VM scale set. - */ - @path - vmScaleSetName: string; - } + void >; /** @@ -323,16 +212,7 @@ interface VirtualMachineScaleSets { updateInstances is ArmResourceActionAsync< VirtualMachineScaleSet, VirtualMachineScaleSetVMInstanceRequiredIDs, - void, - { - ...Azure.ResourceManager.Foundations.BaseParameters; - - /** - * The name of the VM scale set. - */ - @path - vmScaleSetName: string; - } + void >; /** @@ -341,16 +221,7 @@ interface VirtualMachineScaleSets { reimage is ArmResourceActionAsync< VirtualMachineScaleSet, VirtualMachineScaleSetReimageParameters, - void, - { - ...Azure.ResourceManager.Foundations.BaseParameters; - - /** - * The name of the VM scale set. - */ - @path - vmScaleSetName: string; - } + void >; /** @@ -359,16 +230,7 @@ interface VirtualMachineScaleSets { reimageAll is ArmResourceActionAsync< VirtualMachineScaleSet, VirtualMachineScaleSetVMInstanceIDs, - void, - { - ...Azure.ResourceManager.Foundations.BaseParameters; - - /** - * The name of the VM scale set. - */ - @path - vmScaleSetName: string; - } + void >; /** @@ -381,12 +243,6 @@ interface VirtualMachineScaleSets { { ...Azure.ResourceManager.Foundations.BaseParameters; - /** - * The name of the VM scale set. - */ - @path - vmScaleSetName: string; - /** * The platform update domain for which a manual recovery walk is requested */ @@ -413,16 +269,7 @@ interface VirtualMachineScaleSets { convertToSinglePlacementGroup is ArmResourceActionSync< VirtualMachineScaleSet, VMScaleSetConvertToSinglePlacementGroupInput, - void, - { - ...Azure.ResourceManager.Foundations.BaseParameters; - - /** - * The name of the virtual machine scale set to create or update. - */ - @path - vmScaleSetName: string; - } + void >; /** @@ -431,16 +278,7 @@ interface VirtualMachineScaleSets { setOrchestrationServiceState is ArmResourceActionAsync< VirtualMachineScaleSet, OrchestrationServiceStateInput, - void, - { - ...Azure.ResourceManager.Foundations.BaseParameters; - - /** - * The name of the virtual machine scale set to create or update. - */ - @path - vmScaleSetName: string; - } + void >; /** @@ -448,40 +286,14 @@ interface VirtualMachineScaleSets { */ #suppress "@azure-tools/typespec-azure-core/no-operation-id" "For backward compatibility" @operationId("VirtualMachineScaleSetRollingUpgrades_Cancel") - cancel is ArmResourceActionAsync< - VirtualMachineScaleSet, - void, - void, - { - ...Azure.ResourceManager.Foundations.BaseParameters; - - /** - * The name of the VM scale set. - */ - @path - vmScaleSetName: string; - } - >; + cancel is ArmResourceActionAsync; /** * Starts a rolling upgrade to move all virtual machine scale set instances to the latest available Platform Image OS version. Instances which are already running the latest available OS version are not affected. */ #suppress "@azure-tools/typespec-azure-core/no-operation-id" "For backward compatibility" @operationId("VirtualMachineScaleSetRollingUpgrades_StartOSUpgrade") - startOSUpgrade is ArmResourceActionAsync< - VirtualMachineScaleSet, - void, - void, - { - ...Azure.ResourceManager.Foundations.BaseParameters; - - /** - * The name of the VM scale set. - */ - @path - vmScaleSetName: string; - } - >; + startOSUpgrade is ArmResourceActionAsync; /** * Starts a rolling upgrade to move all extensions for all virtual machine scale set instances to the latest available extension version. Instances which are already running the latest extension versions are not affected. @@ -491,16 +303,7 @@ interface VirtualMachineScaleSets { startExtensionUpgrade is ArmResourceActionAsync< VirtualMachineScaleSet, void, - void, - { - ...Azure.ResourceManager.Foundations.BaseParameters; - - /** - * The name of the VM scale set. - */ - @path - vmScaleSetName: string; - } + void >; /** diff --git a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/VirtualMachineScaleSetExtension.tsp b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/VirtualMachineScaleSetExtension.tsp index 4e79383021..374d8a17d8 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/VirtualMachineScaleSetExtension.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/VirtualMachineScaleSetExtension.tsp @@ -41,12 +41,6 @@ interface VirtualMachineScaleSetExtensions { { ...Azure.ResourceManager.Foundations.BaseParameters; - /** - * The name of the VM scale set containing the extension. - */ - @path - vmScaleSetName: string; - /** * The expand expression to apply on the operation. */ @@ -58,18 +52,7 @@ interface VirtualMachineScaleSetExtensions { /** * The operation to create or update an extension. */ - createOrUpdate is ArmResourceCreateOrReplaceAsync< - VirtualMachineScaleSetExtension, - { - ...Azure.ResourceManager.Foundations.BaseParameters; - - /** - * The name of the VM scale set where the extension should be create or updated. - */ - @path - vmScaleSetName: string; - } - >; + createOrUpdate is ArmResourceCreateOrReplaceAsync; /** * The operation to update an extension. @@ -77,16 +60,7 @@ interface VirtualMachineScaleSetExtensions { @parameterVisibility update is ArmCustomPatchAsync< VirtualMachineScaleSetExtension, - VirtualMachineScaleSetExtensionUpdate, - { - ...Azure.ResourceManager.Foundations.BaseParameters; - - /** - * The name of the VM scale set where the extension should be updated. - */ - @path - vmScaleSetName: string; - } + VirtualMachineScaleSetExtensionUpdate >; /** @@ -95,36 +69,14 @@ interface VirtualMachineScaleSetExtensions { #suppress "deprecated" "For backward compatibility" #suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "For backward compatibility" #suppress "@azure-tools/typespec-azure-core/no-response-body" "For backward compatibility" - delete is ArmResourceDeleteAsync< - VirtualMachineScaleSetExtension, - { - ...Azure.ResourceManager.Foundations.BaseParameters; - - /** - * The name of the VM scale set where the extension should be deleted. - */ - @path - vmScaleSetName: string; - } - >; + delete is ArmResourceDeleteAsync; /** * Gets a list of all extensions in a VM scale set. */ #suppress "@azure-tools/typespec-azure-core/no-operation-id" "For backward compatibility" @operationId("VirtualMachineScaleSetExtensions_List") - list is ArmResourceListByParent< - VirtualMachineScaleSetExtension, - { - ...Azure.ResourceManager.Foundations.BaseParameters; - - /** - * The name of the VM scale set containing the extension. - */ - @path - vmScaleSetName: string; - } - >; + list is ArmResourceListByParent; } @@doc(VirtualMachineScaleSetExtension.name, diff --git a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/VirtualMachineScaleSetVM.tsp b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/VirtualMachineScaleSetVM.tsp index 212da798e2..b5b48453d4 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/VirtualMachineScaleSetVM.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/VirtualMachineScaleSetVM.tsp @@ -71,12 +71,6 @@ interface VirtualMachineScaleSetVMS { { ...Azure.ResourceManager.Foundations.BaseParameters; - /** - * The name of the VM scale set. - */ - @path - vmScaleSetName: string; - /** * The expand expression to apply on the operation. 'InstanceView' will retrieve the instance view of the virtual machine. 'UserData' will retrieve the UserData of the virtual machine. */ @@ -90,18 +84,7 @@ interface VirtualMachineScaleSetVMS { */ #suppress "@azure-tools/typespec-azure-core/no-operation-id" "For backward compatibility" @operationId("VirtualMachineScaleSetVMs_Update") - update is ArmResourceCreateOrReplaceAsync< - VirtualMachineScaleSetVM, - { - ...Azure.ResourceManager.Foundations.BaseParameters; - - /** - * The name of the VM scale set where the extension should be create or updated. - */ - @path - vmScaleSetName: string; - } - >; + update is ArmResourceCreateOrReplaceAsync; /** * Deletes a virtual machine from a VM scale set. @@ -116,12 +99,6 @@ interface VirtualMachineScaleSetVMS { { ...Azure.ResourceManager.Foundations.BaseParameters; - /** - * The name of the VM scale set. - */ - @path - vmScaleSetName: string; - /** * Optional parameter to force delete a virtual machine from a VM scale set. (Feature in Preview) */ @@ -130,36 +107,6 @@ interface VirtualMachineScaleSetVMS { } >; - /** - * Gets a list of all virtual machines in a VM scale sets. - */ - #suppress "@azure-tools/typespec-azure-core/no-operation-id" "For backward compatibility" - @operationId("VirtualMachineScaleSetVMs_List") - list is ArmResourceListByParent< - VirtualMachineScaleSetVM, - { - ...Azure.ResourceManager.Foundations.BaseParameters; - - /** - * The filter to apply to the operation. Allowed values are 'startswith(instanceView/statuses/code, 'PowerState') eq true', 'properties/latestModelApplied eq true', 'properties/latestModelApplied eq false'. - */ - @query("$filter") - $filter?: string; - - /** - * The list parameters. Allowed values are 'instanceView', 'instanceView/statuses'. - */ - @query("$select") - $select?: string; - - /** - * The expand expression to apply to the operation. Allowed values are 'instanceView'. - */ - @query("$expand") - $expand?: string; - } - >; - /** * Reimages (upgrade the operating system) a specific virtual machine in a VM scale set. */ @@ -168,16 +115,7 @@ interface VirtualMachineScaleSetVMS { reimage is ArmResourceActionAsync< VirtualMachineScaleSetVM, VirtualMachineScaleSetVMReimageParameters, - void, - { - ...Azure.ResourceManager.Foundations.BaseParameters; - - /** - * The name of the VM scale set. - */ - @path - vmScaleSetName: string; - } + void >; /** @@ -185,40 +123,14 @@ interface VirtualMachineScaleSetVMS { */ #suppress "@azure-tools/typespec-azure-core/no-operation-id" "For backward compatibility" @operationId("VirtualMachineScaleSetVMs_ReimageAll") - reimageAll is ArmResourceActionAsync< - VirtualMachineScaleSetVM, - void, - void, - { - ...Azure.ResourceManager.Foundations.BaseParameters; - - /** - * The name of the VM scale set. - */ - @path - vmScaleSetName: string; - } - >; + reimageAll is ArmResourceActionAsync; /** * Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and releases the compute resources it uses. You are not billed for the compute resources of this virtual machine once it is deallocated. */ #suppress "@azure-tools/typespec-azure-core/no-operation-id" "For backward compatibility" @operationId("VirtualMachineScaleSetVMs_Deallocate") - deallocate is ArmResourceActionAsync< - VirtualMachineScaleSetVM, - void, - void, - { - ...Azure.ResourceManager.Foundations.BaseParameters; - - /** - * The name of the VM scale set. - */ - @path - vmScaleSetName: string; - } - >; + deallocate is ArmResourceActionAsync; /** * Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges. @@ -232,12 +144,6 @@ interface VirtualMachineScaleSetVMS { { ...Azure.ResourceManager.Foundations.BaseParameters; - /** - * The name of the VM scale set. - */ - @path - vmScaleSetName: string; - /** * The parameter to request non-graceful VM shutdown. True value for this flag indicates non-graceful shutdown whereas false indicates otherwise. Default value for this flag is false if not specified */ @@ -251,60 +157,21 @@ interface VirtualMachineScaleSetVMS { */ #suppress "@azure-tools/typespec-azure-core/no-operation-id" "For backward compatibility" @operationId("VirtualMachineScaleSetVMs_Restart") - restart is ArmResourceActionAsync< - VirtualMachineScaleSetVM, - void, - void, - { - ...Azure.ResourceManager.Foundations.BaseParameters; - - /** - * The name of the VM scale set. - */ - @path - vmScaleSetName: string; - } - >; + restart is ArmResourceActionAsync; /** * Starts a virtual machine in a VM scale set. */ #suppress "@azure-tools/typespec-azure-core/no-operation-id" "For backward compatibility" @operationId("VirtualMachineScaleSetVMs_Start") - start is ArmResourceActionAsync< - VirtualMachineScaleSetVM, - void, - void, - { - ...Azure.ResourceManager.Foundations.BaseParameters; - - /** - * The name of the VM scale set. - */ - @path - vmScaleSetName: string; - } - >; + start is ArmResourceActionAsync; /** * Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers it back on. */ #suppress "@azure-tools/typespec-azure-core/no-operation-id" "For backward compatibility" @operationId("VirtualMachineScaleSetVMs_Redeploy") - redeploy is ArmResourceActionAsync< - VirtualMachineScaleSetVM, - void, - void, - { - ...Azure.ResourceManager.Foundations.BaseParameters; - - /** - * The name of the VM scale set. - */ - @path - vmScaleSetName: string; - } - >; + redeploy is ArmResourceActionAsync; /** * The operation to retrieve SAS URIs of boot diagnostic logs for a virtual machine in a VM scale set. @@ -318,12 +185,6 @@ interface VirtualMachineScaleSetVMS { { ...Azure.ResourceManager.Foundations.BaseParameters; - /** - * The name of the VM scale set. - */ - @path - vmScaleSetName: string; - /** * Expiration duration in minutes for the SAS URIs with a value between 1 to 1440 minutes. **Note:** If not specified, SAS URIs will be generated with a default expiration duration of 120 minutes. */ @@ -340,16 +201,7 @@ interface VirtualMachineScaleSetVMS { performMaintenance is ArmResourceActionAsync< VirtualMachineScaleSetVM, void, - void, - { - ...Azure.ResourceManager.Foundations.BaseParameters; - - /** - * The name of the VM scale set. - */ - @path - vmScaleSetName: string; - } + void >; /** @@ -359,16 +211,7 @@ interface VirtualMachineScaleSetVMS { @operationId("VirtualMachineScaleSetVMs_SimulateEviction") simulateEviction is ArmResourceActionNoContentSync< VirtualMachineScaleSetVM, - void, - { - ...Azure.ResourceManager.Foundations.BaseParameters; - - /** - * The name of the VM scale set. - */ - @path - vmScaleSetName: string; - } + void >; /** @@ -379,16 +222,7 @@ interface VirtualMachineScaleSetVMS { runCommand is ArmResourceActionAsync< VirtualMachineScaleSetVM, RunCommandInput, - RunCommandResult, - { - ...Azure.ResourceManager.Foundations.BaseParameters; - - /** - * The name of the VM scale set. - */ - @path - vmScaleSetName: string; - } + RunCommandResult >; /** diff --git a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/VirtualMachineScaleSetVMExtension.tsp b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/VirtualMachineScaleSetVMExtension.tsp index f118c19117..982bc6a993 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/VirtualMachineScaleSetVMExtension.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/VirtualMachineScaleSetVMExtension.tsp @@ -49,12 +49,6 @@ interface VirtualMachineScaleSetVMExtensions { { ...Azure.ResourceManager.Foundations.BaseParameters; - /** - * The name of the VM scale set. - */ - @path - vmScaleSetName: string; - /** * The expand expression to apply on the operation. */ @@ -68,18 +62,7 @@ interface VirtualMachineScaleSetVMExtensions { */ #suppress "@azure-tools/typespec-azure-core/no-operation-id" "For backward compatibility" @operationId("VirtualMachineScaleSetVMExtensions_CreateOrUpdate") - createOrUpdate is ArmResourceCreateOrReplaceAsync< - VirtualMachineScaleSetVMExtension, - { - ...Azure.ResourceManager.Foundations.BaseParameters; - - /** - * The name of the VM scale set. - */ - @path - vmScaleSetName: string; - } - >; + createOrUpdate is ArmResourceCreateOrReplaceAsync; /** * The operation to update the VMSS VM extension. @@ -89,16 +72,7 @@ interface VirtualMachineScaleSetVMExtensions { @operationId("VirtualMachineScaleSetVMExtensions_Update") update is ArmCustomPatchAsync< VirtualMachineScaleSetVMExtension, - VirtualMachineScaleSetVMExtensionUpdate, - { - ...Azure.ResourceManager.Foundations.BaseParameters; - - /** - * The name of the VM scale set. - */ - @path - vmScaleSetName: string; - } + VirtualMachineScaleSetVMExtensionUpdate >; /** @@ -109,18 +83,7 @@ interface VirtualMachineScaleSetVMExtensions { #suppress "@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes" "For backward compatibility" #suppress "@azure-tools/typespec-azure-core/no-response-body" "For backward compatibility" @operationId("VirtualMachineScaleSetVMExtensions_Delete") - delete is ArmResourceDeleteAsync< - VirtualMachineScaleSetVMExtension, - { - ...Azure.ResourceManager.Foundations.BaseParameters; - - /** - * The name of the VM scale set. - */ - @path - vmScaleSetName: string; - } - >; + delete is ArmResourceDeleteAsync; /** * The operation to get all extensions of an instance in Virtual Machine Scaleset. @@ -132,12 +95,6 @@ interface VirtualMachineScaleSetVMExtensions { { ...Azure.ResourceManager.Foundations.BaseParameters; - /** - * The name of the VM scale set. - */ - @path - vmScaleSetName: string; - /** * The expand expression to apply on the operation. */ diff --git a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/client.tsp b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/client.tsp index e96d66ae6d..5c72531950 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/client.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/client.tsp @@ -114,9 +114,21 @@ using Microsoft.Compute; #suppress "deprecated" "@flattenProperty decorator is not recommended to use." @@flattenProperty(PirSharedGalleryResource.identifier); +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(SharedGalleryImage.properties); + +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(SharedGalleryImageVersion.properties); + #suppress "deprecated" "@flattenProperty decorator is not recommended to use." @@flattenProperty(PirCommunityGalleryResource.identifier); +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(CommunityGalleryImage.properties); + +#suppress "deprecated" "@flattenProperty decorator is not recommended to use." +@@flattenProperty(CommunityGalleryImageVersion.properties); + #suppress "deprecated" "@flattenProperty decorator is not recommended to use." @@flattenProperty(LoadBalancerConfiguration.properties); @@ -216,18 +228,6 @@ using Microsoft.Compute; #suppress "deprecated" "@flattenProperty decorator is not recommended to use." @@flattenProperty(GalleryApplicationVersion.properties); -#suppress "deprecated" "@flattenProperty decorator is not recommended to use." -@@flattenProperty(SharedGalleryImage.properties); - -#suppress "deprecated" "@flattenProperty decorator is not recommended to use." -@@flattenProperty(SharedGalleryImageVersion.properties); - -#suppress "deprecated" "@flattenProperty decorator is not recommended to use." -@@flattenProperty(CommunityGalleryImage.properties); - -#suppress "deprecated" "@flattenProperty decorator is not recommended to use." -@@flattenProperty(CommunityGalleryImageVersion.properties); - #suppress "deprecated" "@flattenProperty decorator is not recommended to use." @@flattenProperty(RoleInstance.properties); diff --git a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/CommunityGalleries_Get.json b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/CommunityGalleries_Get.json deleted file mode 100644 index a9c1bb7e08..0000000000 --- a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/CommunityGalleries_Get.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "parameters": { - "api-version": "2022-03-03", - "location": "myLocation", - "publicGalleryName": "publicGalleryName", - "subscriptionId": "{subscription-id}" - }, - "responses": { - "200": { - "body": { - "name": "publicGalleryName", - "type": "Microsoft.Compute/Locations/CommunityGallery", - "identifier": { - "uniqueId": "/CommunityGalleries/publicGalleryName" - }, - "location": "myLocation" - } - } - }, - "operationId": "CommunityGalleries_Get", - "title": "Get a community gallery." -} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/CommunityGalleryImageVersions_Get.json b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/CommunityGalleryImageVersions_Get.json deleted file mode 100644 index 5160f6236c..0000000000 --- a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/CommunityGalleryImageVersions_Get.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "parameters": { - "api-version": "2022-03-03", - "galleryImageName": "myGalleryImageName", - "galleryImageVersionName": "myGalleryImageVersionName", - "location": "myLocation", - "publicGalleryName": "publicGalleryName", - "subscriptionId": "{subscription-id}" - }, - "responses": { - "200": { - "body": { - "name": "myGalleryImageVersionName", - "type": "Microsoft.Compute/Locations/CommunityGalleryImageVersion", - "identifier": { - "uniqueId": "/CommunityGalleries/publicGalleryName/Images/myGalleryImageName/Versions/myGalleryImageVersionName" - }, - "location": "myLocation", - "properties": { - "endOfLifeDate": "2022-03-20T09:12:28Z", - "excludeFromLatest": false, - "publishedDate": "2018-03-20T09:12:28Z", - "storageProfile": { - "osDiskImage": { - "diskSizeGB": 29, - "hostCaching": "None" - } - } - } - } - } - }, - "operationId": "CommunityGalleryImageVersions_Get", - "title": "Get a community gallery image version." -} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/CommunityGalleryImageVersions_List.json b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/CommunityGalleryImageVersions_List.json deleted file mode 100644 index 86f7c0d62f..0000000000 --- a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/CommunityGalleryImageVersions_List.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "parameters": { - "api-version": "2022-03-03", - "galleryImageName": "myGalleryImageName", - "location": "myLocation", - "publicGalleryName": "publicGalleryName", - "subscriptionId": "{subscription-id}" - }, - "responses": { - "200": { - "body": { - "nextLink": "http://svchost:99/subscriptions/{subscription-Id}/providers/Microsoft.Compute/communityGalleries/publicGalleryName/images/myGalleryImageName/versions?$skiptoken={token}/communityGalleries/publicGalleryName/images/myGalleryImageName/versions/myGalleryImageVersionName", - "value": [ - { - "name": "myGalleryImageVersionName", - "identifier": { - "uniqueId": "/CommunityGalleries/publicGalleryName/Images/myGalleryImageName/Versions/myGalleryImageVersionName" - }, - "location": "myLocation", - "properties": { - "endOfLifeDate": "2022-03-20T09:12:28Z", - "excludeFromLatest": false, - "publishedDate": "2018-03-20T09:12:28Z", - "storageProfile": { - "osDiskImage": { - "diskSizeGB": 29, - "hostCaching": "None" - } - } - } - } - ] - } - } - }, - "operationId": "CommunityGalleryImageVersions_List", - "title": "List community gallery image versions." -} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/CommunityGalleryImages_Get.json b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/CommunityGalleryImages_Get.json deleted file mode 100644 index 7b9d86cb4e..0000000000 --- a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/CommunityGalleryImages_Get.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "parameters": { - "api-version": "2022-03-03", - "galleryImageName": "myGalleryImageName", - "location": "myLocation", - "publicGalleryName": "publicGalleryName", - "subscriptionId": "{subscription-id}" - }, - "responses": { - "200": { - "body": { - "name": "myGalleryImageName", - "type": "Microsoft.Compute/Locations/CommunityGalleryImage", - "identifier": { - "uniqueId": "/CommunityGalleries/publicGalleryName/Images/myGalleryImageName" - }, - "location": "myLocation", - "properties": { - "eula": "https://www.microsoft.com/en-us/", - "hyperVGeneration": "V1", - "identifier": { - "offer": "myOfferName", - "publisher": "myPublisherName", - "sku": "mySkuName" - }, - "osState": "Generalized", - "osType": "Windows", - "privacyStatementUri": "https://www.microsoft.com/en-us/" - } - } - } - }, - "operationId": "CommunityGalleryImages_Get", - "title": "Get a community gallery image." -} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/CommunityGalleryImages_List.json b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/CommunityGalleryImages_List.json deleted file mode 100644 index 6407b7fd55..0000000000 --- a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/CommunityGalleryImages_List.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "parameters": { - "api-version": "2022-03-03", - "location": "myLocation", - "publicGalleryName": "publicGalleryName", - "subscriptionId": "{subscription-id}" - }, - "responses": { - "200": { - "body": { - "nextLink": "http://svchost:99/subscriptions/{subscription-Id}/providers/Microsoft.Compute/communityGalleries/publicGalleryName/images?$skiptoken={token}/communityGalleries/publicGalleryName/images/myGalleryImageName", - "value": [ - { - "name": "myGalleryImageName", - "identifier": { - "uniqueId": "/CommunityGalleries/publicGalleryName/Images/myGalleryImageName" - }, - "location": "myLocation", - "properties": { - "hyperVGeneration": "V1", - "identifier": { - "offer": "myOfferName", - "publisher": "myPublisherName", - "sku": "mySkuName" - }, - "osState": "Generalized", - "osType": "Windows" - } - } - ] - } - } - }, - "operationId": "CommunityGalleryImages_List", - "title": "List community gallery images." -} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/SharedGalleries_Get.json b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/SharedGalleries_Get.json deleted file mode 100644 index c47cfbb40e..0000000000 --- a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/SharedGalleries_Get.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "parameters": { - "api-version": "2022-03-03", - "galleryUniqueName": "galleryUniqueName", - "location": "myLocation", - "subscriptionId": "{subscription-id}" - }, - "responses": { - "200": { - "body": { - "name": "myGalleryName", - "identifier": { - "uniqueId": "/SharedGalleries/galleryUniqueName" - }, - "location": "myLocation" - } - } - }, - "operationId": "SharedGalleries_Get", - "title": "Get a shared gallery." -} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/SharedGalleries_List.json b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/SharedGalleries_List.json deleted file mode 100644 index 5f4d208f5d..0000000000 --- a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/SharedGalleries_List.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "parameters": { - "api-version": "2022-03-03", - "location": "myLocation", - "subscriptionId": "{subscription-id}" - }, - "responses": { - "200": { - "body": { - "nextLink": "http://svchost:99/subscriptions/{subscriptionId}/providers/Microsoft.Compute/sharedGalleries?$skiptoken={token}/Subscriptions/{subscriptionId}/galleries/galleryUniqueName", - "value": [ - { - "name": "galleryUniqueName", - "identifier": { - "uniqueId": "/SharedGalleries/galleryUniqueName" - }, - "location": "myLocation" - } - ] - } - } - }, - "operationId": "SharedGalleries_List", - "title": "List shared galleries." -} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/SharedGalleryImageVersions_Get.json b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/SharedGalleryImageVersions_Get.json deleted file mode 100644 index 4f6f72dcf4..0000000000 --- a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/SharedGalleryImageVersions_Get.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "parameters": { - "api-version": "2022-03-03", - "galleryImageName": "myGalleryImageName", - "galleryImageVersionName": "myGalleryImageVersionName", - "galleryUniqueName": "galleryUniqueName", - "location": "myLocation", - "subscriptionId": "{subscription-id}" - }, - "responses": { - "200": { - "body": { - "name": "myGalleryImageVersionName", - "identifier": { - "uniqueId": "/SharedGalleries/galleryUniqueName/Images/myGalleryImageName/Versions/myGalleryImageVersionName" - }, - "location": "myLocation", - "properties": { - "endOfLifeDate": "2022-03-20T09:12:28Z", - "excludeFromLatest": false, - "publishedDate": "2018-03-20T09:12:28Z", - "storageProfile": { - "osDiskImage": { - "diskSizeGB": 29, - "hostCaching": "None" - } - } - } - } - } - }, - "operationId": "SharedGalleryImageVersions_Get", - "title": "Get a shared gallery image version." -} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/SharedGalleryImageVersions_List.json b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/SharedGalleryImageVersions_List.json deleted file mode 100644 index aaed0c1156..0000000000 --- a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/SharedGalleryImageVersions_List.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "parameters": { - "api-version": "2022-03-03", - "galleryImageName": "myGalleryImageName", - "galleryUniqueName": "galleryUniqueName", - "location": "myLocation", - "subscriptionId": "{subscription-id}" - }, - "responses": { - "200": { - "body": { - "nextLink": "http://svchost:99/subscriptions/{subscription-Id}/providers/Microsoft.Compute/sharedGalleries/galleryUniqueName/images/myGalleryImageName/versions?$skiptoken={token}/Subscriptions/{subscription-Id}/galleries/galleryUniqueName/images/myGalleryImageName/versions/myGalleryImageVersionName", - "value": [ - { - "name": "myGalleryImageVersionName", - "identifier": { - "uniqueId": "/SharedGalleries/galleryUniqueName/Images/myGalleryImageName/Versions/myGalleryImageVersionName" - }, - "location": "myLocation", - "properties": { - "endOfLifeDate": "2022-03-20T09:12:28Z", - "excludeFromLatest": false, - "publishedDate": "2018-03-20T09:12:28Z", - "storageProfile": { - "osDiskImage": { - "diskSizeGB": 29, - "hostCaching": "None" - } - } - } - } - ] - } - } - }, - "operationId": "SharedGalleryImageVersions_List", - "title": "List shared gallery image versions." -} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/SharedGalleryImages_Get.json b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/SharedGalleryImages_Get.json deleted file mode 100644 index ae8c22b378..0000000000 --- a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/SharedGalleryImages_Get.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "parameters": { - "api-version": "2022-03-03", - "galleryImageName": "myGalleryImageName", - "galleryUniqueName": "galleryUniqueName", - "location": "myLocation", - "subscriptionId": "{subscription-id}" - }, - "responses": { - "200": { - "body": { - "name": "myGalleryImageName", - "identifier": { - "uniqueId": "/SharedGalleries/galleryUniqueName/Images/myGalleryImageName" - }, - "location": "myLocation", - "properties": { - "eula": "https://www.microsoft.com/en-us/", - "hyperVGeneration": "V1", - "identifier": { - "offer": "myOfferName", - "publisher": "myPublisherName", - "sku": "mySkuName" - }, - "osState": "Generalized", - "osType": "Windows", - "privacyStatementUri": "https://www.microsoft.com/en-us/" - } - } - } - }, - "operationId": "SharedGalleryImages_Get", - "title": "Get a shared gallery image." -} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/SharedGalleryImages_List.json b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/SharedGalleryImages_List.json deleted file mode 100644 index f60b386631..0000000000 --- a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/SharedGalleryImages_List.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "parameters": { - "api-version": "2022-03-03", - "galleryUniqueName": "galleryUniqueName", - "location": "myLocation", - "subscriptionId": "{subscription-id}" - }, - "responses": { - "200": { - "body": { - "nextLink": "http://svchost:99/subscriptions/{subscription-Id}/providers/Microsoft.Compute/sharedGalleries/galleryUniqueName/images?$skiptoken={token}/Subscriptions/{subscription-Id}/galleries/galleryUniqueName/images/myGalleryImageName", - "value": [ - { - "name": "myGalleryImageName", - "identifier": { - "uniqueId": "/SharedGalleries/galleryUniqueName/Images/myGalleryImageName" - }, - "location": "myLocation", - "properties": { - "hyperVGeneration": "V1", - "identifier": { - "offer": "myOfferName", - "publisher": "myPublisherName", - "sku": "mySkuName" - }, - "osState": "Generalized", - "osType": "Windows" - } - } - ] - } - } - }, - "operationId": "SharedGalleryImages_List", - "title": "List shared gallery images." -} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/VirtualMachineRunCommands_List.json b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/VirtualMachineRunCommands_List.json deleted file mode 100644 index cf7ad918a8..0000000000 --- a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/VirtualMachineRunCommands_List.json +++ /dev/null @@ -1,87 +0,0 @@ -{ - "parameters": { - "api-version": "2023-07-01", - "location": "SoutheastAsia", - "subscriptionId": "subid" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "description": "Configure the machine to enable remote PowerShell.", - "$schema": "http://schema.management.azure.com/schemas/2016-11-17/runcommands.json", - "id": "EnableRemotePS", - "label": "Enable remote PowerShell", - "osType": "Windows" - }, - { - "description": "Shows detailed information for the IP address, subnet mask and default gateway for each adapter bound to TCP/IP.", - "$schema": "http://schema.management.azure.com/schemas/2016-11-17/runcommands.json", - "id": "IPConfig", - "label": "List IP configuration", - "osType": "Windows" - }, - { - "description": "Custom multiline PowerShell script should be defined in script property. Optional parameters can be set in parameters property.", - "$schema": "http://schema.management.azure.com/schemas/2016-11-17/runcommands.json", - "id": "RunPowerShellScript", - "label": "Executes a PowerShell script", - "osType": "Windows" - }, - { - "description": "Custom multiline shell script should be defined in script property. Optional parameters can be set in parameters property.", - "$schema": "http://schema.management.azure.com/schemas/2016-11-17/runcommands.json", - "id": "RunShellScript", - "label": "Executes a Linux shell script", - "osType": "Linux" - }, - { - "description": "Get the configuration of all network interfaces.", - "$schema": "http://schema.management.azure.com/schemas/2016-11-17/runcommands.json", - "id": "ifconfig", - "label": "List network configuration", - "osType": "Linux" - }, - { - "description": "Checks if the local Administrator account is disabled, and if so enables it.", - "$schema": "http://schema.management.azure.com/schemas/2016-11-17/runcommands.json", - "id": "EnableAdminAccount", - "label": "Enable administrator account", - "osType": "Windows" - }, - { - "description": "Reset built-in Administrator account password.", - "$schema": "http://schema.management.azure.com/schemas/2016-11-17/runcommands.json", - "id": "ResetAccountPassword", - "label": "Reset built-in Administrator account password", - "osType": "Windows" - }, - { - "description": "Checks registry settings and domain policy settings. Suggests policy actions if machine is part of a domain or modifies the settings to default values.", - "$schema": "http://schema.management.azure.com/schemas/2016-11-17/runcommands.json", - "id": "RDPSettings", - "label": "Verify RDP Listener Settings", - "osType": "Windows" - }, - { - "description": "Sets the default or user specified port number for Remote Desktop connections. Enables firewall rule for inbound access to the port.", - "$schema": "http://schema.management.azure.com/schemas/2016-11-17/runcommands.json", - "id": "SetRDPPort", - "label": "Set Remote Desktop port", - "osType": "Windows" - }, - { - "description": "Removes the SSL certificate tied to the RDP listener and restores the RDP listerner security to default. Use this script if you see any issues with the certificate.", - "$schema": "http://schema.management.azure.com/schemas/2016-11-17/runcommands.json", - "id": "ResetRDPCert", - "label": "Restore RDP Authentication mode to defaults", - "osType": "Windows" - } - ] - } - } - }, - "operationId": "VirtualMachineRunCommands_List", - "title": "VirtualMachineRunCommandList" -} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/VirtualMachineScaleSetVMs_List_Virtual_Machine_Scale_Set_Vm_List_Maximum_Set_Gen.json b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/VirtualMachineScaleSetVMs_List_Virtual_Machine_Scale_Set_Vm_List_Maximum_Set_Gen.json deleted file mode 100644 index 83795449f7..0000000000 --- a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/VirtualMachineScaleSetVMs_List_Virtual_Machine_Scale_Set_Vm_List_Maximum_Set_Gen.json +++ /dev/null @@ -1,548 +0,0 @@ -{ - "parameters": { - "$expand": "aaaaaaaaaaaaa", - "$filter": "aaaaaaaaaaaaaa", - "$select": "aaaaaaaaaaaaaaaaaaaaa", - "api-version": "2023-07-01", - "resourceGroupName": "rgcompute", - "subscriptionId": "{subscription-id}", - "virtualMachineScaleSetName": "aaaaaaaaaaaaaaaaaaaaaa" - }, - "responses": { - "200": { - "body": { - "nextLink": "aaaaaaaaaaaaaa", - "value": [ - { - "name": "{vmss-vm-name}", - "type": "Microsoft.Compute/virtualMachines", - "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}/virtualMachines/0", - "instanceId": "aaaaaaaaaaaa", - "location": "westus", - "plan": { - "name": "aaaaaaaaaa", - "product": "aaaaaaaaaaaaaaaaaaaa", - "promotionCode": "aaaaaaaaaaaaaaaaaaaa", - "publisher": "aaaaaaaaaaaaaaaaaaaaaa" - }, - "properties": { - "additionalCapabilities": { - "hibernationEnabled": true, - "ultraSSDEnabled": true - }, - "availabilitySet": { - "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - }, - "diagnosticsProfile": { - "bootDiagnostics": { - "enabled": true, - "storageUri": "aaaaaaaaaaaaa" - } - }, - "hardwareProfile": { - "vmSize": "Basic_A0", - "vmSizeProperties": { - "vCPUsAvailable": 9, - "vCPUsPerCore": 12 - } - }, - "instanceView": { - "assignedHost": "aaaaaaa", - "bootDiagnostics": { - "consoleScreenshotBlobUri": "aaaaaaaaaaaaaaaaaaaaaaaaa", - "serialConsoleLogBlobUri": "aaaaaaaa", - "status": { - "code": "aaaaaaaaaaaaaaaaaaaaaaa", - "displayStatus": "aaaaaa", - "level": "Info", - "message": "a", - "time": "2021-11-30T12:58:26.522Z" - } - }, - "disks": [ - { - "name": "aaaaaaaaaaa", - "encryptionSettings": [ - { - "diskEncryptionKey": { - "secretUrl": "aaaaaaaa", - "sourceVault": { - "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } - }, - "enabled": true, - "keyEncryptionKey": { - "keyUrl": "aaaaaaaaaaaaaa", - "sourceVault": { - "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } - } - } - ], - "statuses": [ - { - "code": "aaaaaaaaaaaaaaaaaaaaaaa", - "displayStatus": "aaaaaa", - "level": "Info", - "message": "a", - "time": "2021-11-30T12:58:26.522Z" - } - ] - } - ], - "maintenanceRedeployStatus": { - "isCustomerInitiatedMaintenanceAllowed": true, - "lastOperationMessage": "aaaaaa", - "lastOperationResultCode": "None", - "maintenanceWindowEndTime": "2021-11-30T12:58:26.531Z", - "maintenanceWindowStartTime": "2021-11-30T12:58:26.531Z", - "preMaintenanceWindowEndTime": "2021-11-30T12:58:26.531Z", - "preMaintenanceWindowStartTime": "2021-11-30T12:58:26.531Z" - }, - "placementGroupId": "aaa", - "platformFaultDomain": 14, - "platformUpdateDomain": 23, - "rdpThumbPrint": "aaaaaaaaaaaaaaaaaaaaaaaaaaa", - "statuses": [ - { - "code": "aaaaaaaaaaaaaaaaaaaaaaa", - "displayStatus": "aaaaaa", - "level": "Info", - "message": "a", - "time": "2021-11-30T12:58:26.522Z" - } - ], - "vmAgent": { - "extensionHandlers": [ - { - "type": "aaaaaaaaaaaaa", - "status": { - "code": "aaaaaaaaaaaaaaaaaaaaaaa", - "displayStatus": "aaaaaa", - "level": "Info", - "message": "a", - "time": "2021-11-30T12:58:26.522Z" - }, - "typeHandlerVersion": "aaaaa" - } - ], - "statuses": [ - { - "code": "aaaaaaaaaaaaaaaaaaaaaaa", - "displayStatus": "aaaaaa", - "level": "Info", - "message": "a", - "time": "2021-11-30T12:58:26.522Z" - } - ], - "vmAgentVersion": "aaaaaaaaaaaaaaaaaaaaaaa" - }, - "vmHealth": { - "status": { - "code": "aaaaaaaaaaaaaaaaaaaaaaa", - "displayStatus": "aaaaaa", - "level": "Info", - "message": "a", - "time": "2021-11-30T12:58:26.522Z" - } - }, - "extensions": [ - { - "name": "aaaaaaaaaaaaaaaaa", - "type": "aaaaaaaaa", - "statuses": [ - { - "code": "aaaaaaaaaaaaaaaaaaaaaaa", - "displayStatus": "aaaaaa", - "level": "Info", - "message": "a", - "time": "2021-11-30T12:58:26.522Z" - } - ], - "substatuses": [ - { - "code": "aaaaaaaaaaaaaaaaaaaaaaa", - "displayStatus": "aaaaaa", - "level": "Info", - "message": "a", - "time": "2021-11-30T12:58:26.522Z" - } - ], - "typeHandlerVersion": "aaaaaaaaaaaaaaaaaaaaaaaaaa" - } - ] - }, - "latestModelApplied": true, - "licenseType": "aaaaaaaaaa", - "modelDefinitionApplied": "VirtualMachineScaleSet", - "networkProfile": { - "networkApiVersion": "2020-11-01", - "networkInterfaceConfigurations": [ - { - "name": "aaaaaaaaaaa", - "properties": { - "deleteOption": "Delete", - "dnsSettings": { - "dnsServers": [ - "aaaaaa" - ] - }, - "dscpConfiguration": { - "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - }, - "enableAcceleratedNetworking": true, - "enableFpga": true, - "enableIPForwarding": true, - "ipConfigurations": [ - { - "name": "aa", - "properties": { - "applicationGatewayBackendAddressPools": [ - { - "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } - ], - "applicationSecurityGroups": [ - { - "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } - ], - "loadBalancerBackendAddressPools": [ - { - "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } - ], - "primary": true, - "privateIPAddressVersion": "IPv4", - "publicIPAddressConfiguration": { - "name": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaa", - "properties": { - "deleteOption": "Delete", - "dnsSettings": { - "domainNameLabel": "aaaaaaaaaaaaaaaaaaaaaaaaa" - }, - "idleTimeoutInMinutes": 2, - "ipTags": [ - { - "ipTagType": "aaaaaaaaaaaaaaaaaaaaaaaaa", - "tag": "aaaaaaaaaaaaaaaaaaaa" - } - ], - "publicIPAddressVersion": "IPv4", - "publicIPAllocationMethod": "Dynamic", - "publicIPPrefix": { - "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } - }, - "sku": { - "name": "Basic", - "tier": "Regional" - } - }, - "subnet": { - "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } - } - } - ], - "networkSecurityGroup": { - "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - }, - "primary": true - } - } - ], - "networkInterfaces": [ - { - "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}/virtualMachines/0/networkInterfaces/vmsstestnetconfig5415", - "properties": { - "deleteOption": "Delete", - "primary": true - } - } - ] - }, - "networkProfileConfiguration": { - "networkInterfaceConfigurations": [ - { - "name": "vmsstestnetconfig5415", - "properties": { - "deleteOption": "Delete", - "dnsSettings": { - "dnsServers": [] - }, - "enableAcceleratedNetworking": true, - "enableFpga": true, - "enableIPForwarding": true, - "ipConfigurations": [ - { - "name": "vmsstestnetconfig9693", - "properties": { - "applicationGatewayBackendAddressPools": [ - { - "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } - ], - "applicationSecurityGroups": [ - { - "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } - ], - "loadBalancerBackendAddressPools": [ - { - "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } - ], - "loadBalancerInboundNatPools": [ - { - "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } - ], - "primary": true, - "privateIPAddressVersion": "IPv4", - "publicIPAddressConfiguration": { - "name": "aaaaaaaaaaaaaaaaaa", - "properties": { - "deleteOption": "Delete", - "dnsSettings": { - "domainNameLabel": "aaaaaaaaaaaaaaaaaa" - }, - "idleTimeoutInMinutes": 18, - "ipTags": [ - { - "ipTagType": "aaaaaaa", - "tag": "aaaaaaaaaaaaaaaaaaaaaaaaaaa" - } - ], - "publicIPAddressVersion": "IPv4", - "publicIPPrefix": { - "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } - }, - "sku": { - "name": "Basic", - "tier": "Regional" - } - }, - "subnet": { - "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/vn4071/subnets/sn5503" - } - } - } - ], - "networkSecurityGroup": { - "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - }, - "primary": true - } - } - ] - }, - "osProfile": { - "adminUsername": "Foo12", - "allowExtensionOperations": true, - "computerName": "test000000", - "customData": "aaaa", - "linuxConfiguration": { - "disablePasswordAuthentication": true, - "patchSettings": { - "assessmentMode": "ImageDefault", - "patchMode": "ImageDefault" - }, - "provisionVMAgent": true, - "ssh": { - "publicKeys": [ - { - "path": "aaa", - "keyData": "aaaaaa" - } - ] - } - }, - "requireGuestProvisionSignal": true, - "secrets": [], - "windowsConfiguration": { - "additionalUnattendContent": [ - { - "componentName": "Microsoft-Windows-Shell-Setup", - "content": "aaaaaaaaaaaaaaaaaaaa", - "passName": "OobeSystem", - "settingName": "AutoLogon" - } - ], - "enableAutomaticUpdates": true, - "patchSettings": { - "assessmentMode": "ImageDefault", - "enableHotpatching": true, - "patchMode": "Manual" - }, - "provisionVMAgent": true, - "timeZone": "aaaaaaaaaaaaaaaaaaaaaaaaaaa", - "winRM": { - "listeners": [ - { - "certificateUrl": "aaaaaaaaaaaaaaaaaaaaaa", - "protocol": "Http" - } - ] - } - } - }, - "protectionPolicy": { - "protectFromScaleIn": true, - "protectFromScaleSetActions": true - }, - "provisioningState": "Succeeded", - "securityProfile": { - "encryptionAtHost": true, - "securityType": "TrustedLaunch", - "uefiSettings": { - "secureBootEnabled": true, - "vTpmEnabled": true - } - }, - "storageProfile": { - "dataDisks": [ - { - "name": "vmss3176_vmss3176_0_disk2_6c4f554bdafa49baa780eb2d128ff39d", - "caching": "None", - "createOption": "Empty", - "deleteOption": "Delete", - "detachOption": "ForceDetach", - "diskIOPSReadWrite": 18, - "diskMBpsReadWrite": 29, - "diskSizeGB": 128, - "image": { - "uri": "https://{storageAccountName}.blob.core.windows.net/{containerName}/{vhdName}.vhd" - }, - "lun": 1, - "managedDisk": { - "diskEncryptionSet": { - "id": "aaaaaaaaaaaa" - }, - "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_0_disk2_6c4f554bdafa49baa780eb2d128ff39d", - "storageAccountType": "Standard_LRS" - }, - "toBeDetached": true, - "vhd": { - "uri": "https://{storageAccountName}.blob.core.windows.net/{containerName}/{vhdName}.vhd" - }, - "writeAcceleratorEnabled": true - } - ], - "imageReference": { - "exactVersion": "4.127.20180315", - "id": "a", - "offer": "WindowsServer", - "publisher": "MicrosoftWindowsServer", - "sharedGalleryImageId": "aaaaaaaaaaaaaaaaaaaa", - "sku": "2012-R2-Datacenter", - "version": "4.127.20180315" - }, - "osDisk": { - "name": "vmss3176_vmss3176_0_OsDisk_1_6d72b805e50e4de6830303c5055077fc", - "caching": "None", - "createOption": "FromImage", - "deleteOption": "Delete", - "diffDiskSettings": { - "option": "Local", - "placement": "CacheDisk" - }, - "diskSizeGB": 127, - "encryptionSettings": { - "diskEncryptionKey": { - "secretUrl": "aaaaaaaa", - "sourceVault": { - "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } - }, - "enabled": true, - "keyEncryptionKey": { - "keyUrl": "aaaaaaaaaaaaaa", - "sourceVault": { - "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } - } - }, - "image": { - "uri": "https://{storageAccountName}.blob.core.windows.net/{containerName}/{vhdName}.vhd" - }, - "managedDisk": { - "diskEncryptionSet": { - "id": "aaaaaaaaaaaa" - }, - "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_0_OsDisk_1_6d72b805e50e4de6830303c5055077fc", - "storageAccountType": "Standard_LRS" - }, - "osType": "Windows", - "vhd": { - "uri": "https://{storageAccountName}.blob.core.windows.net/{containerName}/{vhdName}.vhd" - }, - "writeAcceleratorEnabled": true - } - }, - "timeCreated": "2021-06-27T01:02:38.3138469+00:00", - "userData": "RXhhbXBsZSBVc2VyRGF0YQ==", - "vmId": "42af9fdf-b906-4ad7-9905-8316209ff619" - }, - "resources": [ - { - "name": "CustomScriptExtension-DSC", - "type": "Microsoft.Compute/virtualMachines/extensions", - "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM/extensions/CustomScriptExtension-DSC", - "location": "westus", - "properties": { - "type": "CustomScriptExtension", - "autoUpgradeMinorVersion": true, - "enableAutomaticUpgrade": true, - "forceUpdateTag": "aaaaaaa", - "instanceView": { - "name": "aaaaaaaaaaaaaaaaa", - "type": "aaaaaaaaa", - "statuses": [ - { - "code": "aaaaaaaaaaaaaaaaaaaaaaa", - "displayStatus": "aaaaaa", - "level": "Info", - "message": "a", - "time": "2021-11-30T12:58:26.522Z" - } - ], - "substatuses": [ - { - "code": "aaaaaaaaaaaaaaaaaaaaaaa", - "displayStatus": "aaaaaa", - "level": "Info", - "message": "a", - "time": "2021-11-30T12:58:26.522Z" - } - ], - "typeHandlerVersion": "aaaaaaaaaaaaaaaaaaaaaaaaaa" - }, - "protectedSettings": {}, - "provisioningState": "Succeeded", - "publisher": "Microsoft.Compute", - "settings": {}, - "suppressFailures": true, - "typeHandlerVersion": "1.9" - }, - "tags": {} - } - ], - "sku": { - "name": "Classic", - "capacity": 29, - "tier": "aaaaaaaaaaaaaa" - }, - "tags": {}, - "zones": [ - "a" - ] - } - ] - } - } - }, - "operationId": "VirtualMachineScaleSetVMs_List", - "title": "VirtualMachineScaleSetVM_List_MaximumSet_Gen" -} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/VirtualMachineScaleSetVMs_List_Virtual_Machine_Scale_Set_Vm_List_Minimum_Set_Gen.json b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/VirtualMachineScaleSetVMs_List_Virtual_Machine_Scale_Set_Vm_List_Minimum_Set_Gen.json deleted file mode 100644 index 419d0fbf7e..0000000000 --- a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/VirtualMachineScaleSetVMs_List_Virtual_Machine_Scale_Set_Vm_List_Minimum_Set_Gen.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "parameters": { - "api-version": "2023-07-01", - "resourceGroupName": "rgcompute", - "subscriptionId": "{subscription-id}", - "virtualMachineScaleSetName": "aaaaaaaaaaaaaaaaaaaaaaaaaaaa" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}/virtualMachines/0", - "location": "westus" - } - ] - } - } - }, - "operationId": "VirtualMachineScaleSetVMs_List", - "title": "VirtualMachineScaleSetVM_List_MinimumSet_Gen" -} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/VirtualMachineScaleSets_ListByLocation.json b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/VirtualMachineScaleSets_ListByLocation.json deleted file mode 100644 index 9316917dbb..0000000000 --- a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/VirtualMachineScaleSets_ListByLocation.json +++ /dev/null @@ -1,171 +0,0 @@ -{ - "parameters": { - "api-version": "2023-07-01", - "location": "eastus", - "subscriptionId": "{subscription-id}" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "{virtualMachineScaleSetName}", - "type": "Microsoft.Compute/virtualMachineScaleSets", - "id": "/subscriptions/{subscription-id}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}", - "location": "eastus", - "properties": { - "doNotRunExtensionsOnOverprovisionedVMs": false, - "overprovision": false, - "platformFaultDomainCount": 1, - "provisioningState": "succeeded", - "singlePlacementGroup": false, - "upgradePolicy": { - "automaticOSUpgradePolicy": { - "enableAutomaticOSUpgrade": false - }, - "mode": "Automatic" - }, - "virtualMachineProfile": { - "networkProfile": { - "networkInterfaceConfigurations": [ - { - "name": "myNic", - "properties": { - "ipConfigurations": [ - { - "name": "myIPConfig", - "properties": { - "primary": true, - "subnet": { - "id": "/subscriptions/{subscription-id}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/myVNet/subnets/mySubnet" - } - } - } - ], - "networkSecurityGroup": { - "id": "/subscriptions/{subscription-id}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/myNetworkSecurityGroup" - }, - "primary": true - } - } - ] - }, - "osProfile": { - "adminUsername": "admin", - "computerNamePrefix": "{virtualMachineScaleSetName}", - "linuxConfiguration": { - "disablePasswordAuthentication": false - } - }, - "storageProfile": { - "dataDisks": [], - "imageReference": { - "offer": "databricks", - "publisher": "azuredatabricks", - "sku": "databricksworker", - "version": "3.15.2" - }, - "osDisk": { - "caching": "ReadWrite", - "createOption": "FromImage", - "diskSizeGB": 30, - "managedDisk": { - "storageAccountType": "Premium_LRS" - } - } - } - } - }, - "sku": { - "name": "Standard_D2s_v3", - "capacity": 4, - "tier": "Standard" - }, - "tags": { - "myTag1": "tagValue1" - } - }, - { - "name": "{virtualMachineScaleSetName}", - "type": "Microsoft.Compute/virtualMachineScaleSets", - "id": "/subscriptions/{subscription-id}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}1", - "location": "eastus", - "properties": { - "doNotRunExtensionsOnOverprovisionedVMs": false, - "overprovision": false, - "platformFaultDomainCount": 1, - "provisioningState": "succeeded", - "singlePlacementGroup": false, - "upgradePolicy": { - "automaticOSUpgradePolicy": { - "enableAutomaticOSUpgrade": false - }, - "mode": "Automatic" - }, - "virtualMachineProfile": { - "networkProfile": { - "networkInterfaceConfigurations": [ - { - "name": "myNic1", - "properties": { - "ipConfigurations": [ - { - "name": "myIPConfig", - "properties": { - "primary": true, - "subnet": { - "id": "/subscriptions/{subscription-id}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/myVNet/subnets/mySubnet" - } - } - } - ], - "networkSecurityGroup": { - "id": "/subscriptions/{subscription-id}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/myNetworkSecurityGroup" - }, - "primary": true - } - } - ] - }, - "osProfile": { - "adminUsername": "admin", - "computerNamePrefix": "{virtualMachineScaleSetName}", - "linuxConfiguration": { - "disablePasswordAuthentication": false - } - }, - "storageProfile": { - "dataDisks": [], - "imageReference": { - "offer": "databricks", - "publisher": "azuredatabricks", - "sku": "databricksworker", - "version": "3.15.2" - }, - "osDisk": { - "caching": "ReadWrite", - "createOption": "FromImage", - "diskSizeGB": 30, - "managedDisk": { - "storageAccountType": "Premium_LRS" - } - } - } - } - }, - "sku": { - "name": "Standard_D2s_v3", - "capacity": 4, - "tier": "Standard" - }, - "tags": { - "myTag1": "tagValue2" - } - } - ] - } - } - }, - "operationId": "VirtualMachineScaleSets_ListByLocation", - "title": "Lists all the VM scale sets under the specified subscription for the specified location." -} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/VirtualMachines_ListByLocation.json b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/VirtualMachines_ListByLocation.json deleted file mode 100644 index f57b47919a..0000000000 --- a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/examples/2023-07-01/VirtualMachines_ListByLocation.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "parameters": { - "api-version": "2023-07-01", - "location": "eastus", - "subscriptionId": "{subscriptionId}" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "{virtualMachineName}", - "type": "Microsoft.Compute/virtualMachines", - "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{virtualMachineName}", - "location": "eastus", - "properties": { - "availabilitySet": { - "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - }, - "hardwareProfile": { - "vmSize": "Standard_A0" - }, - "networkProfile": { - "networkInterfaces": [ - { - "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}" - } - ] - }, - "osProfile": { - "adminUsername": "Foo12", - "allowExtensionOperations": true, - "computerName": "Test", - "secrets": [], - "windowsConfiguration": { - "enableAutomaticUpdates": true, - "provisionVMAgent": true - } - }, - "provisioningState": "Succeeded", - "storageProfile": { - "dataDisks": [], - "imageReference": { - "offer": "WindowsServer", - "publisher": "MicrosoftWindowsServer", - "sku": "2012-R2-Datacenter", - "version": "4.127.20170406" - }, - "osDisk": { - "name": "test", - "caching": "None", - "createOption": "FromImage", - "diskSizeGB": 127, - "osType": "Windows", - "vhd": { - "uri": "https://{storageAccountName}.blob.core.windows.net/{containerName}/{vhdName}.vhd" - } - } - }, - "vmId": "{vmId}" - }, - "tags": { - "RG": "rg", - "testTag": "1" - } - }, - { - "name": "{virtualMachineName}", - "type": "Microsoft.Compute/virtualMachines", - "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{virtualMachineName}", - "location": "eastus", - "properties": { - "availabilitySet": { - "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - }, - "hardwareProfile": { - "vmSize": "Standard_A0" - }, - "networkProfile": { - "networkInterfaces": [ - { - "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}" - } - ] - }, - "osProfile": { - "adminUsername": "Foo12", - "allowExtensionOperations": true, - "computerName": "Test", - "secrets": [], - "windowsConfiguration": { - "enableAutomaticUpdates": true, - "provisionVMAgent": true - } - }, - "provisioningState": "Succeeded", - "storageProfile": { - "dataDisks": [], - "imageReference": { - "offer": "WindowsServer", - "publisher": "MicrosoftWindowsServer", - "sku": "2012-R2-Datacenter", - "version": "4.127.20170406" - }, - "osDisk": { - "name": "test", - "caching": "None", - "createOption": "FromImage", - "diskSizeGB": 127, - "osType": "Windows", - "vhd": { - "uri": "https://{storageAccountName}.blob.core.windows.net/{containerName}/{vhdName}.vhd" - } - } - }, - "vmId": "{vmId}" - }, - "tags": { - "RG": "rg", - "testTag": "1" - } - } - ] - } - } - }, - "operationId": "VirtualMachines_ListByLocation", - "title": "Lists all the virtual machines under the specified subscription for the specified location." -} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/main.tsp b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/main.tsp index 414d0cca30..1a914d057f 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/main.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/main.tsp @@ -28,7 +28,6 @@ import "./RestorePoint.tsp"; import "./CapacityReservationGroup.tsp"; import "./CapacityReservation.tsp"; import "./VirtualMachineRunCommand.tsp"; -import "./VirtualMachineRunCommand.tsp"; import "./Disk.tsp"; import "./DiskAccess.tsp"; import "./PrivateEndpointConnection.tsp"; @@ -40,12 +39,6 @@ import "./GalleryImage.tsp"; import "./GalleryImageVersion.tsp"; import "./GalleryApplication.tsp"; import "./GalleryApplicationVersion.tsp"; -import "./SharedGallery.tsp"; -import "./SharedGalleryImage.tsp"; -import "./SharedGalleryImageVersion.tsp"; -import "./CommunityGallery.tsp"; -import "./CommunityGalleryImage.tsp"; -import "./CommunityGalleryImageVersion.tsp"; import "./RoleInstance.tsp"; import "./CloudServiceRole.tsp"; import "./CloudService.tsp"; diff --git a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/models.tsp b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/models.tsp index dd10602698..9f9d96673e 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/models.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/models.tsp @@ -5562,6 +5562,12 @@ model VirtualMachineIdentity { userAssignedIdentities?: Record; } +/** + * The List Virtual Machine Scale Set VMs operation response. + */ +model VirtualMachineScaleSetVMListResult + is Azure.Core.Page; + /** * The SAS URIs of the console screenshot and serial log blobs. */ @@ -7709,6 +7715,11 @@ model LogAnalyticsOutput { */ model ThrottledRequestsInput extends LogAnalyticsInputBase {} +/** + * The List Virtual Machine operation response. + */ +model RunCommandListResult is Azure.Core.Page; + /** * Describes the properties of a Run Command metadata. */ @@ -10601,6 +10612,16 @@ model SharingUpdate { groups?: SharingProfileGroup[]; } +/** + * The List Shared Galleries operation response. + */ +model SharedGalleryList is Azure.Core.Page; + +/** + * Specifies information about the Shared Gallery that you want to create or update. + */ +model SharedGallery extends PirSharedGalleryResource {} + /** * Base information about the shared gallery resource in pir. */ @@ -10639,6 +10660,22 @@ model PirResource { location?: string; } +/** + * The List Shared Gallery Images operation response. + */ +model SharedGalleryImageList is Azure.Core.Page; + +/** + * Specifies information about the gallery image definition that you want to create or update. + */ +model SharedGalleryImage extends PirSharedGalleryResource { + /** + * Describes the properties of a gallery image definition. + */ + @extension("x-ms-client-flatten", true) + properties?: SharedGalleryImageProperties; +} + /** * Describes the properties of a gallery image definition. */ @@ -10706,6 +10743,23 @@ model SharedGalleryImageProperties { eula?: string; } +/** + * The List Shared Gallery Image versions operation response. + */ +model SharedGalleryImageVersionList + is Azure.Core.Page; + +/** + * Specifies information about the gallery image version that you want to create or update. + */ +model SharedGalleryImageVersion extends PirSharedGalleryResource { + /** + * Describes the properties of a gallery image version. + */ + @extension("x-ms-client-flatten", true) + properties?: SharedGalleryImageVersionProperties; +} + /** * Describes the properties of a gallery image version. */ @@ -10780,6 +10834,11 @@ model SharedGalleryDataDiskImage extends SharedGalleryDiskImage { lun: int32; } +/** + * Specifies information about the Community Gallery that you want to create or update. + */ +model CommunityGallery extends PirCommunityGalleryResource {} + /** * Base information about the community gallery resource in pir. */ @@ -10819,6 +10878,17 @@ model CommunityGalleryIdentifier { uniqueId?: string; } +/** + * Specifies information about the gallery image definition that you want to create or update. + */ +model CommunityGalleryImage extends PirCommunityGalleryResource { + /** + * Describes the properties of a gallery image definition. + */ + @extension("x-ms-client-flatten", true) + properties?: CommunityGalleryImageProperties; +} + /** * Describes the properties of a gallery image definition. */ @@ -10906,6 +10976,17 @@ model CommunityGalleryImageIdentifier { sku?: string; } +/** + * Specifies information about the gallery image version that you want to create or update. + */ +model CommunityGalleryImageVersion extends PirCommunityGalleryResource { + /** + * Describes the properties of a gallery image version. + */ + @extension("x-ms-client-flatten", true) + properties?: CommunityGalleryImageVersionProperties; +} + /** * Describes the properties of a gallery image version. */ @@ -10933,6 +11014,17 @@ model CommunityGalleryImageVersionProperties { storageProfile?: SharedGalleryImageVersionStorageProfile; } +/** + * The List Community Gallery Images operation response. + */ +model CommunityGalleryImageList is Azure.Core.Page; + +/** + * The List Community Gallery Image versions operation response. + */ +model CommunityGalleryImageVersionList + is Azure.Core.Page; + /** * The role instance SKU. */ diff --git a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/routes.tsp b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/routes.tsp index 0f39b40a74..dd7b5aee43 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/routes.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-compute/tsp-output/routes.tsp @@ -37,6 +37,70 @@ interface VirtualMachineSizesOperations { ): ArmResponse | ErrorResponse; } +interface VirtualMachineScaleSetsOperations { + /** + * Gets all the VM scale sets under the specified subscription for the specified location. + */ + @route("/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/virtualMachineScaleSets") + @get + listByLocation( + ...ApiVersionParameter, + ...LocationResourceParameter, + ...SubscriptionIdParameter, + ): ArmResponse> | ErrorResponse; +} + +interface VirtualMachineScaleSetVMsOperations { + /** + * Gets a list of all virtual machines in a VM scale sets. + */ + @route("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines") + @get + list( + ...ApiVersionParameter, + ...ResourceGroupParameter, + + /** + * The name of the VM scale set. + */ + @path + virtualMachineScaleSetName: string, + + /** + * The filter to apply to the operation. Allowed values are 'startswith(instanceView/statuses/code, 'PowerState') eq true', 'properties/latestModelApplied eq true', 'properties/latestModelApplied eq false'. + */ + @query("$filter") + $filter?: string, + + /** + * The list parameters. Allowed values are 'instanceView', 'instanceView/statuses'. + */ + @query("$select") + $select?: string, + + /** + * The expand expression to apply to the operation. Allowed values are 'instanceView'. + */ + @query("$expand") + $expand?: string, + + ...SubscriptionIdParameter, + ): ArmResponse | ErrorResponse; +} + +interface VirtualMachinesOperations { + /** + * Gets all the virtual machines under the specified subscription for the specified location. + */ + @route("/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/virtualMachines") + @get + listByLocation( + ...ApiVersionParameter, + ...LocationResourceParameter, + ...SubscriptionIdParameter, + ): ArmResponse> | ErrorResponse; +} + interface VirtualMachineImagesOperations { /** * Gets a virtual machine image. @@ -358,38 +422,6 @@ interface VirtualMachineImagesEdgeZoneOperations { ): ArmResponse | ErrorResponse; } -interface VirtualMachineExtensionImagesOperations { - /** - * Gets a list of virtual machine extension image versions. - */ - @route("/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmextension/types/{type}/versions") - @get - listVersions( - ...ApiVersionParameter, - ...LocationResourceParameter, - - @path - publisherName: string, - - @path - type: string, - - /** - * The filter to apply on the operation. - */ - @query("$filter") - $filter?: string, - - @query("$top") - $top?: int32, - - @query("$orderby") - $orderby?: string, - - ...SubscriptionIdParameter, - ): ArmResponse | ErrorResponse; -} - interface LogAnalyticsOperations { /** * Export logs that show Api requests made by this subscription in the given time window to show throttling activities. @@ -426,6 +458,49 @@ interface LogAnalyticsOperations { ): ArmResponse | ErrorResponse; } +interface VirtualMachineRunCommandsOperations { + /** + * Lists all available run commands for a subscription in a location. + */ + @route("/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/runCommands") + @get + list( + ...ApiVersionParameter, + ...LocationResourceParameter, + ...SubscriptionIdParameter, + + /** + * Accept header + */ + @header + accept: "application/json, text/json", + ): ArmResponse | ErrorResponse; + + /** + * Gets specific run command for a subscription in a location. + */ + @route("/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/runCommands/{commandId}") + @get + get( + ...ApiVersionParameter, + ...LocationResourceParameter, + + /** + * The command id. + */ + @path + commandId: string, + + ...SubscriptionIdParameter, + + /** + * Accept header + */ + @header + accept: "application/json, text/json", + ): ArmResponse | ErrorResponse; +} + interface VirtualMachineScaleSetVMRunCommandsOperations { /** * The operation to create or update the VMSS VM run command. @@ -649,3 +724,262 @@ interface ResourceSkusOperations { includeExtendedLocations?: string, ): ArmResponse | ErrorResponse; } + +interface SharedGalleriesOperations { + /** + * List shared galleries by subscription id or tenant id. + */ + @route("/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries") + @get + list( + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...LocationResourceParameter, + + /** + * The query parameter to decide what shared galleries to fetch when doing listing operations. + */ + @query("sharedTo") + sharedTo?: SharedToValues, + ): ArmResponse | ErrorResponse; + + /** + * Get a shared gallery by subscription id or tenant id. + */ + @route("/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}") + @get + get( + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...LocationResourceParameter, + + /** + * The unique name of the Shared Gallery. + */ + @path + galleryUniqueName: string, + ): ArmResponse | ErrorResponse; +} + +interface SharedGalleryImagesOperations { + /** + * List shared gallery images by subscription id or tenant id. + */ + @route("/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images") + @get + list( + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...LocationResourceParameter, + + /** + * The unique name of the Shared Gallery. + */ + @path + galleryUniqueName: string, + + /** + * The query parameter to decide what shared galleries to fetch when doing listing operations. + */ + @query("sharedTo") + sharedTo?: SharedToValues, + ): ArmResponse | ErrorResponse; + + /** + * Get a shared gallery image by subscription id or tenant id. + */ + @route("/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}") + @get + get( + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...LocationResourceParameter, + + /** + * The unique name of the Shared Gallery. + */ + @path + galleryUniqueName: string, + + /** + * The name of the Shared Gallery Image Definition from which the Image Versions are to be listed. + */ + @path + galleryImageName: string, + ): ArmResponse | ErrorResponse; +} + +interface SharedGalleryImageVersionsOperations { + /** + * List shared gallery image versions by subscription id or tenant id. + */ + @route("/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}/versions") + @get + list( + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...LocationResourceParameter, + + /** + * The unique name of the Shared Gallery. + */ + @path + galleryUniqueName: string, + + /** + * The name of the Shared Gallery Image Definition from which the Image Versions are to be listed. + */ + @path + galleryImageName: string, + + /** + * The query parameter to decide what shared galleries to fetch when doing listing operations. + */ + @query("sharedTo") + sharedTo?: SharedToValues, + ): ArmResponse | ErrorResponse; + + /** + * Get a shared gallery image version by subscription id or tenant id. + */ + @route("/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}/versions/{galleryImageVersionName}") + @get + get( + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...LocationResourceParameter, + + /** + * The unique name of the Shared Gallery. + */ + @path + galleryUniqueName: string, + + /** + * The name of the Shared Gallery Image Definition from which the Image Versions are to be listed. + */ + @path + galleryImageName: string, + + /** + * 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: .. + */ + @path + galleryImageVersionName: string, + ): ArmResponse | ErrorResponse; +} + +interface CommunityGalleriesOperations { + /** + * Get a community gallery by gallery public name. + */ + @route("/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}") + @get + get( + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...LocationResourceParameter, + + /** + * The public name of the community gallery. + */ + @path + publicGalleryName: string, + ): ArmResponse | ErrorResponse; +} + +interface CommunityGalleryImagesOperations { + /** + * Get a community gallery image. + */ + @route("/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images/{galleryImageName}") + @get + get( + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...LocationResourceParameter, + + /** + * The public name of the community gallery. + */ + @path + publicGalleryName: string, + + /** + * The name of the community gallery image definition. + */ + @path + galleryImageName: string, + ): ArmResponse | ErrorResponse; + + /** + * List community gallery images inside a gallery. + */ + @route("/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images") + @get + list( + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...LocationResourceParameter, + + /** + * The public name of the community gallery. + */ + @path + publicGalleryName: string, + ): ArmResponse | ErrorResponse; +} + +interface CommunityGalleryImageVersionsOperations { + /** + * Get a community gallery image version. + */ + @route("/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}") + @get + get( + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...LocationResourceParameter, + + /** + * The public name of the community gallery. + */ + @path + publicGalleryName: string, + + /** + * The name of the community gallery image definition. + */ + @path + galleryImageName: string, + + /** + * 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: .. + */ + @path + galleryImageVersionName: string, + ): ArmResponse | ErrorResponse; + + /** + * List community gallery image versions inside an image. + */ + @route("/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images/{galleryImageName}/versions") + @get + list( + ...ApiVersionParameter, + ...SubscriptionIdParameter, + ...LocationResourceParameter, + + /** + * The public name of the community gallery. + */ + @path + publicGalleryName: string, + + /** + * The name of the community gallery image definition. + */ + @path + galleryImageName: string, + ): ArmResponse | ErrorResponse; +} diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/resources.json b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/resources.json index ee4d896607..bcc0a55b77 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/resources.json +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/resources.json @@ -1,7 +1,7 @@ { "Resources": { - "MachineLearningCompute": { - "Name": "MachineLearningCompute", + "ComputeResource": { + "Name": "ComputeResource", "GetOperations": [ { "Name": "Get", @@ -10,7 +10,7 @@ "OperationID": "Compute_Get", "IsLongRunning": false, "PagingMetadata": null, - "Description": "Gets compute definition by its name. Any secrets (storage keys, service credentials, etc) are not returned - use \u0027keys\u0027 nested resource to get them." + "Description": "Gets compute definition by its name. Any secrets (storage keys, service credentials, etc) are not returned - use 'keys' nested resource to get them." } ], "CreateOperations": [ @@ -55,7 +55,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "List", - "NextPageMethod": "ListNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -77,21 +76,20 @@ "Description": "Updates the custom services list. The list of custom services provided shall be overwritten" }, { - "Name": "GetNodes", + "Name": "ListNodes", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/listNodes", "Method": "POST", "OperationID": "Compute_ListNodes", "IsLongRunning": false, "PagingMetadata": { "Method": "ListNodes", - "NextPageMethod": "ListNodesNextPage", "ItemName": "nodes", "NextLinkName": "nextLink" }, "Description": "Get the details (e.g IP address, port etc) of all the compute nodes in the compute." }, { - "Name": "GetKeys", + "Name": "ListKeys", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/computes/{computeName}/listKeys", "Method": "POST", "OperationID": "Compute_ListKeys", @@ -136,7 +134,9 @@ "Description": "Updates the idle shutdown setting of a compute instance." } ], - "Parents": ["MachineLearningWorkspace"], + "Parents": [ + "Workspace" + ], "SwaggerModelName": "ComputeResource", "ResourceType": "Microsoft.MachineLearningServices/workspaces/computes", "ResourceKey": "computeName", @@ -148,8 +148,32 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "MachineLearningRegistryCodeContainer": { - "Name": "MachineLearningRegistryCodeContainer", + "CodeContainerResourceFixMe": { + "Name": "CodeContainerResourceFixMe", + "GetOperations": [], + "CreateOperations": [], + "UpdateOperations": [], + "DeleteOperations": [], + "ListOperations": [], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [], + "SwaggerModelName": "", + "ResourceType": "", + "ResourceKey": "", + "ResourceKeySegment": "", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + }, + "CodeContainerResource": { + "Name": "CodeContainerResource", "GetOperations": [ { "Name": "Get", @@ -203,7 +227,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "List", - "NextPageMethod": "ListNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -215,7 +238,9 @@ "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], "OtherOperations": [], - "Parents": ["MachineLearningRegistry"], + "Parents": [ + "Registry" + ], "SwaggerModelName": "CodeContainerResource", "ResourceType": "Microsoft.MachineLearningServices/registries/codes", "ResourceKey": "codeName", @@ -227,78 +252,23 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "MachineLearningCodeContainer": { - "Name": "MachineLearningCodeContainer", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}", - "Method": "GET", - "OperationID": "CodeContainers_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get container." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}", - "Method": "PUT", - "OperationID": "CodeContainers_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update container." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}", - "Method": "PUT", - "OperationID": "CodeContainers_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update container." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}", - "Method": "DELETE", - "OperationID": "CodeContainers_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete container." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes", - "Method": "GET", - "OperationID": "CodeContainers_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "NextPageMethod": "ListNextPage", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "List containers." - } - ], + "CodeVersionResourceFixMe": { + "Name": "CodeVersionResourceFixMe", + "GetOperations": [], + "CreateOperations": [], + "UpdateOperations": [], + "DeleteOperations": [], + "ListOperations": [], "OperationsFromResourceGroupExtension": [], "OperationsFromSubscriptionExtension": [], "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], "OtherOperations": [], - "Parents": ["MachineLearningWorkspace"], - "SwaggerModelName": "CodeContainerResource", - "ResourceType": "Microsoft.MachineLearningServices/workspaces/codes", - "ResourceKey": "name", - "ResourceKeySegment": "codes", + "Parents": [], + "SwaggerModelName": "", + "ResourceType": "", + "ResourceKey": "", + "ResourceKeySegment": "", "IsTrackedResource": false, "IsTenantResource": false, "IsSubscriptionResource": false, @@ -306,8 +276,8 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "MachineLearningRegistryCodeVersion": { - "Name": "MachineLearningRegistryCodeVersion", + "CodeVersionResource": { + "Name": "CodeVersionResource", "GetOperations": [ { "Name": "Get", @@ -361,7 +331,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "List", - "NextPageMethod": "ListNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -383,7 +352,9 @@ "Description": "Generate a storage location and credential for the client to upload a code asset to." } ], - "Parents": ["MachineLearningRegistryCodeContainer"], + "Parents": [ + "CodeContainerResource" + ], "SwaggerModelName": "CodeVersionResource", "ResourceType": "Microsoft.MachineLearningServices/registries/codes/versions", "ResourceKey": "version", @@ -395,88 +366,23 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "MachineLearningCodeVersion": { - "Name": "MachineLearningCodeVersion", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version}", - "Method": "GET", - "OperationID": "CodeVersions_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get version." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version}", - "Method": "PUT", - "OperationID": "CodeVersions_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update version." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version}", - "Method": "PUT", - "OperationID": "CodeVersions_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update version." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version}", - "Method": "DELETE", - "OperationID": "CodeVersions_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete version." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions", - "Method": "GET", - "OperationID": "CodeVersions_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "NextPageMethod": "ListNextPage", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "List versions." - } - ], + "ComponentContainerResourceFixMe": { + "Name": "ComponentContainerResourceFixMe", + "GetOperations": [], + "CreateOperations": [], + "UpdateOperations": [], + "DeleteOperations": [], + "ListOperations": [], "OperationsFromResourceGroupExtension": [], "OperationsFromSubscriptionExtension": [], "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "CreateOrGetStartPendingUpload", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version}/startPendingUpload", - "Method": "POST", - "OperationID": "CodeVersions_CreateOrGetStartPendingUpload", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Generate a storage location and credential for the client to upload a code asset to." - } - ], - "Parents": ["MachineLearningCodeContainer"], - "SwaggerModelName": "CodeVersionResource", - "ResourceType": "Microsoft.MachineLearningServices/workspaces/codes/versions", - "ResourceKey": "version", - "ResourceKeySegment": "versions", + "OtherOperations": [], + "Parents": [], + "SwaggerModelName": "", + "ResourceType": "", + "ResourceKey": "", + "ResourceKeySegment": "", "IsTrackedResource": false, "IsTenantResource": false, "IsSubscriptionResource": false, @@ -484,8 +390,8 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "MachineLearninRegistryComponentContainer": { - "Name": "MachineLearninRegistryComponentContainer", + "ComponentContainerResource": { + "Name": "ComponentContainerResource", "GetOperations": [ { "Name": "Get", @@ -539,7 +445,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "List", - "NextPageMethod": "ListNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -551,7 +456,9 @@ "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], "OtherOperations": [], - "Parents": ["MachineLearningRegistry"], + "Parents": [ + "Registry" + ], "SwaggerModelName": "ComponentContainerResource", "ResourceType": "Microsoft.MachineLearningServices/registries/components", "ResourceKey": "componentName", @@ -563,78 +470,23 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "MachineLearningComponentContainer": { - "Name": "MachineLearningComponentContainer", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}", - "Method": "GET", - "OperationID": "ComponentContainers_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get container." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}", - "Method": "PUT", - "OperationID": "ComponentContainers_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update container." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}", - "Method": "PUT", - "OperationID": "ComponentContainers_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update container." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}", - "Method": "DELETE", - "OperationID": "ComponentContainers_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete container." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components", - "Method": "GET", - "OperationID": "ComponentContainers_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "NextPageMethod": "ListNextPage", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "List component containers." - } - ], + "ComponentVersionResourceFixMe": { + "Name": "ComponentVersionResourceFixMe", + "GetOperations": [], + "CreateOperations": [], + "UpdateOperations": [], + "DeleteOperations": [], + "ListOperations": [], "OperationsFromResourceGroupExtension": [], "OperationsFromSubscriptionExtension": [], "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], "OtherOperations": [], - "Parents": ["MachineLearningWorkspace"], - "SwaggerModelName": "ComponentContainerResource", - "ResourceType": "Microsoft.MachineLearningServices/workspaces/components", - "ResourceKey": "name", - "ResourceKeySegment": "components", + "Parents": [], + "SwaggerModelName": "", + "ResourceType": "", + "ResourceKey": "", + "ResourceKeySegment": "", "IsTrackedResource": false, "IsTenantResource": false, "IsSubscriptionResource": false, @@ -642,8 +494,8 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "MachineLearninRegistryComponentVersion": { - "Name": "MachineLearninRegistryComponentVersion", + "ComponentVersionResource": { + "Name": "ComponentVersionResource", "GetOperations": [ { "Name": "Get", @@ -697,7 +549,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "List", - "NextPageMethod": "ListNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -709,7 +560,9 @@ "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], "OtherOperations": [], - "Parents": ["MachineLearninRegistryComponentContainer"], + "Parents": [ + "ComponentContainerResource" + ], "SwaggerModelName": "ComponentVersionResource", "ResourceType": "Microsoft.MachineLearningServices/registries/components/versions", "ResourceKey": "version", @@ -721,78 +574,23 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "MachineLearningComponentVersion": { - "Name": "MachineLearningComponentVersion", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}/versions/{version}", - "Method": "GET", - "OperationID": "ComponentVersions_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get version." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}/versions/{version}", - "Method": "PUT", - "OperationID": "ComponentVersions_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update version." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}/versions/{version}", - "Method": "PUT", - "OperationID": "ComponentVersions_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update version." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}/versions/{version}", - "Method": "DELETE", - "OperationID": "ComponentVersions_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete version." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/components/{name}/versions", - "Method": "GET", - "OperationID": "ComponentVersions_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "NextPageMethod": "ListNextPage", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "List component versions." - } - ], + "DataContainerResourceFixMe": { + "Name": "DataContainerResourceFixMe", + "GetOperations": [], + "CreateOperations": [], + "UpdateOperations": [], + "DeleteOperations": [], + "ListOperations": [], "OperationsFromResourceGroupExtension": [], "OperationsFromSubscriptionExtension": [], "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], "OtherOperations": [], - "Parents": ["MachineLearningComponentContainer"], - "SwaggerModelName": "ComponentVersionResource", - "ResourceType": "Microsoft.MachineLearningServices/workspaces/components/versions", - "ResourceKey": "version", - "ResourceKeySegment": "versions", + "Parents": [], + "SwaggerModelName": "", + "ResourceType": "", + "ResourceKey": "", + "ResourceKeySegment": "", "IsTrackedResource": false, "IsTenantResource": false, "IsSubscriptionResource": false, @@ -800,8 +598,8 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "MachineLearningRegistryDataContainer": { - "Name": "MachineLearningRegistryDataContainer", + "DataContainerResource": { + "Name": "DataContainerResource", "GetOperations": [ { "Name": "Get", @@ -855,7 +653,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "List", - "NextPageMethod": "ListNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -867,7 +664,9 @@ "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], "OtherOperations": [], - "Parents": ["MachineLearningRegistry"], + "Parents": [ + "Registry" + ], "SwaggerModelName": "DataContainerResource", "ResourceType": "Microsoft.MachineLearningServices/registries/data", "ResourceKey": "name", @@ -879,78 +678,23 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "MachineLearningDataContainer": { - "Name": "MachineLearningDataContainer", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}", - "Method": "GET", - "OperationID": "DataContainers_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get container." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}", - "Method": "PUT", - "OperationID": "DataContainers_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update container." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}", - "Method": "PUT", - "OperationID": "DataContainers_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update container." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}", - "Method": "DELETE", - "OperationID": "DataContainers_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete container." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data", - "Method": "GET", - "OperationID": "DataContainers_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "NextPageMethod": "ListNextPage", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "List data containers." - } - ], + "DataVersionBaseResourceFixMe": { + "Name": "DataVersionBaseResourceFixMe", + "GetOperations": [], + "CreateOperations": [], + "UpdateOperations": [], + "DeleteOperations": [], + "ListOperations": [], "OperationsFromResourceGroupExtension": [], "OperationsFromSubscriptionExtension": [], "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], "OtherOperations": [], - "Parents": ["MachineLearningWorkspace"], - "SwaggerModelName": "DataContainerResource", - "ResourceType": "Microsoft.MachineLearningServices/workspaces/data", - "ResourceKey": "name", - "ResourceKeySegment": "data", + "Parents": [], + "SwaggerModelName": "", + "ResourceType": "", + "ResourceKey": "", + "ResourceKeySegment": "", "IsTrackedResource": false, "IsTenantResource": false, "IsSubscriptionResource": false, @@ -958,8 +702,8 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "MachineLearningRegistryDataVersion": { - "Name": "MachineLearningRegistryDataVersion", + "DataVersionBaseResource": { + "Name": "DataVersionBaseResource", "GetOperations": [ { "Name": "Get", @@ -1013,7 +757,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "List", - "NextPageMethod": "ListNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -1035,169 +778,37 @@ "Description": "Generate a storage location and credential for the client to upload a data asset to." } ], - "Parents": ["MachineLearningRegistryDataContainer"], - "SwaggerModelName": "DataVersionBaseResource", - "ResourceType": "Microsoft.MachineLearningServices/registries/data/versions", - "ResourceKey": "version", - "ResourceKeySegment": "versions", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "MachineLearningDataVersion": { - "Name": "MachineLearningDataVersion", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}/versions/{version}", - "Method": "GET", - "OperationID": "DataVersions_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get version." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}/versions/{version}", - "Method": "PUT", - "OperationID": "DataVersions_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update version." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}/versions/{version}", - "Method": "PUT", - "OperationID": "DataVersions_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update version." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}/versions/{version}", - "Method": "DELETE", - "OperationID": "DataVersions_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete version." - } + "Parents": [ + "DataContainerResource" ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}/versions", - "Method": "GET", - "OperationID": "DataVersions_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "NextPageMethod": "ListNextPage", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "List data versions in the data container" - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [], - "Parents": ["MachineLearningDataContainer"], "SwaggerModelName": "DataVersionBaseResource", - "ResourceType": "Microsoft.MachineLearningServices/workspaces/data/versions", - "ResourceKey": "version", - "ResourceKeySegment": "versions", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "MachineLearningRegistryEnvironmentContainer": { - "Name": "MachineLearningRegistryEnvironmentContainer", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}", - "Method": "GET", - "OperationID": "RegistryEnvironmentContainers_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get container." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}", - "Method": "PUT", - "OperationID": "RegistryEnvironmentContainers_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update container." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}", - "Method": "PUT", - "OperationID": "RegistryEnvironmentContainers_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update container." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}", - "Method": "DELETE", - "OperationID": "RegistryEnvironmentContainers_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete container." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments", - "Method": "GET", - "OperationID": "RegistryEnvironmentContainers_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "NextPageMethod": "ListNextPage", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "List environment containers." - } - ], + "ResourceType": "Microsoft.MachineLearningServices/registries/data/versions", + "ResourceKey": "version", + "ResourceKeySegment": "versions", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + }, + "EnvironmentContainerResourceFixMe": { + "Name": "EnvironmentContainerResourceFixMe", + "GetOperations": [], + "CreateOperations": [], + "UpdateOperations": [], + "DeleteOperations": [], + "ListOperations": [], "OperationsFromResourceGroupExtension": [], "OperationsFromSubscriptionExtension": [], "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], "OtherOperations": [], - "Parents": ["MachineLearningRegistry"], - "SwaggerModelName": "EnvironmentContainerResource", - "ResourceType": "Microsoft.MachineLearningServices/registries/environments", - "ResourceKey": "environmentName", - "ResourceKeySegment": "environments", + "Parents": [], + "SwaggerModelName": "", + "ResourceType": "", + "ResourceKey": "", + "ResourceKeySegment": "", "IsTrackedResource": false, "IsTenantResource": false, "IsSubscriptionResource": false, @@ -1205,14 +816,14 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "MachineLearningEnvironmentContainer": { - "Name": "MachineLearningEnvironmentContainer", + "EnvironmentContainerResource": { + "Name": "EnvironmentContainerResource", "GetOperations": [ { "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}", "Method": "GET", - "OperationID": "EnvironmentContainers_Get", + "OperationID": "RegistryEnvironmentContainers_Get", "IsLongRunning": false, "PagingMetadata": null, "Description": "Get container." @@ -1221,9 +832,9 @@ "CreateOperations": [ { "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}", "Method": "PUT", - "OperationID": "EnvironmentContainers_CreateOrUpdate", + "OperationID": "RegistryEnvironmentContainers_CreateOrUpdate", "IsLongRunning": true, "PagingMetadata": null, "Description": "Create or update container." @@ -1232,9 +843,9 @@ "UpdateOperations": [ { "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}", "Method": "PUT", - "OperationID": "EnvironmentContainers_CreateOrUpdate", + "OperationID": "RegistryEnvironmentContainers_CreateOrUpdate", "IsLongRunning": true, "PagingMetadata": null, "Description": "Create or update container." @@ -1243,9 +854,9 @@ "DeleteOperations": [ { "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments/{environmentName}", "Method": "DELETE", - "OperationID": "EnvironmentContainers_Delete", + "OperationID": "RegistryEnvironmentContainers_Delete", "IsLongRunning": true, "PagingMetadata": null, "Description": "Delete container." @@ -1254,13 +865,12 @@ "ListOperations": [ { "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments", + "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/registries/{registryName}/environments", "Method": "GET", - "OperationID": "EnvironmentContainers_List", + "OperationID": "RegistryEnvironmentContainers_List", "IsLongRunning": false, "PagingMetadata": { "Method": "List", - "NextPageMethod": "ListNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -1272,10 +882,12 @@ "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], "OtherOperations": [], - "Parents": ["MachineLearningWorkspace"], + "Parents": [ + "Registry" + ], "SwaggerModelName": "EnvironmentContainerResource", - "ResourceType": "Microsoft.MachineLearningServices/workspaces/environments", - "ResourceKey": "name", + "ResourceType": "Microsoft.MachineLearningServices/registries/environments", + "ResourceKey": "environmentName", "ResourceKeySegment": "environments", "IsTrackedResource": false, "IsTenantResource": false, @@ -1284,8 +896,32 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "MachineLearningRegistryEnvironmentVersion": { - "Name": "MachineLearningRegistryEnvironmentVersion", + "EnvironmentVersionResourceFixMe": { + "Name": "EnvironmentVersionResourceFixMe", + "GetOperations": [], + "CreateOperations": [], + "UpdateOperations": [], + "DeleteOperations": [], + "ListOperations": [], + "OperationsFromResourceGroupExtension": [], + "OperationsFromSubscriptionExtension": [], + "OperationsFromManagementGroupExtension": [], + "OperationsFromTenantExtension": [], + "OtherOperations": [], + "Parents": [], + "SwaggerModelName": "", + "ResourceType": "", + "ResourceKey": "", + "ResourceKeySegment": "", + "IsTrackedResource": false, + "IsTenantResource": false, + "IsSubscriptionResource": false, + "IsManagementGroupResource": false, + "IsExtensionResource": false, + "IsSingletonResource": false + }, + "EnvironmentVersionResource": { + "Name": "EnvironmentVersionResource", "GetOperations": [ { "Name": "Get", @@ -1339,7 +975,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "List", - "NextPageMethod": "ListNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -1351,7 +986,9 @@ "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], "OtherOperations": [], - "Parents": ["MachineLearningRegistryEnvironmentContainer"], + "Parents": [ + "EnvironmentContainerResource" + ], "SwaggerModelName": "EnvironmentVersionResource", "ResourceType": "Microsoft.MachineLearningServices/registries/environments/versions", "ResourceKey": "version", @@ -1363,78 +1000,23 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "MachineLearningEnvironmentVersion": { - "Name": "MachineLearningEnvironmentVersion", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}/versions/{version}", - "Method": "GET", - "OperationID": "EnvironmentVersions_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get version." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}/versions/{version}", - "Method": "PUT", - "OperationID": "EnvironmentVersions_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates or updates an EnvironmentVersion." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}/versions/{version}", - "Method": "PUT", - "OperationID": "EnvironmentVersions_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Creates or updates an EnvironmentVersion." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}/versions/{version}", - "Method": "DELETE", - "OperationID": "EnvironmentVersions_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete version." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/environments/{name}/versions", - "Method": "GET", - "OperationID": "EnvironmentVersions_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "NextPageMethod": "ListNextPage", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "List versions." - } - ], + "ModelContainerResourceFixMe": { + "Name": "ModelContainerResourceFixMe", + "GetOperations": [], + "CreateOperations": [], + "UpdateOperations": [], + "DeleteOperations": [], + "ListOperations": [], "OperationsFromResourceGroupExtension": [], "OperationsFromSubscriptionExtension": [], "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], "OtherOperations": [], - "Parents": ["MachineLearningEnvironmentContainer"], - "SwaggerModelName": "EnvironmentVersionResource", - "ResourceType": "Microsoft.MachineLearningServices/workspaces/environments/versions", - "ResourceKey": "version", - "ResourceKeySegment": "versions", + "Parents": [], + "SwaggerModelName": "", + "ResourceType": "", + "ResourceKey": "", + "ResourceKeySegment": "", "IsTrackedResource": false, "IsTenantResource": false, "IsSubscriptionResource": false, @@ -1442,8 +1024,8 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "MachineLearningRegistryModelContainer": { - "Name": "MachineLearningRegistryModelContainer", + "ModelContainerResource": { + "Name": "ModelContainerResource", "GetOperations": [ { "Name": "Get", @@ -1497,7 +1079,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "List", - "NextPageMethod": "ListNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -1509,7 +1090,9 @@ "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], "OtherOperations": [], - "Parents": ["MachineLearningRegistry"], + "Parents": [ + "Registry" + ], "SwaggerModelName": "ModelContainerResource", "ResourceType": "Microsoft.MachineLearningServices/registries/models", "ResourceKey": "modelName", @@ -1521,78 +1104,23 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "MachineLearningModelContainer": { - "Name": "MachineLearningModelContainer", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}", - "Method": "GET", - "OperationID": "ModelContainers_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get container." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}", - "Method": "PUT", - "OperationID": "ModelContainers_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update container." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}", - "Method": "PUT", - "OperationID": "ModelContainers_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update container." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}", - "Method": "DELETE", - "OperationID": "ModelContainers_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete container." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models", - "Method": "GET", - "OperationID": "ModelContainers_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "NextPageMethod": "ListNextPage", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "List model containers." - } - ], + "ModelVersionResourceFixMe": { + "Name": "ModelVersionResourceFixMe", + "GetOperations": [], + "CreateOperations": [], + "UpdateOperations": [], + "DeleteOperations": [], + "ListOperations": [], "OperationsFromResourceGroupExtension": [], "OperationsFromSubscriptionExtension": [], "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], "OtherOperations": [], - "Parents": ["MachineLearningWorkspace"], - "SwaggerModelName": "ModelContainerResource", - "ResourceType": "Microsoft.MachineLearningServices/workspaces/models", - "ResourceKey": "name", - "ResourceKeySegment": "models", + "Parents": [], + "SwaggerModelName": "", + "ResourceType": "", + "ResourceKey": "", + "ResourceKeySegment": "", "IsTrackedResource": false, "IsTenantResource": false, "IsSubscriptionResource": false, @@ -1600,8 +1128,8 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "MachineLearningRegistryModelVersion": { - "Name": "MachineLearningRegistryModelVersion", + "ModelVersionResource": { + "Name": "ModelVersionResource", "GetOperations": [ { "Name": "Get", @@ -1655,7 +1183,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "List", - "NextPageMethod": "ListNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -1686,98 +1213,11 @@ "Description": "Generate a storage location and credential for the client to upload a model asset to." } ], - "Parents": ["MachineLearningRegistryModelContainer"], - "SwaggerModelName": "ModelVersionResource", - "ResourceType": "Microsoft.MachineLearningServices/registries/models/versions", - "ResourceKey": "version", - "ResourceKeySegment": "versions", - "IsTrackedResource": false, - "IsTenantResource": false, - "IsSubscriptionResource": false, - "IsManagementGroupResource": false, - "IsExtensionResource": false, - "IsSingletonResource": false - }, - "MachineLearningModelVersion": { - "Name": "MachineLearningModelVersion", - "GetOperations": [ - { - "Name": "Get", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions/{version}", - "Method": "GET", - "OperationID": "ModelVersions_Get", - "IsLongRunning": false, - "PagingMetadata": null, - "Description": "Get version." - } - ], - "CreateOperations": [ - { - "Name": "CreateOrUpdate", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions/{version}", - "Method": "PUT", - "OperationID": "ModelVersions_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update version." - } - ], - "UpdateOperations": [ - { - "Name": "Update", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions/{version}", - "Method": "PUT", - "OperationID": "ModelVersions_CreateOrUpdate", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Create or update version." - } - ], - "DeleteOperations": [ - { - "Name": "Delete", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions/{version}", - "Method": "DELETE", - "OperationID": "ModelVersions_Delete", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Delete version." - } - ], - "ListOperations": [ - { - "Name": "GetAll", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions", - "Method": "GET", - "OperationID": "ModelVersions_List", - "IsLongRunning": false, - "PagingMetadata": { - "Method": "List", - "NextPageMethod": "ListNextPage", - "ItemName": "value", - "NextLinkName": "nextLink" - }, - "Description": "List model versions." - } - ], - "OperationsFromResourceGroupExtension": [], - "OperationsFromSubscriptionExtension": [], - "OperationsFromManagementGroupExtension": [], - "OperationsFromTenantExtension": [], - "OtherOperations": [ - { - "Name": "Package", - "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/models/{name}/versions/{version}/package", - "Method": "POST", - "OperationID": "ModelVersions_Package", - "IsLongRunning": true, - "PagingMetadata": null, - "Description": "Model Version Package operation." - } + "Parents": [ + "ModelContainerResource" ], - "Parents": ["MachineLearningModelContainer"], "SwaggerModelName": "ModelVersionResource", - "ResourceType": "Microsoft.MachineLearningServices/workspaces/models/versions", + "ResourceType": "Microsoft.MachineLearningServices/registries/models/versions", "ResourceKey": "version", "ResourceKeySegment": "versions", "IsTrackedResource": false, @@ -1787,8 +1227,8 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "MachineLearningBatchEndpoint": { - "Name": "MachineLearningBatchEndpoint", + "BatchEndpointTrackedResource": { + "Name": "BatchEndpointTrackedResource", "GetOperations": [ { "Name": "Get", @@ -1842,7 +1282,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "List", - "NextPageMethod": "ListNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -1855,7 +1294,7 @@ "OperationsFromTenantExtension": [], "OtherOperations": [ { - "Name": "GetKeys", + "Name": "ListKeys", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/batchEndpoints/{endpointName}/listkeys", "Method": "POST", "OperationID": "BatchEndpoints_ListKeys", @@ -1864,7 +1303,9 @@ "Description": "Lists batch Inference Endpoint keys." } ], - "Parents": ["MachineLearningWorkspace"], + "Parents": [ + "Workspace" + ], "SwaggerModelName": "BatchEndpointTrackedResource", "ResourceType": "Microsoft.MachineLearningServices/workspaces/batchEndpoints", "ResourceKey": "endpointName", @@ -1876,8 +1317,8 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "MachineLearningBatchDeployment": { - "Name": "MachineLearningBatchDeployment", + "BatchDeploymentTrackedResource": { + "Name": "BatchDeploymentTrackedResource", "GetOperations": [ { "Name": "Get", @@ -1931,7 +1372,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "List", - "NextPageMethod": "ListNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -1943,7 +1383,9 @@ "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], "OtherOperations": [], - "Parents": ["MachineLearningBatchEndpoint"], + "Parents": [ + "BatchEndpointTrackedResource" + ], "SwaggerModelName": "BatchDeploymentTrackedResource", "ResourceType": "Microsoft.MachineLearningServices/workspaces/batchEndpoints/deployments", "ResourceKey": "deploymentName", @@ -1955,8 +1397,8 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "MachineLearningDatastore": { - "Name": "MachineLearningDatastore", + "DatastoreResource": { + "Name": "DatastoreResource", "GetOperations": [ { "Name": "Get", @@ -2010,7 +1452,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "List", - "NextPageMethod": "ListNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -2023,7 +1464,7 @@ "OperationsFromTenantExtension": [], "OtherOperations": [ { - "Name": "GetSecrets", + "Name": "ListSecrets", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/datastores/{name}/listSecrets", "Method": "POST", "OperationID": "Datastores_ListSecrets", @@ -2032,7 +1473,9 @@ "Description": "Get datastore secrets." } ], - "Parents": ["MachineLearningWorkspace"], + "Parents": [ + "Workspace" + ], "SwaggerModelName": "DatastoreResource", "ResourceType": "Microsoft.MachineLearningServices/workspaces/datastores", "ResourceKey": "name", @@ -2044,8 +1487,8 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "MachineLearningFeatureSetContainer": { - "Name": "MachineLearningFeatureSetContainer", + "FeaturesetContainer": { + "Name": "FeaturesetContainer", "GetOperations": [ { "Name": "Get", @@ -2099,7 +1542,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "List", - "NextPageMethod": "ListNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -2111,7 +1553,9 @@ "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], "OtherOperations": [], - "Parents": ["MachineLearningWorkspace"], + "Parents": [ + "Workspace" + ], "SwaggerModelName": "FeaturesetContainer", "ResourceType": "Microsoft.MachineLearningServices/workspaces/featuresets", "ResourceKey": "name", @@ -2123,8 +1567,8 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "MachineLearningFeature": { - "Name": "MachineLearningFeature", + "Feature": { + "Name": "Feature", "GetOperations": [ { "Name": "Get", @@ -2148,7 +1592,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "List", - "NextPageMethod": "ListNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -2160,7 +1603,9 @@ "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], "OtherOperations": [], - "Parents": ["MachineLearningFeatureSetVersion"], + "Parents": [ + "Workspace" + ], "SwaggerModelName": "Feature", "ResourceType": "Microsoft.MachineLearningServices/workspaces/featuresets/versions/features", "ResourceKey": "featureName", @@ -2172,8 +1617,8 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "MachineLearningFeatureSetVersion": { - "Name": "MachineLearningFeatureSetVersion", + "FeaturesetVersion": { + "Name": "FeaturesetVersion", "GetOperations": [ { "Name": "Get", @@ -2227,7 +1672,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "List", - "NextPageMethod": "ListNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -2249,21 +1693,22 @@ "Description": "Backfill." }, { - "Name": "GetMaterializationJobs", + "Name": "ListMaterializationJobs", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/featuresets/{name}/versions/{version}/listMaterializationJobs", "Method": "POST", "OperationID": "FeaturesetVersions_ListMaterializationJobs", "IsLongRunning": false, "PagingMetadata": { "Method": "ListMaterializationJobs", - "NextPageMethod": "ListMaterializationJobsNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, "Description": "List materialization Jobs." } ], - "Parents": ["MachineLearningFeatureSetContainer"], + "Parents": [ + "FeaturesetContainer" + ], "SwaggerModelName": "FeaturesetVersion", "ResourceType": "Microsoft.MachineLearningServices/workspaces/featuresets/versions", "ResourceKey": "version", @@ -2275,8 +1720,8 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "MachineLearningFeatureStoreEntityContainer": { - "Name": "MachineLearningFeatureStoreEntityContainer", + "FeaturestoreEntityContainer": { + "Name": "FeaturestoreEntityContainer", "GetOperations": [ { "Name": "Get", @@ -2330,7 +1775,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "List", - "NextPageMethod": "ListNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -2342,7 +1786,9 @@ "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], "OtherOperations": [], - "Parents": ["MachineLearningWorkspace"], + "Parents": [ + "Workspace" + ], "SwaggerModelName": "FeaturestoreEntityContainer", "ResourceType": "Microsoft.MachineLearningServices/workspaces/featurestoreEntities", "ResourceKey": "name", @@ -2354,8 +1800,8 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "MachineLearningFeaturestoreEntityVersion": { - "Name": "MachineLearningFeaturestoreEntityVersion", + "FeaturestoreEntityVersion": { + "Name": "FeaturestoreEntityVersion", "GetOperations": [ { "Name": "Get", @@ -2409,7 +1855,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "List", - "NextPageMethod": "ListNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -2421,7 +1866,9 @@ "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], "OtherOperations": [], - "Parents": ["MachineLearningFeatureStoreEntityContainer"], + "Parents": [ + "FeaturestoreEntityContainer" + ], "SwaggerModelName": "FeaturestoreEntityVersion", "ResourceType": "Microsoft.MachineLearningServices/workspaces/featurestoreEntities/versions", "ResourceKey": "version", @@ -2433,8 +1880,8 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "MachineLearningJob": { - "Name": "MachineLearningJob", + "JobBaseResource": { + "Name": "JobBaseResource", "GetOperations": [ { "Name": "Get", @@ -2488,7 +1935,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "List", - "NextPageMethod": "ListNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -2510,7 +1956,9 @@ "Description": "Cancels a Job (asynchronous)." } ], - "Parents": ["MachineLearningWorkspace"], + "Parents": [ + "Workspace" + ], "SwaggerModelName": "JobBaseResource", "ResourceType": "Microsoft.MachineLearningServices/workspaces/jobs", "ResourceKey": "id", @@ -2522,8 +1970,8 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "MachineLearningLabelingJob": { - "Name": "MachineLearningLabelingJob", + "LabelingJob": { + "Name": "LabelingJob", "GetOperations": [ { "Name": "Get", @@ -2577,7 +2025,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "List", - "NextPageMethod": "ListNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -2617,7 +2064,9 @@ "Description": "Resume a labeling job (asynchronous)." } ], - "Parents": ["MachineLearningWorkspace"], + "Parents": [ + "Workspace" + ], "SwaggerModelName": "LabelingJob", "ResourceType": "Microsoft.MachineLearningServices/workspaces/labelingJobs", "ResourceKey": "id", @@ -2629,8 +2078,8 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "MachineLearningOnlineEndpoint": { - "Name": "MachineLearningOnlineEndpoint", + "OnlineEndpointTrackedResource": { + "Name": "OnlineEndpointTrackedResource", "GetOperations": [ { "Name": "Get", @@ -2684,7 +2133,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "List", - "NextPageMethod": "ListNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -2697,7 +2145,7 @@ "OperationsFromTenantExtension": [], "OtherOperations": [ { - "Name": "GetKeys", + "Name": "ListKeys", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/listKeys", "Method": "POST", "OperationID": "OnlineEndpoints_ListKeys", @@ -2724,7 +2172,9 @@ "Description": "Retrieve a valid AML token for an Endpoint using AMLToken-based authentication." } ], - "Parents": ["MachineLearningWorkspace"], + "Parents": [ + "Workspace" + ], "SwaggerModelName": "OnlineEndpointTrackedResource", "ResourceType": "Microsoft.MachineLearningServices/workspaces/onlineEndpoints", "ResourceKey": "endpointName", @@ -2736,8 +2186,8 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "MachineLearningOnlineDeployment": { - "Name": "MachineLearningOnlineDeployment", + "OnlineDeploymentTrackedResource": { + "Name": "OnlineDeploymentTrackedResource", "GetOperations": [ { "Name": "Get", @@ -2791,7 +2241,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "List", - "NextPageMethod": "ListNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -2813,21 +2262,22 @@ "Description": "Polls an Endpoint operation." }, { - "Name": "GetSkus", + "Name": "ListSkus", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/onlineEndpoints/{endpointName}/deployments/{deploymentName}/skus", "Method": "GET", "OperationID": "OnlineDeployments_ListSkus", "IsLongRunning": false, "PagingMetadata": { "Method": "ListSkus", - "NextPageMethod": "ListSkusNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, "Description": "List Inference Endpoint Deployment Skus." } ], - "Parents": ["MachineLearningOnlineEndpoint"], + "Parents": [ + "OnlineEndpointTrackedResource" + ], "SwaggerModelName": "OnlineDeploymentTrackedResource", "ResourceType": "Microsoft.MachineLearningServices/workspaces/onlineEndpoints/deployments", "ResourceKey": "deploymentName", @@ -2839,8 +2289,8 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "MachineLearningSchedule": { - "Name": "MachineLearningSchedule", + "Schedule": { + "Name": "Schedule", "GetOperations": [ { "Name": "Get", @@ -2894,7 +2344,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "List", - "NextPageMethod": "ListNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -2906,7 +2355,9 @@ "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], "OtherOperations": [], - "Parents": ["MachineLearningWorkspace"], + "Parents": [ + "Workspace" + ], "SwaggerModelName": "Schedule", "ResourceType": "Microsoft.MachineLearningServices/workspaces/schedules", "ResourceKey": "name", @@ -2918,8 +2369,8 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "MachineLearningRegistry": { - "Name": "MachineLearningRegistry", + "Registry": { + "Name": "Registry", "GetOperations": [ { "Name": "Get", @@ -2973,7 +2424,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "List", - "NextPageMethod": "ListNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -2983,14 +2433,13 @@ "OperationsFromResourceGroupExtension": [], "OperationsFromSubscriptionExtension": [ { - "Name": "GetMachineLearningRegistries", + "Name": "_", "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/registries", "Method": "GET", "OperationID": "Registries_ListBySubscription", "IsLongRunning": false, "PagingMetadata": { "Method": "ListBySubscription", - "NextPageMethod": "ListBySubscriptionNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -3010,7 +2459,9 @@ "Description": "Remove regions from registry" } ], - "Parents": ["ResourceGroupResource"], + "Parents": [ + "ResourceGroupResource" + ], "SwaggerModelName": "Registry", "ResourceType": "Microsoft.MachineLearningServices/registries", "ResourceKey": "registryName", @@ -3022,8 +2473,8 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "MachineLearningWorkspace": { - "Name": "MachineLearningWorkspace", + "Workspace": { + "Name": "Workspace", "GetOperations": [ { "Name": "Get", @@ -3077,7 +2528,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "ListByResourceGroup", - "NextPageMethod": "ListByResourceGroupNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -3087,14 +2537,13 @@ "OperationsFromResourceGroupExtension": [], "OperationsFromSubscriptionExtension": [ { - "Name": "GetMachineLearningWorkspaces", + "Name": "_", "Path": "/subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/workspaces", "Method": "GET", "OperationID": "Workspaces_ListBySubscription", "IsLongRunning": false, "PagingMetadata": { "Method": "ListBySubscription", - "NextPageMethod": "ListBySubscriptionNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -3105,14 +2554,13 @@ "OperationsFromTenantExtension": [], "OtherOperations": [ { - "Name": "GetWorkspaceFeatures", + "Name": "List", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/features", "Method": "GET", "OperationID": "WorkspaceFeatures_List", "IsLongRunning": false, "PagingMetadata": { "Method": "List", - "NextPageMethod": "ListNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -3128,7 +2576,7 @@ "Description": "Diagnose workspace setup issue." }, { - "Name": "GetKeys", + "Name": "ListKeys", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listKeys", "Method": "POST", "OperationID": "Workspaces_ListKeys", @@ -3137,7 +2585,7 @@ "Description": "Lists all the keys associated with this workspace. This includes keys for the storage account, app insights and password for container registry." }, { - "Name": "GetNotebookAccessToken", + "Name": "ListNotebookAccessToken", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listNotebookAccessToken", "Method": "POST", "OperationID": "Workspaces_ListNotebookAccessToken", @@ -3146,7 +2594,7 @@ "Description": "Get Azure Machine Learning Workspace notebook access token" }, { - "Name": "GetNotebookKeys", + "Name": "ListNotebookKeys", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listNotebookKeys", "Method": "POST", "OperationID": "Workspaces_ListNotebookKeys", @@ -3155,25 +2603,24 @@ "Description": "Lists keys of Azure Machine Learning Workspaces notebook." }, { - "Name": "GetStorageAccountKeys", + "Name": "ListStorageAccountKeys", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/listStorageAccountKeys", "Method": "POST", "OperationID": "Workspaces_ListStorageAccountKeys", "IsLongRunning": false, "PagingMetadata": null, - "Description": "Lists keys of Azure Machine Learning Workspace\u0027s storage account." + "Description": "Lists keys of Azure Machine Learning Workspace's storage account." }, { - "Name": "GetOutboundNetworkDependenciesEndpoints", + "Name": "ListOutboundNetworkDependenciesEndpoints", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/outboundNetworkDependenciesEndpoints", "Method": "GET", "OperationID": "Workspaces_ListOutboundNetworkDependenciesEndpoints", "IsLongRunning": false, "PagingMetadata": { "Method": "ListOutboundNetworkDependenciesEndpoints", - "NextPageMethod": null, "ItemName": "value", - "NextLinkName": null + "NextLinkName": "nextLink" }, "Description": "Called by Client (Portal, CLI, etc) to get a list of all external outbound dependencies (FQDNs) programmatically." }, @@ -3184,7 +2631,7 @@ "OperationID": "Workspaces_PrepareNotebook", "IsLongRunning": true, "PagingMetadata": null, - "Description": "Prepare Azure Machine Learning Workspace\u0027s notebook resource" + "Description": "Prepare Azure Machine Learning Workspace's notebook resource" }, { "Name": "ResyncKeys", @@ -3196,16 +2643,20 @@ "Description": "Resync all the keys associated with this workspace.This includes keys for the storage account, app insights and password for container registry" }, { - "Name": "GetPrivateLinkResources", + "Name": "List", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/privateLinkResources", "Method": "GET", "OperationID": "PrivateLinkResources_List", "IsLongRunning": false, - "PagingMetadata": { "Method": "List", "NextPageMethod": null, "ItemName": "value", "NextLinkName": null }, - "Description": "Called by Client (Portal, CLI, etc) to get available \u0022private link resources\u0022 for the workspace.\r\nEach \u0022private link resource\u0022 is a connection endpoint (IP address) to the resource.\r\nPre single connection endpoint per workspace: the Data Plane IP address, returned by DNS resolution.\r\nOther RPs, such as Azure Storage, have multiple - one for Blobs, other for Queues, etc.\r\nDefined in the \u0022[NRP] Private Endpoint Design\u0022 doc, topic \u0022GET API for GroupIds\u0022." + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "Description": "Called by Client (Portal, CLI, etc) to get available \"private link resources\" for the workspace.\r\nEach \"private link resource\" is a connection endpoint (IP address) to the resource.\r\nPre single connection endpoint per workspace: the Data Plane IP address, returned by DNS resolution.\r\nOther RPs, such as Azure Storage, have multiple - one for Blobs, other for Queues, etc.\r\nDefined in the \"[NRP] Private Endpoint Design\" doc, topic \"GET API for GroupIds\"." }, { - "Name": "ProvisionManagedNetworkManagedNetworkProvision", + "Name": "ProvisionManagedNetwork", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/provisionManagedNetwork", "Method": "POST", "OperationID": "ManagedNetworkProvisions_ProvisionManagedNetwork", @@ -3214,7 +2665,9 @@ "Description": "Provisions the managed network of a machine learning workspace." } ], - "Parents": ["ResourceGroupResource"], + "Parents": [ + "ResourceGroupResource" + ], "SwaggerModelName": "Workspace", "ResourceType": "Microsoft.MachineLearningServices/workspaces", "ResourceKey": "workspaceName", @@ -3226,8 +2679,8 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "MachineLearningWorkspaceConnection": { - "Name": "MachineLearningWorkspaceConnection", + "WorkspaceConnectionPropertiesV2BasicResource": { + "Name": "WorkspaceConnectionPropertiesV2BasicResource", "GetOperations": [ { "Name": "Get", @@ -3281,7 +2734,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "List", - "NextPageMethod": "ListNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -3294,7 +2746,7 @@ "OperationsFromTenantExtension": [], "OtherOperations": [ { - "Name": "GetSecrets", + "Name": "ListSecrets", "Path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections/{connectionName}/listsecrets", "Method": "POST", "OperationID": "WorkspaceConnections_ListSecrets", @@ -3303,7 +2755,9 @@ "Description": "List all the secrets of a machine learning workspaces connections." } ], - "Parents": ["MachineLearningWorkspace"], + "Parents": [ + "Workspace" + ], "SwaggerModelName": "WorkspaceConnectionPropertiesV2BasicResource", "ResourceType": "Microsoft.MachineLearningServices/workspaces/connections", "ResourceKey": "connectionName", @@ -3315,8 +2769,8 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "MachineLearningOutboundRuleBasic": { - "Name": "MachineLearningOutboundRuleBasic", + "OutboundRuleBasicResource": { + "Name": "OutboundRuleBasicResource", "GetOperations": [ { "Name": "Get", @@ -3370,7 +2824,6 @@ "IsLongRunning": false, "PagingMetadata": { "Method": "List", - "NextPageMethod": "ListNextPage", "ItemName": "value", "NextLinkName": "nextLink" }, @@ -3382,7 +2835,9 @@ "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], "OtherOperations": [], - "Parents": ["MachineLearningWorkspace"], + "Parents": [ + "Workspace" + ], "SwaggerModelName": "OutboundRuleBasicResource", "ResourceType": "Microsoft.MachineLearningServices/workspaces/outboundRules", "ResourceKey": "ruleName", @@ -3394,8 +2849,8 @@ "IsExtensionResource": false, "IsSingletonResource": false }, - "MachineLearningPrivateEndpointConnection": { - "Name": "MachineLearningPrivateEndpointConnection", + "PrivateEndpointConnection": { + "Name": "PrivateEndpointConnection", "GetOperations": [ { "Name": "Get", @@ -3447,7 +2902,11 @@ "Method": "GET", "OperationID": "PrivateEndpointConnections_List", "IsLongRunning": false, - "PagingMetadata": { "Method": "List", "NextPageMethod": null, "ItemName": "value", "NextLinkName": null }, + "PagingMetadata": { + "Method": "List", + "ItemName": "value", + "NextLinkName": "nextLink" + }, "Description": "Called by end-users to get all PE connections." } ], @@ -3456,7 +2915,9 @@ "OperationsFromManagementGroupExtension": [], "OperationsFromTenantExtension": [], "OtherOperations": [], - "Parents": ["MachineLearningWorkspace"], + "Parents": [ + "Workspace" + ], "SwaggerModelName": "PrivateEndpointConnection", "ResourceType": "Microsoft.MachineLearningServices/workspaces/privateEndpointConnections", "ResourceKey": "privateEndpointConnectionName", @@ -3468,5 +2929,7 @@ "IsExtensionResource": false, "IsSingletonResource": false } - } -} + }, + "RenameMapping": {}, + "OverrideOperationName": {} +} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/CodeContainerResourceFixMe.tsp b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/CodeContainerResourceFixMe.tsp new file mode 100644 index 0000000000..623847a80a --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/CodeContainerResourceFixMe.tsp @@ -0,0 +1 @@ +// You defined multiple pathes under the model CodeContainerResource. We currently don't support it. Please fix it manually. \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/CodeVersionResourceFixMe.tsp b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/CodeVersionResourceFixMe.tsp new file mode 100644 index 0000000000..a145d386f9 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/CodeVersionResourceFixMe.tsp @@ -0,0 +1 @@ +// You defined multiple pathes under the model CodeVersionResource. We currently don't support it. Please fix it manually. \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/ComponentContainerResourceFixMe.tsp b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/ComponentContainerResourceFixMe.tsp new file mode 100644 index 0000000000..f4bbc239c4 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/ComponentContainerResourceFixMe.tsp @@ -0,0 +1 @@ +// You defined multiple pathes under the model ComponentContainerResource. We currently don't support it. Please fix it manually. \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/ComponentVersionResourceFixMe.tsp b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/ComponentVersionResourceFixMe.tsp new file mode 100644 index 0000000000..42c0b7ad32 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/ComponentVersionResourceFixMe.tsp @@ -0,0 +1 @@ +// You defined multiple pathes under the model ComponentVersionResource. We currently don't support it. Please fix it manually. \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/DataContainerResourceFixMe.tsp b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/DataContainerResourceFixMe.tsp new file mode 100644 index 0000000000..1325c16d5c --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/DataContainerResourceFixMe.tsp @@ -0,0 +1 @@ +// You defined multiple pathes under the model DataContainerResource. We currently don't support it. Please fix it manually. \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/DataVersionBaseResourceFixMe.tsp b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/DataVersionBaseResourceFixMe.tsp new file mode 100644 index 0000000000..6303956e5d --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/DataVersionBaseResourceFixMe.tsp @@ -0,0 +1 @@ +// You defined multiple pathes under the model DataVersionBaseResource. We currently don't support it. Please fix it manually. \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/EnvironmentContainerResourceFixMe.tsp b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/EnvironmentContainerResourceFixMe.tsp new file mode 100644 index 0000000000..959e27aec0 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/EnvironmentContainerResourceFixMe.tsp @@ -0,0 +1 @@ +// You defined multiple pathes under the model EnvironmentContainerResource. We currently don't support it. Please fix it manually. \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/EnvironmentVersionResourceFixMe.tsp b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/EnvironmentVersionResourceFixMe.tsp new file mode 100644 index 0000000000..f861ea09ae --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/EnvironmentVersionResourceFixMe.tsp @@ -0,0 +1 @@ +// You defined multiple pathes under the model EnvironmentVersionResource. We currently don't support it. Please fix it manually. \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/Feature.tsp b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/Feature.tsp index 4748498110..d170fae3cc 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/Feature.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/Feature.tsp @@ -3,7 +3,7 @@ import "@azure-tools/typespec-azure-resource-manager"; import "@typespec/openapi"; import "@typespec/rest"; import "./models.tsp"; -import "./FeaturesetVersion.tsp"; +import "./Workspace.tsp"; using TypeSpec.Rest; using Azure.ResourceManager; @@ -14,7 +14,7 @@ namespace Azure.ResourceManager.MachineLearning; /** * Azure Resource Manager resource envelope. */ -@parentResource(FeaturesetVersion) +@parentResource(Workspace) model Feature is Azure.ResourceManager.ProxyResource { ...ResourceNameParameter< Resource = Feature, diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/ModelContainerResourceFixMe.tsp b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/ModelContainerResourceFixMe.tsp new file mode 100644 index 0000000000..bbdf780ef2 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/ModelContainerResourceFixMe.tsp @@ -0,0 +1 @@ +// You defined multiple pathes under the model ModelContainerResource. We currently don't support it. Please fix it manually. \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/ModelVersionResourceFixMe.tsp b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/ModelVersionResourceFixMe.tsp new file mode 100644 index 0000000000..f6c4547ab4 --- /dev/null +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/ModelVersionResourceFixMe.tsp @@ -0,0 +1 @@ +// You defined multiple pathes under the model ModelVersionResource. We currently don't support it. Please fix it manually. \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/main.tsp b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/main.tsp index 8d0ba2e3ba..22b5f4d103 100644 --- a/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/main.tsp +++ b/packages/extensions/openapi-to-typespec/test/arm-machinelearningservices/tsp-output/main.tsp @@ -11,24 +11,14 @@ import "@azure-tools/typespec-azure-resource-manager"; import "./models.tsp"; import "./ComputeResource.tsp"; import "./CodeContainerResource.tsp"; -import "./CodeContainerResource.tsp"; -import "./CodeVersionResource.tsp"; import "./CodeVersionResource.tsp"; import "./ComponentContainerResource.tsp"; -import "./ComponentContainerResource.tsp"; import "./ComponentVersionResource.tsp"; -import "./ComponentVersionResource.tsp"; -import "./DataContainerResource.tsp"; import "./DataContainerResource.tsp"; import "./DataVersionBaseResource.tsp"; -import "./DataVersionBaseResource.tsp"; -import "./EnvironmentContainerResource.tsp"; import "./EnvironmentContainerResource.tsp"; import "./EnvironmentVersionResource.tsp"; -import "./EnvironmentVersionResource.tsp"; import "./ModelContainerResource.tsp"; -import "./ModelContainerResource.tsp"; -import "./ModelVersionResource.tsp"; import "./ModelVersionResource.tsp"; import "./BatchEndpointTrackedResource.tsp"; import "./BatchDeploymentTrackedResource.tsp"; diff --git a/packages/extensions/openapi-to-typespec/test/arm-storage/tsp-output/examples/2022-09-01/DeletedAccounts_List.json b/packages/extensions/openapi-to-typespec/test/arm-storage/tsp-output/examples/2022-09-01/DeletedAccounts_List.json deleted file mode 100644 index 6093d65130..0000000000 --- a/packages/extensions/openapi-to-typespec/test/arm-storage/tsp-output/examples/2022-09-01/DeletedAccounts_List.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "parameters": { - "api-version": "2022-09-01", - "monitor": "true", - "subscriptionId": "{subscription-id}" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "name": "sto1125", - "type": "Microsoft.Storage/deletedAccounts", - "id": "/subscriptions/{subscription-id}/providers/Microsoft.Storage/locations/eastus/deletedAccounts/sto1125", - "properties": { - "creationTime": "2020-08-17T03:35:37.4588848Z", - "deletionTime": "2020-08-17T04:41:37.3442475Z", - "location": "eastus", - "restoreReference": "sto1125|2020-08-17T03:35:37.4588848Z", - "storageAccountResourceId": "/subscriptions/{subscription-id}/resourceGroups/sto/providers/Microsoft.Storage/storageAccounts/sto1125" - } - }, - { - "name": "sto1126", - "type": "Microsoft.Storage/deletedAccounts", - "id": "/subscriptions/{subscription-id}/providers/Microsoft.Storage/locations/eastus/deletedAccounts/sto1126", - "properties": { - "creationTime": "2020-08-19T15:10:21.5902165Z", - "deletionTime": "2020-08-20T06:11:55.1957302Z", - "location": "eastus", - "restoreReference": "sto1126|2020-08-17T03:35:37.4588848Z", - "storageAccountResourceId": "/subscriptions/{subscription-id}/resourceGroups/sto/providers/Microsoft.Storage/storageAccounts/sto1126" - } - } - ] - } - } - }, - "operationId": "DeletedAccounts_List", - "title": "DeletedAccountList" -} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/arm-storage/tsp-output/examples/2022-09-01/StorageAccounts_CheckNameAvailability.json b/packages/extensions/openapi-to-typespec/test/arm-storage/tsp-output/examples/2022-09-01/StorageAccounts_CheckNameAvailability.json deleted file mode 100644 index 2204f5e2a1..0000000000 --- a/packages/extensions/openapi-to-typespec/test/arm-storage/tsp-output/examples/2022-09-01/StorageAccounts_CheckNameAvailability.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "parameters": { - "accountName": { - "name": "sto3363", - "type": "Microsoft.Storage/storageAccounts" - }, - "api-version": "2022-09-01", - "subscriptionId": "{subscription-id}" - }, - "responses": { - "200": { - "body": { - "nameAvailable": true - } - } - }, - "operationId": "StorageAccounts_CheckNameAvailability", - "title": "StorageAccountCheckNameAvailability" -} \ No newline at end of file diff --git a/packages/extensions/openapi-to-typespec/test/utils/generate-typespec.ts b/packages/extensions/openapi-to-typespec/test/utils/generate-typespec.ts index 73d5e11a38..fe5ca94f5b 100644 --- a/packages/extensions/openapi-to-typespec/test/utils/generate-typespec.ts +++ b/packages/extensions/openapi-to-typespec/test/utils/generate-typespec.ts @@ -1,5 +1,5 @@ import { execSync, spawnSync } from "child_process"; -import { readFileSync } from "fs"; +import { readFileSync, unlinkSync, lstatSync } from "fs"; import { readdir } from "fs/promises"; import { join, dirname, extname, resolve } from "path"; import { resolveProject } from "./resolve-root"; @@ -34,7 +34,7 @@ export async function generateTypespec(repoRoot: string, folder: string, debug = } const swaggerPath = join(path, firstSwagger); - generate(repoRoot, swaggerPath, debug, brownFieldProjects.includes(folder)); + await generate(repoRoot, swaggerPath, debug, brownFieldProjects.includes(folder)); } // A list containing all the projects we could compile. After we enable all the projects, we will delete this list. @@ -63,7 +63,7 @@ export async function generateSwagger(folder: string) { // `isFullCompatible` is mainly used for brownfield projects, where users want to fully honor the definition in the swagger file. // For greenfield projects, we expect users to set `isFullCompatible` to `false` so that it would follow the arm template definition. -function generate(root: string, path: string, debug = false, isFullCompatible = false) { +async function generate(root: string, path: string, debug = false, isFullCompatible = false) { const extension = extname(path); const inputFile = extension === ".json" ? `--input-file=${path}` : `--require=${path}`; @@ -73,6 +73,13 @@ function generate(root: string, path: string, debug = false, isFullCompatible = overrideGuess = fileContent.includes("guessResourceKey: false"); } + const files = await readdir(join(dirname(path), "tsp-output"), {recursive: true}); + for (const file of files) { + const fullPath = join(dirname(path), "tsp-output", file); + if (lstatSync(fullPath).isDirectory()) continue; + unlinkSync(fullPath); + } + const args = [ resolve(root, "packages/apps/autorest/entrypoints/app.js"), "--openapi-to-typespec", @@ -107,7 +114,7 @@ async function main() { for (let i = 0; i < folders.length; i++) { const folder = folders[i]; // Multipath cases - if (["arm-apimanagement", "arm-compute", "arm-machinelearningservices"].includes(folder)) continue; + // if (["arm-apimanagement", "arm-compute", "arm-machinelearningservices"].includes(folder)) continue; // Expanded cases: https://github.com/Azure/typespec-azure/issues/1261 if (folder === "arm-dns") continue; try {