From 599521c1bcb5c7547577d8e4dcd35a7b97aa56a2 Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Thu, 17 Sep 2020 06:04:36 +0000 Subject: [PATCH] Generated from ee9f2c0af7a5b9317b3196e62abd0ba47fc764c5 --- .../src/appPlatformManagementClient.ts | 2 + .../arm-appplatform/src/models/appsMappers.ts | 1 + .../src/models/bindingsMappers.ts | 1 + .../src/models/certificatesMappers.ts | 1 + .../src/models/configServersMappers.ts | 1 + .../src/models/customDomainsMappers.ts | 1 + .../src/models/deploymentsMappers.ts | 1 + .../arm-appplatform/src/models/index.ts | 104 +++++++++++++++++- .../arm-appplatform/src/models/mappers.ts | 94 ++++++++++++++++ .../src/models/monitoringSettingsMappers.ts | 1 + .../src/models/runtimeVersionsMappers.ts | 13 +++ .../src/models/servicesMappers.ts | 1 + .../arm-appplatform/src/operations/index.ts | 1 + .../src/operations/runtimeVersions.ts | 74 +++++++++++++ 14 files changed, 290 insertions(+), 6 deletions(-) create mode 100644 sdk/appplatform/arm-appplatform/src/models/runtimeVersionsMappers.ts create mode 100644 sdk/appplatform/arm-appplatform/src/operations/runtimeVersions.ts diff --git a/sdk/appplatform/arm-appplatform/src/appPlatformManagementClient.ts b/sdk/appplatform/arm-appplatform/src/appPlatformManagementClient.ts index d5530022c557..e768cf4925a6 100644 --- a/sdk/appplatform/arm-appplatform/src/appPlatformManagementClient.ts +++ b/sdk/appplatform/arm-appplatform/src/appPlatformManagementClient.ts @@ -26,6 +26,7 @@ class AppPlatformManagementClient extends AppPlatformManagementClientContext { customDomains: operations.CustomDomains; deployments: operations.Deployments; operations: operations.Operations; + runtimeVersions: operations.RuntimeVersions; skus: operations.Skus; /** @@ -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); } } diff --git a/sdk/appplatform/arm-appplatform/src/models/appsMappers.ts b/sdk/appplatform/arm-appplatform/src/models/appsMappers.ts index 280954160683..3e07c6e467c9 100644 --- a/sdk/appplatform/arm-appplatform/src/models/appsMappers.ts +++ b/sdk/appplatform/arm-appplatform/src/models/appsMappers.ts @@ -35,6 +35,7 @@ export { MonitoringSettingProperties, MonitoringSettingResource, NetworkProfile, + NetworkProfileOutboundIPs, PersistentDisk, ProxyResource, Resource, diff --git a/sdk/appplatform/arm-appplatform/src/models/bindingsMappers.ts b/sdk/appplatform/arm-appplatform/src/models/bindingsMappers.ts index 6b95e4ff962d..7abcbf445fc9 100644 --- a/sdk/appplatform/arm-appplatform/src/models/bindingsMappers.ts +++ b/sdk/appplatform/arm-appplatform/src/models/bindingsMappers.ts @@ -33,6 +33,7 @@ export { MonitoringSettingProperties, MonitoringSettingResource, NetworkProfile, + NetworkProfileOutboundIPs, PersistentDisk, ProxyResource, Resource, diff --git a/sdk/appplatform/arm-appplatform/src/models/certificatesMappers.ts b/sdk/appplatform/arm-appplatform/src/models/certificatesMappers.ts index fcbc47b646e9..dd037de29a9a 100644 --- a/sdk/appplatform/arm-appplatform/src/models/certificatesMappers.ts +++ b/sdk/appplatform/arm-appplatform/src/models/certificatesMappers.ts @@ -33,6 +33,7 @@ export { MonitoringSettingProperties, MonitoringSettingResource, NetworkProfile, + NetworkProfileOutboundIPs, PersistentDisk, ProxyResource, Resource, diff --git a/sdk/appplatform/arm-appplatform/src/models/configServersMappers.ts b/sdk/appplatform/arm-appplatform/src/models/configServersMappers.ts index 125c2ba459b5..6d10580f2714 100644 --- a/sdk/appplatform/arm-appplatform/src/models/configServersMappers.ts +++ b/sdk/appplatform/arm-appplatform/src/models/configServersMappers.ts @@ -32,6 +32,7 @@ export { MonitoringSettingProperties, MonitoringSettingResource, NetworkProfile, + NetworkProfileOutboundIPs, PersistentDisk, ProxyResource, Resource, diff --git a/sdk/appplatform/arm-appplatform/src/models/customDomainsMappers.ts b/sdk/appplatform/arm-appplatform/src/models/customDomainsMappers.ts index 57b40b6a2bdd..c03b69da522f 100644 --- a/sdk/appplatform/arm-appplatform/src/models/customDomainsMappers.ts +++ b/sdk/appplatform/arm-appplatform/src/models/customDomainsMappers.ts @@ -33,6 +33,7 @@ export { MonitoringSettingProperties, MonitoringSettingResource, NetworkProfile, + NetworkProfileOutboundIPs, PersistentDisk, ProxyResource, Resource, diff --git a/sdk/appplatform/arm-appplatform/src/models/deploymentsMappers.ts b/sdk/appplatform/arm-appplatform/src/models/deploymentsMappers.ts index c41e51a9ca01..81c641252770 100644 --- a/sdk/appplatform/arm-appplatform/src/models/deploymentsMappers.ts +++ b/sdk/appplatform/arm-appplatform/src/models/deploymentsMappers.ts @@ -34,6 +34,7 @@ export { MonitoringSettingProperties, MonitoringSettingResource, NetworkProfile, + NetworkProfileOutboundIPs, PersistentDisk, ProxyResource, Resource, diff --git a/sdk/appplatform/arm-appplatform/src/models/index.ts b/sdk/appplatform/arm-appplatform/src/models/index.ts index c7bbcf68323f..ffa9b2d69d01 100644 --- a/sdk/appplatform/arm-appplatform/src/models/index.ts +++ b/sdk/appplatform/arm-appplatform/src/models/index.ts @@ -11,6 +11,17 @@ import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; +/** + * Desired outbound IP resources for Azure Spring Cloud instance. + */ +export interface NetworkProfileOutboundIPs { + /** + * A list of public IP addresses. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly publicIPs?: string[]; +} + /** * Service network profile payload */ @@ -35,6 +46,11 @@ export interface NetworkProfile { * Name of the resource group containing network resources of Azure Spring Cloud Apps */ appNetworkResourceGroup?: string; + /** + * Desired outbound IP resources for Azure Spring Cloud instance. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly outboundIPs?: NetworkProfileOutboundIPs; } /** @@ -693,7 +709,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; /** @@ -730,12 +746,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; } @@ -764,6 +784,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; } /** @@ -1131,6 +1156,37 @@ export interface ResourceSku { restrictions?: ResourceSkuRestrictions[]; } +/** + * Supported deployment runtime version descriptor. + */ +export interface SupportedRuntimeVersion { + /** + * The raw value which could be passed to deployment CRUD operations. Possible values include: + * 'Java_8', 'Java_11', 'NetCore_31' + */ + value?: SupportedRuntimeValue; + /** + * 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?: SupportedRuntimeVersion[]; +} + /** * Optional Parameters. */ @@ -1321,19 +1377,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. @@ -1376,6 +1432,22 @@ export type ResourceSkuRestrictionsType = 'Location' | 'Zone'; */ export type ResourceSkuRestrictionsReasonCode = 'QuotaId' | 'NotAvailableForSubscription'; +/** + * Defines values for SupportedRuntimeValue. + * Possible values include: 'Java_8', 'Java_11', 'NetCore_31' + * @readonly + * @enum {string} + */ +export type SupportedRuntimeValue = '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. */ @@ -2636,6 +2708,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. */ diff --git a/sdk/appplatform/arm-appplatform/src/models/mappers.ts b/sdk/appplatform/arm-appplatform/src/models/mappers.ts index 8db4dd0e427f..39e71d030190 100644 --- a/sdk/appplatform/arm-appplatform/src/models/mappers.ts +++ b/sdk/appplatform/arm-appplatform/src/models/mappers.ts @@ -12,6 +12,28 @@ import * as msRest from "@azure/ms-rest-js"; export const CloudError = CloudErrorMapper; export const BaseResource = BaseResourceMapper; +export const NetworkProfileOutboundIPs: msRest.CompositeMapper = { + serializedName: "NetworkProfile_outboundIPs", + type: { + name: "Composite", + className: "NetworkProfileOutboundIPs", + modelProperties: { + publicIPs: { + readOnly: true, + serializedName: "publicIPs", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + export const NetworkProfile: msRest.CompositeMapper = { serializedName: "NetworkProfile", type: { @@ -47,6 +69,14 @@ export const NetworkProfile: msRest.CompositeMapper = { type: { name: "String" } + }, + outboundIPs: { + readOnly: true, + serializedName: "outboundIPs", + type: { + name: "Composite", + className: "NetworkProfileOutboundIPs" + } } } } @@ -1181,6 +1211,12 @@ export const DeploymentSettings: msRest.CompositeMapper = { name: "String" } }, + netCoreMainEntryPath: { + serializedName: "netCoreMainEntryPath", + type: { + name: "String" + } + }, environmentVariables: { serializedName: "environmentVariables", type: { @@ -1235,6 +1271,13 @@ export const DeploymentInstance: msRest.CompositeMapper = { type: { name: "String" } + }, + startTime: { + readOnly: true, + serializedName: "startTime", + type: { + name: "String" + } } } } @@ -1888,6 +1931,57 @@ export const ResourceSku: msRest.CompositeMapper = { } }; +export const SupportedRuntimeVersion: msRest.CompositeMapper = { + serializedName: "SupportedRuntimeVersion", + type: { + name: "Composite", + className: "SupportedRuntimeVersion", + 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: "SupportedRuntimeVersion" + } + } + } + } + } + } +}; + export const ServiceResourceList: msRest.CompositeMapper = { serializedName: "ServiceResourceList", type: { diff --git a/sdk/appplatform/arm-appplatform/src/models/monitoringSettingsMappers.ts b/sdk/appplatform/arm-appplatform/src/models/monitoringSettingsMappers.ts index 125c2ba459b5..6d10580f2714 100644 --- a/sdk/appplatform/arm-appplatform/src/models/monitoringSettingsMappers.ts +++ b/sdk/appplatform/arm-appplatform/src/models/monitoringSettingsMappers.ts @@ -32,6 +32,7 @@ export { MonitoringSettingProperties, MonitoringSettingResource, NetworkProfile, + NetworkProfileOutboundIPs, PersistentDisk, ProxyResource, Resource, diff --git a/sdk/appplatform/arm-appplatform/src/models/runtimeVersionsMappers.ts b/sdk/appplatform/arm-appplatform/src/models/runtimeVersionsMappers.ts new file mode 100644 index 000000000000..094c0daa406d --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/models/runtimeVersionsMappers.ts @@ -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, + SupportedRuntimeVersion +} from "../models/mappers"; diff --git a/sdk/appplatform/arm-appplatform/src/models/servicesMappers.ts b/sdk/appplatform/arm-appplatform/src/models/servicesMappers.ts index 70e4035a51cd..570f556cc9af 100644 --- a/sdk/appplatform/arm-appplatform/src/models/servicesMappers.ts +++ b/sdk/appplatform/arm-appplatform/src/models/servicesMappers.ts @@ -34,6 +34,7 @@ export { NameAvailability, NameAvailabilityParameters, NetworkProfile, + NetworkProfileOutboundIPs, PersistentDisk, ProxyResource, RegenerateTestKeyRequestPayload, diff --git a/sdk/appplatform/arm-appplatform/src/operations/index.ts b/sdk/appplatform/arm-appplatform/src/operations/index.ts index a69d0e4a8dcf..05b1abe1d3d9 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/index.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/index.ts @@ -17,4 +17,5 @@ export * from "./certificates"; export * from "./customDomains"; export * from "./deployments"; export * from "./operations"; +export * from "./runtimeVersions"; export * from "./skus"; diff --git a/sdk/appplatform/arm-appplatform/src/operations/runtimeVersions.ts b/sdk/appplatform/arm-appplatform/src/operations/runtimeVersions.ts new file mode 100644 index 000000000000..44b5c18735fd --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/operations/runtimeVersions.ts @@ -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 + */ + listRuntimeVersions(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + listRuntimeVersions(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + listRuntimeVersions(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listRuntimeVersions(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listRuntimeVersionsOperationSpec, + callback) as Promise; + } +} + +// 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 +};