Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class AppPlatformManagementClient extends AppPlatformManagementClientContext {
customDomains: operations.CustomDomains;
deployments: operations.Deployments;
operations: operations.Operations;
runtimeVersions: operations.RuntimeVersions;
skus: operations.Skus;

/**
Expand All @@ -46,6 +47,7 @@ class AppPlatformManagementClient extends AppPlatformManagementClientContext {
this.customDomains = new operations.CustomDomains(this);
this.deployments = new operations.Deployments(this);
this.operations = new operations.Operations(this);
this.runtimeVersions = new operations.RuntimeVersions(this);
this.skus = new operations.Skus(this);
}
}
Expand Down
88 changes: 82 additions & 6 deletions sdk/appplatform/arm-appplatform/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ export interface CustomDomainValidateResult {
*/
export interface UserSourceInfo {
/**
* Type of the source uploaded. Possible values include: 'Jar', 'Source'
* Type of the source uploaded. Possible values include: 'Jar', 'NetCoreZip', 'Source'
*/
type?: UserSourceType;
/**
Expand Down Expand Up @@ -730,12 +730,16 @@ export interface DeploymentSettings {
* JVM parameter
*/
jvmOptions?: string;
/**
* The path to the .NET executable relative to zip root
*/
netCoreMainEntryPath?: string;
/**
* Collection of environment variables
*/
environmentVariables?: { [propertyName: string]: string };
/**
* Runtime version. Possible values include: 'Java_8', 'Java_11'
* Runtime version. Possible values include: 'Java_8', 'Java_11', 'NetCore_31'
*/
runtimeVersion?: RuntimeVersion;
}
Expand Down Expand Up @@ -764,6 +768,11 @@ export interface DeploymentInstance {
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly discoveryStatus?: string;
/**
* Start time of the deployment instance
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly startTime?: string;
}

/**
Expand Down Expand Up @@ -1131,6 +1140,37 @@ export interface ResourceSku {
restrictions?: ResourceSkuRestrictions[];
}

/**
* Supported deployment runtime version descriptor.
*/
export interface SupportedRuntimeVersion1 {
/**
* The raw value which could be passed to deployment CRUD operations. Possible values include:
* 'Java_8', 'Java_11', 'NetCore_31'
*/
value?: SupportedRuntimeVersion;
/**
* The platform of this runtime version (possible values: "Java" or ".NET"). Possible values
* include: 'Java', '.NET Core'
*/
platform?: SupportedRuntimePlatform;
/**
* The detailed version (major.minor) of the platform.
*/
version?: string;
}

/**
* An interface representing AvailableRuntimeVersions.
*/
export interface AvailableRuntimeVersions {
/**
* A list of all supported runtime versions.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly value?: SupportedRuntimeVersion1[];
}

/**
* Optional Parameters.
*/
Expand Down Expand Up @@ -1321,19 +1361,19 @@ export type AppResourceProvisioningState = 'Succeeded' | 'Failed' | 'Creating' |

/**
* Defines values for UserSourceType.
* Possible values include: 'Jar', 'Source'
* Possible values include: 'Jar', 'NetCoreZip', 'Source'
* @readonly
* @enum {string}
*/
export type UserSourceType = 'Jar' | 'Source';
export type UserSourceType = 'Jar' | 'NetCoreZip' | 'Source';

/**
* Defines values for RuntimeVersion.
* Possible values include: 'Java_8', 'Java_11'
* Possible values include: 'Java_8', 'Java_11', 'NetCore_31'
* @readonly
* @enum {string}
*/
export type RuntimeVersion = 'Java_8' | 'Java_11';
export type RuntimeVersion = 'Java_8' | 'Java_11' | 'NetCore_31';

/**
* Defines values for DeploymentResourceProvisioningState.
Expand Down Expand Up @@ -1376,6 +1416,22 @@ export type ResourceSkuRestrictionsType = 'Location' | 'Zone';
*/
export type ResourceSkuRestrictionsReasonCode = 'QuotaId' | 'NotAvailableForSubscription';

/**
* Defines values for SupportedRuntimeVersion.
* Possible values include: 'Java_8', 'Java_11', 'NetCore_31'
* @readonly
* @enum {string}
*/
export type SupportedRuntimeVersion = 'Java_8' | 'Java_11' | 'NetCore_31';

/**
* Defines values for SupportedRuntimePlatform.
* Possible values include: 'Java', '.NET Core'
* @readonly
* @enum {string}
*/
export type SupportedRuntimePlatform = 'Java' | '.NET Core';

/**
* Contains response data for the get operation.
*/
Expand Down Expand Up @@ -2636,6 +2692,26 @@ export type OperationsListNextResponse = AvailableOperations & {
};
};

/**
* Contains response data for the listRuntimeVersions operation.
*/
export type RuntimeVersionsListRuntimeVersionsResponse = AvailableRuntimeVersions & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: AvailableRuntimeVersions;
};
};

/**
* Contains response data for the list operation.
*/
Expand Down
64 changes: 64 additions & 0 deletions sdk/appplatform/arm-appplatform/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1181,6 +1181,12 @@ export const DeploymentSettings: msRest.CompositeMapper = {
name: "String"
}
},
netCoreMainEntryPath: {
serializedName: "netCoreMainEntryPath",
type: {
name: "String"
}
},
environmentVariables: {
serializedName: "environmentVariables",
type: {
Expand Down Expand Up @@ -1235,6 +1241,13 @@ export const DeploymentInstance: msRest.CompositeMapper = {
type: {
name: "String"
}
},
startTime: {
readOnly: true,
serializedName: "startTime",
type: {
name: "String"
}
}
}
}
Expand Down Expand Up @@ -1888,6 +1901,57 @@ export const ResourceSku: msRest.CompositeMapper = {
}
};

export const SupportedRuntimeVersion1: msRest.CompositeMapper = {
serializedName: "SupportedRuntimeVersion",
type: {
name: "Composite",
className: "SupportedRuntimeVersion1",
modelProperties: {
value: {
serializedName: "value",
type: {
name: "String"
}
},
platform: {
serializedName: "platform",
type: {
name: "String"
}
},
version: {
serializedName: "version",
type: {
name: "String"
}
}
}
}
};

export const AvailableRuntimeVersions: msRest.CompositeMapper = {
serializedName: "AvailableRuntimeVersions",
type: {
name: "Composite",
className: "AvailableRuntimeVersions",
modelProperties: {
value: {
readOnly: true,
serializedName: "value",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "SupportedRuntimeVersion1"
}
}
}
}
}
}
};

export const ServiceResourceList: msRest.CompositeMapper = {
serializedName: "ServiceResourceList",
type: {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/

export {
AvailableRuntimeVersions,
CloudError,
SupportedRuntimeVersion1
} from "../models/mappers";
1 change: 1 addition & 0 deletions sdk/appplatform/arm-appplatform/src/operations/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ export * from "./certificates";
export * from "./customDomains";
export * from "./deployments";
export * from "./operations";
export * from "./runtimeVersions";
export * from "./skus";
74 changes: 74 additions & 0 deletions sdk/appplatform/arm-appplatform/src/operations/runtimeVersions.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

import * as msRest from "@azure/ms-rest-js";
import * as Models from "../models";
import * as Mappers from "../models/runtimeVersionsMappers";
import * as Parameters from "../models/parameters";
import { AppPlatformManagementClientContext } from "../appPlatformManagementClientContext";

/** Class representing a RuntimeVersions. */
export class RuntimeVersions {
private readonly client: AppPlatformManagementClientContext;

/**
* Create a RuntimeVersions.
* @param {AppPlatformManagementClientContext} client Reference to the service client.
*/
constructor(client: AppPlatformManagementClientContext) {
this.client = client;
}

/**
* Lists all of the available runtime versions supported by Microsoft.AppPlatform provider.
* @param [options] The optional parameters
* @returns Promise<Models.RuntimeVersionsListRuntimeVersionsResponse>
*/
listRuntimeVersions(options?: msRest.RequestOptionsBase): Promise<Models.RuntimeVersionsListRuntimeVersionsResponse>;
/**
* @param callback The callback
*/
listRuntimeVersions(callback: msRest.ServiceCallback<Models.AvailableRuntimeVersions>): void;
/**
* @param options The optional parameters
* @param callback The callback
*/
listRuntimeVersions(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.AvailableRuntimeVersions>): void;
listRuntimeVersions(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.AvailableRuntimeVersions>, callback?: msRest.ServiceCallback<Models.AvailableRuntimeVersions>): Promise<Models.RuntimeVersionsListRuntimeVersionsResponse> {
return this.client.sendOperationRequest(
{
options
},
listRuntimeVersionsOperationSpec,
callback) as Promise<Models.RuntimeVersionsListRuntimeVersionsResponse>;
}
}

// Operation Specifications
const serializer = new msRest.Serializer(Mappers);
const listRuntimeVersionsOperationSpec: msRest.OperationSpec = {
httpMethod: "GET",
path: "providers/Microsoft.AppPlatform/runtimeVersions",
queryParameters: [
Parameters.apiVersion
],
headerParameters: [
Parameters.acceptLanguage
],
responses: {
200: {
bodyMapper: Mappers.AvailableRuntimeVersions
},
default: {
bodyMapper: Mappers.CloudError
}
},
serializer
};