Skip to content

Commit

Permalink
Generated from ee9f2c0af7a5b9317b3196e62abd0ba47fc764c5
Browse files Browse the repository at this point in the history
  • Loading branch information
SDK Automation committed Sep 17, 2020
1 parent 3a64b22 commit 599521c
Show file tree
Hide file tree
Showing 14 changed files with 290 additions and 6 deletions.
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
1 change: 1 addition & 0 deletions sdk/appplatform/arm-appplatform/src/models/appsMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export {
MonitoringSettingProperties,
MonitoringSettingResource,
NetworkProfile,
NetworkProfileOutboundIPs,
PersistentDisk,
ProxyResource,
Resource,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export {
MonitoringSettingProperties,
MonitoringSettingResource,
NetworkProfile,
NetworkProfileOutboundIPs,
PersistentDisk,
ProxyResource,
Resource,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export {
MonitoringSettingProperties,
MonitoringSettingResource,
NetworkProfile,
NetworkProfileOutboundIPs,
PersistentDisk,
ProxyResource,
Resource,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export {
MonitoringSettingProperties,
MonitoringSettingResource,
NetworkProfile,
NetworkProfileOutboundIPs,
PersistentDisk,
ProxyResource,
Resource,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export {
MonitoringSettingProperties,
MonitoringSettingResource,
NetworkProfile,
NetworkProfileOutboundIPs,
PersistentDisk,
ProxyResource,
Resource,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export {
MonitoringSettingProperties,
MonitoringSettingResource,
NetworkProfile,
NetworkProfileOutboundIPs,
PersistentDisk,
ProxyResource,
Resource,
Expand Down
104 changes: 98 additions & 6 deletions sdk/appplatform/arm-appplatform/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand All @@ -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;
}

/**
Expand Down Expand Up @@ -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;
/**
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}

/**
Expand Down Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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.
*/
Expand Down
94 changes: 94 additions & 0 deletions sdk/appplatform/arm-appplatform/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -47,6 +69,14 @@ export const NetworkProfile: msRest.CompositeMapper = {
type: {
name: "String"
}
},
outboundIPs: {
readOnly: true,
serializedName: "outboundIPs",
type: {
name: "Composite",
className: "NetworkProfileOutboundIPs"
}
}
}
}
Expand Down Expand Up @@ -1181,6 +1211,12 @@ export const DeploymentSettings: msRest.CompositeMapper = {
name: "String"
}
},
netCoreMainEntryPath: {
serializedName: "netCoreMainEntryPath",
type: {
name: "String"
}
},
environmentVariables: {
serializedName: "environmentVariables",
type: {
Expand Down Expand Up @@ -1235,6 +1271,13 @@ export const DeploymentInstance: msRest.CompositeMapper = {
type: {
name: "String"
}
},
startTime: {
readOnly: true,
serializedName: "startTime",
type: {
name: "String"
}
}
}
}
Expand Down Expand Up @@ -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: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export {
MonitoringSettingProperties,
MonitoringSettingResource,
NetworkProfile,
NetworkProfileOutboundIPs,
PersistentDisk,
ProxyResource,
Resource,
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,
SupportedRuntimeVersion
} from "../models/mappers";
Loading

0 comments on commit 599521c

Please sign in to comment.