Skip to content

Commit 2741d91

Browse files
author
SDKAuto
committed
CodeGen from PR 13927 in Azure/azure-rest-api-specs
Merge 9ca34c613215ec5397ee183a33be6c735e4af107 into ecff0da7b0abb911563467d2670ae6014ca07b3a
1 parent 974e568 commit 2741d91

File tree

11 files changed

+84
-21
lines changed

11 files changed

+84
-21
lines changed

sdk/appplatform/arm-appplatform/src/appPlatformManagementClientContext.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,25 +37,25 @@ export class AppPlatformManagementClientContext extends msRestAzure.AzureService
3737
if (!options) {
3838
options = {};
3939
}
40-
if (!options.userAgent) {
40+
if(!options.userAgent) {
4141
const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
4242
options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
4343
}
4444

4545
super(credentials, options);
4646

47-
this.apiVersion = '2020-11-01-preview';
47+
this.apiVersion = '2021-03-03-preview';
4848
this.acceptLanguage = 'en-US';
4949
this.longRunningOperationRetryTimeout = 30;
5050
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
5151
this.requestContentType = "application/json; charset=utf-8";
5252
this.credentials = credentials;
5353
this.subscriptionId = subscriptionId;
5454

55-
if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
55+
if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
5656
this.acceptLanguage = options.acceptLanguage;
5757
}
58-
if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
58+
if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
5959
this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
6060
}
6161
}

sdk/appplatform/arm-appplatform/src/models/appsMappers.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export {
4141
ProxyResource,
4242
RequiredTraffic,
4343
Resource,
44+
ResourceRequests,
4445
ResourceUploadDefinition,
4546
ServiceResource,
4647
Sku,

sdk/appplatform/arm-appplatform/src/models/bindingsMappers.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ export {
3939
ProxyResource,
4040
RequiredTraffic,
4141
Resource,
42+
ResourceRequests,
4243
ServiceResource,
4344
Sku,
4445
TemporaryDisk,

sdk/appplatform/arm-appplatform/src/models/certificatesMappers.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ export {
3939
ProxyResource,
4040
RequiredTraffic,
4141
Resource,
42+
ResourceRequests,
4243
ServiceResource,
4344
Sku,
4445
TemporaryDisk,

sdk/appplatform/arm-appplatform/src/models/configServersMappers.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export {
4040
ProxyResource,
4141
RequiredTraffic,
4242
Resource,
43+
ResourceRequests,
4344
ServiceResource,
4445
Sku,
4546
TemporaryDisk,

sdk/appplatform/arm-appplatform/src/models/customDomainsMappers.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ export {
3939
ProxyResource,
4040
RequiredTraffic,
4141
Resource,
42+
ResourceRequests,
4243
ServiceResource,
4344
Sku,
4445
TemporaryDisk,

sdk/appplatform/arm-appplatform/src/models/deploymentsMappers.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export {
4040
ProxyResource,
4141
RequiredTraffic,
4242
Resource,
43+
ResourceRequests,
4344
ServiceResource,
4445
Sku,
4546
TemporaryDisk,

sdk/appplatform/arm-appplatform/src/models/index.ts

Lines changed: 35 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,11 @@ export interface ClusterResourceProperties {
120120
*/
121121
export interface Sku {
122122
/**
123-
* Name of the Sku
123+
* Name of the Sku. Default value: 'S0'.
124124
*/
125125
name?: string;
126126
/**
127-
* Tier of the Sku
127+
* Tier of the Sku. Default value: 'Standard'.
128128
*/
129129
tier?: string;
130130
/**
@@ -417,7 +417,7 @@ export interface MonitoringSettingProperties {
417417
error?: ErrorModel;
418418
/**
419419
* Indicates whether enable the trace functionality, which will be deprecated since api version
420-
* 2020-11-01-preview. Please leverage appInsightsInstrumentationKey to indicate if
420+
* 2021-03-03-preview. Please leverage appInsightsInstrumentationKey to indicate if
421421
* monitoringSettings enabled or not
422422
*/
423423
traceEnabled?: boolean;
@@ -546,10 +546,6 @@ export interface AppResourceProperties {
546546
* Indicate if only https is allowed.
547547
*/
548548
httpsOnly?: boolean;
549-
/**
550-
* Indicate if end to end TLS is enabled.
551-
*/
552-
enableEndToEndTLS?: boolean;
553549
/**
554550
* Date time when the resource is created
555551
* **NOTE: This property will not be serialized. It can only be populated by the server.**
@@ -563,6 +559,10 @@ export interface AppResourceProperties {
563559
* Persistent disk settings
564560
*/
565561
persistentDisk?: PersistentDisk;
562+
/**
563+
* Indicate if end to end TLS is enabled.
564+
*/
565+
enableEndToEndTLS?: boolean;
566566
}
567567

568568
/**
@@ -822,20 +822,44 @@ export interface UserSourceInfo {
822822
artifactSelector?: string;
823823
}
824824

825+
/**
826+
* Deployment resource request payload
827+
*/
828+
export interface ResourceRequests {
829+
/**
830+
* Required CPU. 1 core can be represented by 1 or 1000m. This should be 500m or 1 for Basic
831+
* tier, and {500m, 1, 2, 3, 4} for Standard tier.
832+
*/
833+
cpu?: string;
834+
/**
835+
* Required memory. 1 GB can be represented by 1Gi or 1024Mi. This should be {512Mi, 1Gi, 2Gi}
836+
* for Basic tier, and {512Mi, 1Gi, 2Gi, ..., 8Gi} for Standard tier.
837+
*/
838+
memory?: string;
839+
}
840+
825841
/**
826842
* Deployment settings payload
827843
*/
828844
export interface DeploymentSettings {
829845
/**
830-
* Required CPU, basic tier should be 1, standard tier should be in range (1, 4). Default value:
831-
* 1.
846+
* Required CPU. This should be 1 for Basic tier, and in range [1, 4] for Standard tier. This is
847+
* deprecated starting from API version 2020-03-03-preview. Please use the resourceRequests field
848+
* to set the CPU size. Default value: 1.
832849
*/
833850
cpu?: number;
834851
/**
835-
* Required Memory size in GB, basic tier should be in range (1, 2), standard tier should be in
836-
* range (1, 8). Default value: 1.
852+
* Required Memory size in GB. This should be in range [1, 2] for Basic tier, and in range [1, 8]
853+
* for Standard tier. This is deprecated starting from API version 2020-03-03-preview. Please use
854+
* the resourceRequests field to set the the memory size. Default value: 1.
837855
*/
838856
memoryInGB?: number;
857+
/**
858+
* The requested resource quantity for required CPU and Memory. It is recommended that using this
859+
* field to represent the required CPU and Memory, the old field cpu and memoryInGB will be
860+
* deprecated later.
861+
*/
862+
resourceRequests?: ResourceRequests;
839863
/**
840864
* JVM parameter
841865
*/

sdk/appplatform/arm-appplatform/src/models/mappers.ts

Lines changed: 37 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -196,12 +196,14 @@ export const Sku: msRest.CompositeMapper = {
196196
modelProperties: {
197197
name: {
198198
serializedName: "name",
199+
defaultValue: 'S0',
199200
type: {
200201
name: "String"
201202
}
202203
},
203204
tier: {
204205
serializedName: "tier",
206+
defaultValue: 'Standard',
205207
type: {
206208
name: "String"
207209
}
@@ -910,12 +912,6 @@ export const AppResourceProperties: msRest.CompositeMapper = {
910912
name: "Boolean"
911913
}
912914
},
913-
enableEndToEndTLS: {
914-
serializedName: "enableEndToEndTLS",
915-
type: {
916-
name: "Boolean"
917-
}
918-
},
919915
createdTime: {
920916
readOnly: true,
921917
serializedName: "createdTime",
@@ -936,6 +932,12 @@ export const AppResourceProperties: msRest.CompositeMapper = {
936932
name: "Composite",
937933
className: "PersistentDisk"
938934
}
935+
},
936+
enableEndToEndTLS: {
937+
serializedName: "enableEndToEndTLS",
938+
type: {
939+
name: "Boolean"
940+
}
939941
}
940942
}
941943
}
@@ -1354,6 +1356,28 @@ export const UserSourceInfo: msRest.CompositeMapper = {
13541356
}
13551357
};
13561358

1359+
export const ResourceRequests: msRest.CompositeMapper = {
1360+
serializedName: "ResourceRequests",
1361+
type: {
1362+
name: "Composite",
1363+
className: "ResourceRequests",
1364+
modelProperties: {
1365+
cpu: {
1366+
serializedName: "cpu",
1367+
type: {
1368+
name: "String"
1369+
}
1370+
},
1371+
memory: {
1372+
serializedName: "memory",
1373+
type: {
1374+
name: "String"
1375+
}
1376+
}
1377+
}
1378+
}
1379+
};
1380+
13571381
export const DeploymentSettings: msRest.CompositeMapper = {
13581382
serializedName: "DeploymentSettings",
13591383
type: {
@@ -1374,6 +1398,13 @@ export const DeploymentSettings: msRest.CompositeMapper = {
13741398
name: "Number"
13751399
}
13761400
},
1401+
resourceRequests: {
1402+
serializedName: "resourceRequests",
1403+
type: {
1404+
name: "Composite",
1405+
className: "ResourceRequests"
1406+
}
1407+
},
13771408
jvmOptions: {
13781409
serializedName: "jvmOptions",
13791410
type: {

sdk/appplatform/arm-appplatform/src/models/monitoringSettingsMappers.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export {
3838
ProxyResource,
3939
RequiredTraffic,
4040
Resource,
41+
ResourceRequests,
4142
ServiceResource,
4243
Sku,
4344
TemporaryDisk,

0 commit comments

Comments
 (0)