diff --git a/sdk/appplatform/arm-appplatform/README.md b/sdk/appplatform/arm-appplatform/README.md index 7db9e4a9c21a..f05562f618da 100644 --- a/sdk/appplatform/arm-appplatform/README.md +++ b/sdk/appplatform/arm-appplatform/README.md @@ -15,7 +15,7 @@ npm install @azure/arm-appplatform ### How to use -#### nodejs - Authentication, client creation and get services as an example written in TypeScript. +#### nodejs - client creation and get services as an example written in TypeScript. ##### Install @azure/ms-rest-nodeauth @@ -26,11 +26,10 @@ npm install @azure/ms-rest-nodeauth@"^3.0.0" ##### Sample code +While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package ```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { AppPlatformManagementClient, AppPlatformManagementModels, AppPlatformManagementMappers } from "@azure/arm-appplatform"; +const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +const { AppPlatformManagementClient } = require("@azure/arm-appplatform"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; msRestNodeAuth.interactiveLogin().then((creds) => { diff --git a/sdk/appplatform/arm-appplatform/package.json b/sdk/appplatform/arm-appplatform/package.json index 893f9ac20a64..7c98dfe0bda8 100644 --- a/sdk/appplatform/arm-appplatform/package.json +++ b/sdk/appplatform/arm-appplatform/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-appplatform", "author": "Microsoft Corporation", "description": "AppPlatformManagementClient Library with typescript type definitions for node.js and browser.", - "version": "1.0.0", + "version": "1.1.0", "dependencies": { "@azure/ms-rest-azure-js": "^2.0.1", "@azure/ms-rest-js": "^2.0.4", diff --git a/sdk/appplatform/arm-appplatform/rollup.config.js b/sdk/appplatform/arm-appplatform/rollup.config.js index 62184107a1ea..4ab01b0917f8 100644 --- a/sdk/appplatform/arm-appplatform/rollup.config.js +++ b/sdk/appplatform/arm-appplatform/rollup.config.js @@ -21,8 +21,8 @@ const config = { "@azure/ms-rest-azure-js": "msRestAzure" }, banner: `/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/appplatform/arm-appplatform/src/appPlatformManagementClient.ts b/sdk/appplatform/arm-appplatform/src/appPlatformManagementClient.ts index d5530022c557..e9bef8750f6f 100644 --- a/sdk/appplatform/arm-appplatform/src/appPlatformManagementClient.ts +++ b/sdk/appplatform/arm-appplatform/src/appPlatformManagementClient.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -26,6 +25,7 @@ class AppPlatformManagementClient extends AppPlatformManagementClientContext { customDomains: operations.CustomDomains; deployments: operations.Deployments; operations: operations.Operations; + runtimeVersions: operations.RuntimeVersions; skus: operations.Skus; /** @@ -46,6 +46,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/appPlatformManagementClientContext.ts b/sdk/appplatform/arm-appplatform/src/appPlatformManagementClientContext.ts index 7cd2d6db1f0a..9df87e1876c6 100644 --- a/sdk/appplatform/arm-appplatform/src/appPlatformManagementClientContext.ts +++ b/sdk/appplatform/arm-appplatform/src/appPlatformManagementClientContext.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -13,7 +12,7 @@ import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; const packageName = "@azure/arm-appplatform"; -const packageVersion = "1.0.0"; +const packageVersion = "1.1.0"; export class AppPlatformManagementClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; @@ -38,14 +37,14 @@ export class AppPlatformManagementClientContext extends msRestAzure.AzureService if (!options) { options = {}; } - if(!options.userAgent) { + if (!options.userAgent) { const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; } super(credentials, options); - this.apiVersion = '2020-07-01'; + this.apiVersion = '2020-11-01-preview'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; @@ -53,10 +52,10 @@ export class AppPlatformManagementClientContext extends msRestAzure.AzureService this.credentials = credentials; this.subscriptionId = subscriptionId; - if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { + if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } - if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { + if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; } } diff --git a/sdk/appplatform/arm-appplatform/src/models/appsMappers.ts b/sdk/appplatform/arm-appplatform/src/models/appsMappers.ts index 280954160683..99e4dea19713 100644 --- a/sdk/appplatform/arm-appplatform/src/models/appsMappers.ts +++ b/sdk/appplatform/arm-appplatform/src/models/appsMappers.ts @@ -1,12 +1,13 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + ApplicationInsightsAgentVersions, AppResource, AppResourceCollection, AppResourceProperties, @@ -35,8 +36,10 @@ export { MonitoringSettingProperties, MonitoringSettingResource, NetworkProfile, + NetworkProfileOutboundIPs, PersistentDisk, ProxyResource, + RequiredTraffic, Resource, ResourceUploadDefinition, ServiceResource, diff --git a/sdk/appplatform/arm-appplatform/src/models/bindingsMappers.ts b/sdk/appplatform/arm-appplatform/src/models/bindingsMappers.ts index 6b95e4ff962d..30588e309be2 100644 --- a/sdk/appplatform/arm-appplatform/src/models/bindingsMappers.ts +++ b/sdk/appplatform/arm-appplatform/src/models/bindingsMappers.ts @@ -1,12 +1,13 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + ApplicationInsightsAgentVersions, AppResource, AppResourceProperties, BaseResource, @@ -33,8 +34,10 @@ export { MonitoringSettingProperties, MonitoringSettingResource, NetworkProfile, + NetworkProfileOutboundIPs, PersistentDisk, ProxyResource, + RequiredTraffic, Resource, ServiceResource, Sku, diff --git a/sdk/appplatform/arm-appplatform/src/models/certificatesMappers.ts b/sdk/appplatform/arm-appplatform/src/models/certificatesMappers.ts index fcbc47b646e9..74a82eb8d30a 100644 --- a/sdk/appplatform/arm-appplatform/src/models/certificatesMappers.ts +++ b/sdk/appplatform/arm-appplatform/src/models/certificatesMappers.ts @@ -1,12 +1,13 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + ApplicationInsightsAgentVersions, AppResource, AppResourceProperties, BaseResource, @@ -33,8 +34,10 @@ export { MonitoringSettingProperties, MonitoringSettingResource, NetworkProfile, + NetworkProfileOutboundIPs, PersistentDisk, ProxyResource, + RequiredTraffic, Resource, ServiceResource, Sku, diff --git a/sdk/appplatform/arm-appplatform/src/models/configServersMappers.ts b/sdk/appplatform/arm-appplatform/src/models/configServersMappers.ts index 125c2ba459b5..a4f7578092d0 100644 --- a/sdk/appplatform/arm-appplatform/src/models/configServersMappers.ts +++ b/sdk/appplatform/arm-appplatform/src/models/configServersMappers.ts @@ -1,12 +1,13 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + ApplicationInsightsAgentVersions, AppResource, AppResourceProperties, BaseResource, @@ -20,6 +21,8 @@ export { ConfigServerProperties, ConfigServerResource, ConfigServerSettings, + ConfigServerSettingsErrorRecord, + ConfigServerSettingsValidateResult, CustomDomainProperties, CustomDomainResource, DeploymentInstance, @@ -32,8 +35,10 @@ export { MonitoringSettingProperties, MonitoringSettingResource, NetworkProfile, + NetworkProfileOutboundIPs, PersistentDisk, ProxyResource, + RequiredTraffic, Resource, ServiceResource, Sku, diff --git a/sdk/appplatform/arm-appplatform/src/models/customDomainsMappers.ts b/sdk/appplatform/arm-appplatform/src/models/customDomainsMappers.ts index 57b40b6a2bdd..02fcb4f36e3d 100644 --- a/sdk/appplatform/arm-appplatform/src/models/customDomainsMappers.ts +++ b/sdk/appplatform/arm-appplatform/src/models/customDomainsMappers.ts @@ -1,12 +1,13 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + ApplicationInsightsAgentVersions, AppResource, AppResourceProperties, BaseResource, @@ -33,8 +34,10 @@ export { MonitoringSettingProperties, MonitoringSettingResource, NetworkProfile, + NetworkProfileOutboundIPs, PersistentDisk, ProxyResource, + RequiredTraffic, Resource, ServiceResource, Sku, diff --git a/sdk/appplatform/arm-appplatform/src/models/deploymentsMappers.ts b/sdk/appplatform/arm-appplatform/src/models/deploymentsMappers.ts index c41e51a9ca01..7414c396b7b1 100644 --- a/sdk/appplatform/arm-appplatform/src/models/deploymentsMappers.ts +++ b/sdk/appplatform/arm-appplatform/src/models/deploymentsMappers.ts @@ -1,12 +1,13 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + ApplicationInsightsAgentVersions, AppResource, AppResourceProperties, BaseResource, @@ -34,8 +35,10 @@ export { MonitoringSettingProperties, MonitoringSettingResource, NetworkProfile, + NetworkProfileOutboundIPs, PersistentDisk, ProxyResource, + RequiredTraffic, Resource, ServiceResource, Sku, diff --git a/sdk/appplatform/arm-appplatform/src/models/index.ts b/sdk/appplatform/arm-appplatform/src/models/index.ts index c7bbcf68323f..16aad966dbe1 100644 --- a/sdk/appplatform/arm-appplatform/src/models/index.ts +++ b/sdk/appplatform/arm-appplatform/src/models/index.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -11,6 +11,48 @@ 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[]; +} + +/** + * Required inbound or outbound traffic for Azure Spring Cloud instance. + */ +export interface RequiredTraffic { + /** + * The protocol of required traffic + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly protocol?: string; + /** + * The port of required traffic + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly port?: number; + /** + * The ip list of required traffic + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly ips?: string[]; + /** + * The FQDN list of required traffic + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly fqdns?: string[]; + /** + * The direction of required traffic. Possible values include: 'Inbound', 'Outbound' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly direction?: TrafficDirection; +} + /** * Service network profile payload */ @@ -35,6 +77,16 @@ 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; + /** + * Required inbound or outbound traffics for Azure Spring Cloud instance. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly requiredTraffics?: RequiredTraffic[]; } /** @@ -149,6 +201,38 @@ export interface ManagedIdentityProperties { tenantId?: string; } +/** + * Error record of the config server settings + */ +export interface ConfigServerSettingsErrorRecord { + /** + * The name of the config server settings error record + */ + name?: string; + /** + * The uri of the config server settings error record + */ + uri?: string; + /** + * The detail error messages of the record + */ + messages?: string[]; +} + +/** + * Validation result for config server settings + */ +export interface ConfigServerSettingsValidateResult { + /** + * Indicate if the config server settings are valid + */ + isValid?: boolean; + /** + * The detail validation results + */ + details?: ConfigServerSettingsErrorRecord[]; +} + /** * The error code compose of code and message. */ @@ -306,6 +390,17 @@ export interface ConfigServerResource extends ProxyResource { properties?: ConfigServerProperties; } +/** + * Application Insights agent versions properties payload + */ +export interface ApplicationInsightsAgentVersions { + /** + * Indicates the version of application insight java agent + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly java?: string; +} + /** * Monitoring Setting properties payload */ @@ -321,13 +416,24 @@ export interface MonitoringSettingProperties { */ error?: ErrorModel; /** - * Indicates whether enable the trace functionality + * Indicates whether enable the trace functionality, which will be deprecated since api version + * 2020-11-01-preview. Please leverage appInsightsInstrumentationKey to indicate if + * monitoringSettings enabled or not */ traceEnabled?: boolean; /** - * Target application insight instrumentation key + * Target application insight instrumentation key, null or whitespace include empty will disable + * monitoringSettings */ appInsightsInstrumentationKey?: string; + /** + * Indicates the sampling rate of application insight agent, should be in range [0.0, 100.0] + */ + appInsightsSamplingRate?: number; + /** + * Indicates the versions of application insight agent + */ + appInsightsAgentVersions?: ApplicationInsightsAgentVersions; } /** @@ -693,7 +799,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 +836,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 +874,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 +1246,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. */ @@ -1161,6 +1307,26 @@ export interface DeploymentsListForClusterOptionalParams extends msRest.RequestO version?: string[]; } +/** + * Optional Parameters. + */ +export interface DeploymentsListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Version of the deployments to be listed + */ + version?: string[]; +} + +/** + * Optional Parameters. + */ +export interface DeploymentsListForClusterNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Version of the deployments to be listed + */ + version?: string[]; +} + /** * An interface representing AppPlatformManagementClientOptions. */ @@ -1279,6 +1445,14 @@ export interface ResourceSkuCollection extends Array { */ export type ProvisioningState = 'Creating' | 'Updating' | 'Deleting' | 'Deleted' | 'Succeeded' | 'Failed' | 'Moving' | 'Moved' | 'MoveFailed'; +/** + * Defines values for TrafficDirection. + * Possible values include: 'Inbound', 'Outbound' + * @readonly + * @enum {string} + */ +export type TrafficDirection = 'Inbound' | 'Outbound'; + /** * Defines values for ManagedIdentityType. * Possible values include: 'None', 'SystemAssigned', 'UserAssigned', 'SystemAssigned,UserAssigned' @@ -1321,19 +1495,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 +1550,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. */ @@ -1696,6 +1886,26 @@ export type ConfigServersUpdatePatchResponse = ConfigServerResource & { }; }; +/** + * Contains response data for the validate operation. + */ +export type ConfigServersValidateResponse = ConfigServerSettingsValidateResult & { + /** + * 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: ConfigServerSettingsValidateResult; + }; +}; + /** * Contains response data for the beginUpdatePut operation. */ @@ -1736,6 +1946,26 @@ export type ConfigServersBeginUpdatePatchResponse = ConfigServerResource & { }; }; +/** + * Contains response data for the beginValidate operation. + */ +export type ConfigServersBeginValidateResponse = ConfigServerSettingsValidateResult & { + /** + * 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: ConfigServerSettingsValidateResult; + }; +}; + /** * Contains response data for the get operation. */ @@ -2636,6 +2866,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..e91d9cba3e4a 100644 --- a/sdk/appplatform/arm-appplatform/src/models/mappers.ts +++ b/sdk/appplatform/arm-appplatform/src/models/mappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -12,6 +12,83 @@ 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 RequiredTraffic: msRest.CompositeMapper = { + serializedName: "RequiredTraffic", + type: { + name: "Composite", + className: "RequiredTraffic", + modelProperties: { + protocol: { + readOnly: true, + serializedName: "protocol", + type: { + name: "String" + } + }, + port: { + readOnly: true, + serializedName: "port", + type: { + name: "Number" + } + }, + ips: { + readOnly: true, + serializedName: "ips", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + fqdns: { + readOnly: true, + serializedName: "fqdns", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + direction: { + readOnly: true, + serializedName: "direction", + type: { + name: "String" + } + } + } + } +}; + export const NetworkProfile: msRest.CompositeMapper = { serializedName: "NetworkProfile", type: { @@ -47,6 +124,27 @@ export const NetworkProfile: msRest.CompositeMapper = { type: { name: "String" } + }, + outboundIPs: { + readOnly: true, + serializedName: "outboundIPs", + type: { + name: "Composite", + className: "NetworkProfileOutboundIPs" + } + }, + requiredTraffics: { + readOnly: true, + serializedName: "requiredTraffics", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RequiredTraffic" + } + } + } } } } @@ -230,6 +328,67 @@ export const ManagedIdentityProperties: msRest.CompositeMapper = { } }; +export const ConfigServerSettingsErrorRecord: msRest.CompositeMapper = { + serializedName: "ConfigServerSettingsErrorRecord", + type: { + name: "Composite", + className: "ConfigServerSettingsErrorRecord", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + uri: { + serializedName: "uri", + type: { + name: "String" + } + }, + messages: { + serializedName: "messages", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const ConfigServerSettingsValidateResult: msRest.CompositeMapper = { + serializedName: "ConfigServerSettingsValidateResult", + type: { + name: "Composite", + className: "ConfigServerSettingsValidateResult", + modelProperties: { + isValid: { + serializedName: "isValid", + type: { + name: "Boolean" + } + }, + details: { + serializedName: "details", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ConfigServerSettingsErrorRecord" + } + } + } + } + } + } +}; + export const ErrorModel: msRest.CompositeMapper = { serializedName: "Error", type: { @@ -499,6 +658,23 @@ export const ConfigServerResource: msRest.CompositeMapper = { } }; +export const ApplicationInsightsAgentVersions: msRest.CompositeMapper = { + serializedName: "applicationInsightsAgentVersions", + type: { + name: "Composite", + className: "ApplicationInsightsAgentVersions", + modelProperties: { + java: { + readOnly: true, + serializedName: "java", + type: { + name: "String" + } + } + } + } +}; + export const MonitoringSettingProperties: msRest.CompositeMapper = { serializedName: "MonitoringSettingProperties", type: { @@ -530,6 +706,23 @@ export const MonitoringSettingProperties: msRest.CompositeMapper = { type: { name: "String" } + }, + appInsightsSamplingRate: { + serializedName: "appInsightsSamplingRate", + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 0 + }, + type: { + name: "Number" + } + }, + appInsightsAgentVersions: { + serializedName: "appInsightsAgentVersions", + type: { + name: "Composite", + className: "ApplicationInsightsAgentVersions" + } } } } @@ -1181,6 +1374,12 @@ export const DeploymentSettings: msRest.CompositeMapper = { name: "String" } }, + netCoreMainEntryPath: { + serializedName: "netCoreMainEntryPath", + type: { + name: "String" + } + }, environmentVariables: { serializedName: "environmentVariables", type: { @@ -1235,6 +1434,13 @@ export const DeploymentInstance: msRest.CompositeMapper = { type: { name: "String" } + }, + startTime: { + readOnly: true, + serializedName: "startTime", + type: { + name: "String" + } } } } @@ -1888,6 +2094,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..0463b1feac36 100644 --- a/sdk/appplatform/arm-appplatform/src/models/monitoringSettingsMappers.ts +++ b/sdk/appplatform/arm-appplatform/src/models/monitoringSettingsMappers.ts @@ -1,12 +1,13 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + ApplicationInsightsAgentVersions, AppResource, AppResourceProperties, BaseResource, @@ -32,8 +33,10 @@ export { MonitoringSettingProperties, MonitoringSettingResource, NetworkProfile, + NetworkProfileOutboundIPs, PersistentDisk, ProxyResource, + RequiredTraffic, Resource, ServiceResource, Sku, diff --git a/sdk/appplatform/arm-appplatform/src/models/operationsMappers.ts b/sdk/appplatform/arm-appplatform/src/models/operationsMappers.ts index 1b73730f8b2a..218ea3c39ef1 100644 --- a/sdk/appplatform/arm-appplatform/src/models/operationsMappers.ts +++ b/sdk/appplatform/arm-appplatform/src/models/operationsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/appplatform/arm-appplatform/src/models/parameters.ts b/sdk/appplatform/arm-appplatform/src/models/parameters.ts index a9b230427bbf..8ac2710fcff9 100644 --- a/sdk/appplatform/arm-appplatform/src/models/parameters.ts +++ b/sdk/appplatform/arm-appplatform/src/models/parameters.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -24,9 +23,10 @@ export const apiVersion: msRest.OperationQueryParameter = { parameterPath: "apiVersion", mapper: { required: true, - isConstant: true, serializedName: "api-version", - defaultValue: '2020-07-01', + constraints: { + MinLength: 1 + }, type: { name: "String" } 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..04e9ae59bded --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/models/runtimeVersionsMappers.ts @@ -0,0 +1,13 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * 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..de115949d99c 100644 --- a/sdk/appplatform/arm-appplatform/src/models/servicesMappers.ts +++ b/sdk/appplatform/arm-appplatform/src/models/servicesMappers.ts @@ -1,12 +1,13 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + ApplicationInsightsAgentVersions, AppResource, AppResourceProperties, BaseResource, @@ -34,9 +35,11 @@ export { NameAvailability, NameAvailabilityParameters, NetworkProfile, + NetworkProfileOutboundIPs, PersistentDisk, ProxyResource, RegenerateTestKeyRequestPayload, + RequiredTraffic, Resource, ServiceResource, ServiceResourceList, diff --git a/sdk/appplatform/arm-appplatform/src/models/skusMappers.ts b/sdk/appplatform/arm-appplatform/src/models/skusMappers.ts index cfa54b0795fb..a5cf0046a0ab 100644 --- a/sdk/appplatform/arm-appplatform/src/models/skusMappers.ts +++ b/sdk/appplatform/arm-appplatform/src/models/skusMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/appplatform/arm-appplatform/src/operations/apps.ts b/sdk/appplatform/arm-appplatform/src/operations/apps.ts index d7413a50ba84..bfb1fd2a5c41 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/apps.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/apps.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -544,6 +543,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/appplatform/arm-appplatform/src/operations/bindings.ts b/sdk/appplatform/arm-appplatform/src/operations/bindings.ts index b0ade9e91153..770937660c12 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/bindings.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/bindings.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -424,6 +423,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/appplatform/arm-appplatform/src/operations/certificates.ts b/sdk/appplatform/arm-appplatform/src/operations/certificates.ts index 9fcdd833fcb9..98faa3c58632 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/certificates.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/certificates.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -328,6 +327,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/appplatform/arm-appplatform/src/operations/configServers.ts b/sdk/appplatform/arm-appplatform/src/operations/configServers.ts index 97d1ae6a8171..f4ce873d81fb 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/configServers.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/configServers.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -90,6 +89,20 @@ export class ConfigServers { .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } + /** + * Check if the config server settings are valid. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param configServerSettings Config server settings to be validated + * @param [options] The optional parameters + * @returns Promise + */ + validate(resourceGroupName: string, serviceName: string, configServerSettings: Models.ConfigServerSettings, options?: msRest.RequestOptionsBase): Promise { + return this.beginValidate(resourceGroupName,serviceName,configServerSettings,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + /** * Update the config server. * @param resourceGroupName The name of the resource group that contains the resource. You can @@ -131,6 +144,27 @@ export class ConfigServers { beginUpdatePatchOperationSpec, options); } + + /** + * Check if the config server settings are valid. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serviceName The name of the Service resource. + * @param configServerSettings Config server settings to be validated + * @param [options] The optional parameters + * @returns Promise + */ + beginValidate(resourceGroupName: string, serviceName: string, configServerSettings: Models.ConfigServerSettings, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + serviceName, + configServerSettings, + options + }, + beginValidateOperationSpec, + options); + } } // Operation Specifications @@ -229,3 +263,38 @@ const beginUpdatePatchOperationSpec: msRest.OperationSpec = { }, serializer }; + +const beginValidateOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/configServers/validate", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "configServerSettings", + mapper: { + ...Mappers.ConfigServerSettings, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ConfigServerSettingsValidateResult + }, + 202: { + bodyMapper: Mappers.ConfigServerSettingsValidateResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/appplatform/arm-appplatform/src/operations/customDomains.ts b/sdk/appplatform/arm-appplatform/src/operations/customDomains.ts index 8a2eb4a44765..241791680406 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/customDomains.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/customDomains.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -424,6 +423,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/appplatform/arm-appplatform/src/operations/deployments.ts b/sdk/appplatform/arm-appplatform/src/operations/deployments.ts index 22cd12d4d7f9..5d43a943cda6 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/deployments.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/deployments.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -427,7 +426,7 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.DeploymentsListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -438,8 +437,8 @@ export class Deployments { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.DeploymentsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.DeploymentsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -455,7 +454,7 @@ export class Deployments { * @param [options] The optional parameters * @returns Promise */ - listForClusterNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listForClusterNext(nextPageLink: string, options?: Models.DeploymentsListForClusterNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -466,8 +465,8 @@ export class Deployments { * @param options The optional parameters * @param callback The callback */ - listForClusterNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listForClusterNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listForClusterNext(nextPageLink: string, options: Models.DeploymentsListForClusterNextOptionalParams, callback: msRest.ServiceCallback): void; + listForClusterNext(nextPageLink: string, options?: Models.DeploymentsListForClusterNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -777,6 +776,10 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion, + Parameters.version + ], headerParameters: [ Parameters.acceptLanguage ], @@ -798,6 +801,10 @@ const listForClusterNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion, + Parameters.version + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/appplatform/arm-appplatform/src/operations/index.ts b/sdk/appplatform/arm-appplatform/src/operations/index.ts index a69d0e4a8dcf..b5ee450cb213 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/index.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/index.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -17,4 +16,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/monitoringSettings.ts b/sdk/appplatform/arm-appplatform/src/operations/monitoringSettings.ts index 9e7f62e04593..ca32117f25d9 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/monitoringSettings.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/monitoringSettings.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/appplatform/arm-appplatform/src/operations/operations.ts b/sdk/appplatform/arm-appplatform/src/operations/operations.ts index 7c30ed89f505..f42b75684d17 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/operations.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/operations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -108,6 +107,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], 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..0380035c5029 --- /dev/null +++ b/sdk/appplatform/arm-appplatform/src/operations/runtimeVersions.ts @@ -0,0 +1,73 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * 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 +}; diff --git a/sdk/appplatform/arm-appplatform/src/operations/services.ts b/sdk/appplatform/arm-appplatform/src/operations/services.ts index c04bedce4d2f..cb76d116d019 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/services.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/services.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -766,6 +765,9 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -787,6 +789,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/appplatform/arm-appplatform/src/operations/skus.ts b/sdk/appplatform/arm-appplatform/src/operations/skus.ts index 3c6671194dba..bbac61be4d26 100644 --- a/sdk/appplatform/arm-appplatform/src/operations/skus.ts +++ b/sdk/appplatform/arm-appplatform/src/operations/skus.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -111,6 +110,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ],