Skip to content

Commit 8fe1a9f

Browse files
author
SDK Automation
committed
Generated from b354832b23aab4e1f4061982fd29abe61d2879b1
update list skus
1 parent 930d9ab commit 8fe1a9f

File tree

12 files changed

+395
-0
lines changed

12 files changed

+395
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class AppPlatformManagementClient extends AppPlatformManagementClientContext {
2424
customDomains: operations.CustomDomains;
2525
deployments: operations.Deployments;
2626
operations: operations.Operations;
27+
sku: operations.SkuOperations;
2728

2829
/**
2930
* Initializes a new instance of the AppPlatformManagementClient class.
@@ -41,6 +42,7 @@ class AppPlatformManagementClient extends AppPlatformManagementClientContext {
4142
this.customDomains = new operations.CustomDomains(this);
4243
this.deployments = new operations.Deployments(this);
4344
this.operations = new operations.Operations(this);
45+
this.sku = new operations.SkuOperations(this);
4446
}
4547
}
4648

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export {
3333
Resource,
3434
ResourceUploadDefinition,
3535
ServiceResource,
36+
Sku,
3637
TemporaryDisk,
3738
TraceProperties,
3839
TrackedResource,

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export {
3232
ProxyResource,
3333
Resource,
3434
ServiceResource,
35+
Sku,
3536
TemporaryDisk,
3637
TraceProperties,
3738
TrackedResource,

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export {
3232
ProxyResource,
3333
Resource,
3434
ServiceResource,
35+
Sku,
3536
TemporaryDisk,
3637
TraceProperties,
3738
TrackedResource,

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export {
3434
ProxyResource,
3535
Resource,
3636
ServiceResource,
37+
Sku,
3738
TemporaryDisk,
3839
TraceProperties,
3940
TrackedResource,

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export {
3333
ProxyResource,
3434
Resource,
3535
ServiceResource,
36+
Sku,
3637
TemporaryDisk,
3738
TraceProperties,
3839
TrackedResource,

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

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,24 @@ export interface ClusterResourceProperties {
205205
readonly serviceId?: string;
206206
}
207207

208+
/**
209+
* Sku of Azure Spring Cloud
210+
*/
211+
export interface Sku {
212+
/**
213+
* Name of the Sku
214+
*/
215+
name: string;
216+
/**
217+
* Tier of the Sku
218+
*/
219+
tier?: string;
220+
/**
221+
* Current capacity of the target resource
222+
*/
223+
capacity?: number;
224+
}
225+
208226
/**
209227
* The core properties of ARM resources.
210228
*/
@@ -248,6 +266,10 @@ export interface ServiceResource extends TrackedResource {
248266
* Properties of the Service resource
249267
*/
250268
properties?: ClusterResourceProperties;
269+
/**
270+
* Sku of the Service resource
271+
*/
272+
sku?: Sku;
251273
}
252274

253275
/**
@@ -896,6 +918,78 @@ export interface OperationDetail {
896918
properties?: OperationProperties;
897919
}
898920

921+
/**
922+
* The SKU capacity
923+
*/
924+
export interface SkuCapacity {
925+
/**
926+
* Gets or sets the minimum.
927+
*/
928+
minimum: number;
929+
/**
930+
* Gets or sets the maximum.
931+
*/
932+
maximum?: number;
933+
/**
934+
* Gets or sets the default.
935+
*/
936+
default?: number;
937+
/**
938+
* Gets or sets the type of the scale. Possible values include: 'None', 'Manual', 'Automatic'
939+
*/
940+
scaleType?: SkuScaleType;
941+
}
942+
943+
/**
944+
* Supported Sku settings of Azure Spring Cloud
945+
*/
946+
export interface SkuSetting {
947+
/**
948+
* Name of the Sku
949+
*/
950+
name: string;
951+
/**
952+
* Tier of the Sku
953+
*/
954+
tier?: string;
955+
/**
956+
* Locations of the Sku
957+
*/
958+
locations?: string[];
959+
/**
960+
* Required features of the Sku
961+
*/
962+
requiredFeatures?: string[];
963+
/**
964+
* Capacity of the SKU
965+
*/
966+
capacity?: SkuCapacity;
967+
}
968+
969+
/**
970+
* Supported Skus of Azure Spring Cloud resources
971+
*/
972+
export interface ResourceTypeSku {
973+
/**
974+
* Resource type
975+
*/
976+
resourceType?: string;
977+
/**
978+
* Supported Skus
979+
*/
980+
skus?: SkuSetting[];
981+
}
982+
983+
/**
984+
* Collection of supported Skus of Azure Spring Cloud resources
985+
*/
986+
export interface ResourceTypeSkuCollection {
987+
/**
988+
* Collection of supported Skus
989+
*/
990+
value?: ResourceTypeSku[];
991+
}
992+
899993
/**
900994
* Optional Parameters.
901995
*/
@@ -1096,6 +1190,14 @@ export type DeploymentResourceProvisioningState = 'Creating' | 'Updating' | 'Suc
10961190
*/
10971191
export type DeploymentResourceStatus = 'Unknown' | 'Stopped' | 'Running' | 'Failed' | 'Allocating' | 'Upgrading' | 'Compiling';
10981192

1193+
/**
1194+
* Defines values for SkuScaleType.
1195+
* Possible values include: 'None', 'Manual', 'Automatic'
1196+
* @readonly
1197+
* @enum {string}
1198+
*/
1199+
export type SkuScaleType = 'None' | 'Manual' | 'Automatic';
1200+
10991201
/**
11001202
* Contains response data for the get operation.
11011203
*/
@@ -2055,3 +2157,23 @@ export type OperationsListNextResponse = AvailableOperations & {
20552157
parsedBody: AvailableOperations;
20562158
};
20572159
};
2160+
2161+
/**
2162+
* Contains response data for the list operation.
2163+
*/
2164+
export type SkuListResponse = ResourceTypeSkuCollection & {
2165+
/**
2166+
* The underlying HTTP response.
2167+
*/
2168+
_response: msRest.HttpResponse & {
2169+
/**
2170+
* The response body as text (string format)
2171+
*/
2172+
bodyAsText: string;
2173+
2174+
/**
2175+
* The response body as parsed JSON or XML
2176+
*/
2177+
parsedBody: ResourceTypeSkuCollection;
2178+
};
2179+
};

0 commit comments

Comments
 (0)