Skip to content

Commit b722d49

Browse files
author
SDKAuto
committed
CodeGen from PR 15001 in Azure/azure-rest-api-specs
Merge e8f1edfd9b18970a5cd22a9d77dcb3fec8782205 into 3cf8aa90fbdf15379f62a1e8e0c3dcbd9c4d46af
1 parent b8da289 commit b722d49

13 files changed

+241
-27
lines changed

sdk/appplatform/arm-appplatform/README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
## Azure AppPlatformManagementClient SDK for JavaScript
22

3-
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for AppPlatformManagementClient.
3+
This package contains an isomorphic SDK (runs both in node.js and in browsers) for AppPlatformManagementClient.
44

55
### Currently supported environments
66

77
- [LTS versions of Node.js](https://nodejs.org/about/releases/)
8-
- Latest versions of Safari, Chrome, Edge, and Firefox.
8+
- Latest versions of Safari, Chrome, Edge and Firefox.
99

1010
### Prerequisites
1111

@@ -21,7 +21,6 @@ Install both packages using the below command:
2121
```bash
2222
npm install --save @azure/arm-appplatform @azure/identity
2323
```
24-
2524
> **Note**: You may have used either `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` in the past. These packages are in maintenance mode receiving critical bug fixes, but no new features.
2625
If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/), or are writing a client side browser application, we strongly encourage you to upgrade to `@azure/identity` which uses the latest versions of Azure Active Directory and MSAL APIs and provides more authentication options.
2726

@@ -37,7 +36,6 @@ If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/
3736

3837
In the below samples, we pass the credential and the Azure subscription id to instantiate the client.
3938
Once the client is created, explore the operations on it either in your favorite editor or in our [API reference documentation](https://docs.microsoft.com/javascript/api) to get started.
40-
4139
#### nodejs - Authentication, client creation, and get services as an example written in JavaScript.
4240

4341
##### Sample code
@@ -87,7 +85,7 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t
8785
const credential = new InteractiveBrowserCredential(
8886
{
8987
clientId: "<client id for your Azure AD app>",
90-
tenantId: "<optional tenant for your organization>"
88+
tenant: "<optional tenant for your organization>"
9189
});
9290
const client = new Azure.ArmAppplatform.AppPlatformManagementClient(creds, subscriptionId);
9391
const resourceGroupName = "testresourceGroupName";

sdk/appplatform/arm-appplatform/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"rollup-plugin-sourcemaps": "^0.4.2",
2828
"uglify-js": "^3.6.0"
2929
},
30-
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/appplatform/arm-appplatform",
30+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/appplatform/arm-appplatform",
3131
"repository": {
3232
"type": "git",
3333
"url": "https://github.com/Azure/azure-sdk-for-js.git"

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
import * as Models from "./models";
1111
import * as msRest from "@azure/ms-rest-js";
12-
import { TokenCredential } from "@azure/core-auth";
1312
import * as msRestAzure from "@azure/ms-rest-azure-js";
13+
import { TokenCredential } from "@azure/core-auth";
1414

1515
const packageName = "@azure/arm-appplatform";
1616
const packageVersion = "1.3.0";
@@ -50,7 +50,7 @@ export class AppPlatformManagementClientContext extends msRestAzure.AzureService
5050

5151
super(credentials, options);
5252

53-
this.apiVersion = '2020-11-01-preview';
53+
this.apiVersion = '2021-06-01-preview';
5454
this.acceptLanguage = 'en-US';
5555
this.longRunningOperationRetryTimeout = 30;
5656
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export {
2222
ConfigServerProperties,
2323
ConfigServerResource,
2424
ConfigServerSettings,
25+
CustomContainer,
2526
CustomDomainProperties,
2627
CustomDomainResource,
2728
CustomDomainValidatePayload,
@@ -32,6 +33,7 @@ export {
3233
DeploymentSettings,
3334
ErrorModel,
3435
GitPatternRepository,
36+
ImageRegistryCredential,
3537
ManagedIdentityProperties,
3638
MonitoringSettingProperties,
3739
MonitoringSettingResource,
@@ -41,6 +43,7 @@ export {
4143
ProxyResource,
4244
RequiredTraffic,
4345
Resource,
46+
ResourceRequests,
4447
ResourceUploadDefinition,
4548
ServiceResource,
4649
Sku,

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export {
2222
ConfigServerProperties,
2323
ConfigServerResource,
2424
ConfigServerSettings,
25+
CustomContainer,
2526
CustomDomainProperties,
2627
CustomDomainResource,
2728
DeploymentInstance,
@@ -30,6 +31,7 @@ export {
3031
DeploymentSettings,
3132
ErrorModel,
3233
GitPatternRepository,
34+
ImageRegistryCredential,
3335
ManagedIdentityProperties,
3436
MonitoringSettingProperties,
3537
MonitoringSettingResource,
@@ -39,6 +41,7 @@ export {
3941
ProxyResource,
4042
RequiredTraffic,
4143
Resource,
44+
ResourceRequests,
4245
ServiceResource,
4346
Sku,
4447
TemporaryDisk,

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export {
2222
ConfigServerProperties,
2323
ConfigServerResource,
2424
ConfigServerSettings,
25+
CustomContainer,
2526
CustomDomainProperties,
2627
CustomDomainResource,
2728
DeploymentInstance,
@@ -30,6 +31,7 @@ export {
3031
DeploymentSettings,
3132
ErrorModel,
3233
GitPatternRepository,
34+
ImageRegistryCredential,
3335
ManagedIdentityProperties,
3436
MonitoringSettingProperties,
3537
MonitoringSettingResource,
@@ -39,6 +41,7 @@ export {
3941
ProxyResource,
4042
RequiredTraffic,
4143
Resource,
44+
ResourceRequests,
4245
ServiceResource,
4346
Sku,
4447
TemporaryDisk,

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export {
2323
ConfigServerSettings,
2424
ConfigServerSettingsErrorRecord,
2525
ConfigServerSettingsValidateResult,
26+
CustomContainer,
2627
CustomDomainProperties,
2728
CustomDomainResource,
2829
DeploymentInstance,
@@ -31,6 +32,7 @@ export {
3132
DeploymentSettings,
3233
ErrorModel,
3334
GitPatternRepository,
35+
ImageRegistryCredential,
3436
ManagedIdentityProperties,
3537
MonitoringSettingProperties,
3638
MonitoringSettingResource,
@@ -40,6 +42,7 @@ export {
4042
ProxyResource,
4143
RequiredTraffic,
4244
Resource,
45+
ResourceRequests,
4346
ServiceResource,
4447
Sku,
4548
TemporaryDisk,

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export {
2121
ConfigServerProperties,
2222
ConfigServerResource,
2323
ConfigServerSettings,
24+
CustomContainer,
2425
CustomDomainProperties,
2526
CustomDomainResource,
2627
CustomDomainResourceCollection,
@@ -30,6 +31,7 @@ export {
3031
DeploymentSettings,
3132
ErrorModel,
3233
GitPatternRepository,
34+
ImageRegistryCredential,
3335
ManagedIdentityProperties,
3436
MonitoringSettingProperties,
3537
MonitoringSettingResource,
@@ -39,6 +41,7 @@ export {
3941
ProxyResource,
4042
RequiredTraffic,
4143
Resource,
44+
ResourceRequests,
4245
ServiceResource,
4346
Sku,
4447
TemporaryDisk,

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export {
2121
ConfigServerProperties,
2222
ConfigServerResource,
2323
ConfigServerSettings,
24+
CustomContainer,
2425
CustomDomainProperties,
2526
CustomDomainResource,
2627
DeploymentInstance,
@@ -30,6 +31,7 @@ export {
3031
DeploymentSettings,
3132
ErrorModel,
3233
GitPatternRepository,
34+
ImageRegistryCredential,
3335
LogFileUrlResponse,
3436
ManagedIdentityProperties,
3537
MonitoringSettingProperties,
@@ -40,6 +42,7 @@ export {
4042
ProxyResource,
4143
RequiredTraffic,
4244
Resource,
45+
ResourceRequests,
4346
ServiceResource,
4447
Sku,
4548
TemporaryDisk,

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

Lines changed: 88 additions & 13 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
/**
@@ -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
/**
@@ -798,12 +798,55 @@ export interface CustomDomainValidateResult {
798798
message?: string;
799799
}
800800

801+
/**
802+
* Credential of the image registry
803+
*/
804+
export interface ImageRegistryCredential {
805+
/**
806+
* The username of the image registry credential
807+
*/
808+
username?: string;
809+
/**
810+
* The password of the image registry credential
811+
*/
812+
password?: string;
813+
}
814+
815+
/**
816+
* Custom container payload
817+
*/
818+
export interface CustomContainer {
819+
/**
820+
* The name of the registry that contains the container image
821+
*/
822+
server?: string;
823+
/**
824+
* Container image of the custom container. This should be in the form of <repository>:<tag>
825+
* without the server name of the registry
826+
*/
827+
containerImage?: string;
828+
/**
829+
* Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this
830+
* is not provided.
831+
*/
832+
command?: string[];
833+
/**
834+
* Arguments to the entrypoint. The docker image's CMD is used if this is not provided.
835+
*/
836+
args?: string[];
837+
/**
838+
* Credential of the image registry
839+
*/
840+
imageRegistryCredential?: ImageRegistryCredential;
841+
}
842+
801843
/**
802844
* Source information for a deployment
803845
*/
804846
export interface UserSourceInfo {
805847
/**
806-
* Type of the source uploaded. Possible values include: 'Jar', 'NetCoreZip', 'Source'
848+
* Type of the source uploaded. Possible values include: 'Jar', 'NetCoreZip', 'Source',
849+
* 'Container'
807850
*/
808851
type?: UserSourceType;
809852
/**
@@ -820,22 +863,50 @@ export interface UserSourceInfo {
820863
* the relative path to the target module/project.
821864
*/
822865
artifactSelector?: string;
866+
/**
867+
* Custom container payload
868+
*/
869+
customContainer?: CustomContainer;
870+
}
871+
872+
/**
873+
* Deployment resource request payload
874+
*/
875+
export interface ResourceRequests {
876+
/**
877+
* Required CPU. 1 core can be represented by 1 or 1000m. This should be 500m or 1 for Basic
878+
* tier, and {500m, 1, 2, 3, 4} for Standard tier.
879+
*/
880+
cpu?: string;
881+
/**
882+
* Required memory. 1 GB can be represented by 1Gi or 1024Mi. This should be {512Mi, 1Gi, 2Gi}
883+
* for Basic tier, and {512Mi, 1Gi, 2Gi, ..., 8Gi} for Standard tier.
884+
*/
885+
memory?: string;
823886
}
824887

825888
/**
826889
* Deployment settings payload
827890
*/
828891
export interface DeploymentSettings {
829892
/**
830-
* Required CPU, basic tier should be 1, standard tier should be in range (1, 4). Default value:
831-
* 1.
893+
* Required CPU. This should be 1 for Basic tier, and in range [1, 4] for Standard tier. This is
894+
* deprecated starting from API version 2021-06-01-preview. Please use the resourceRequests field
895+
* to set the CPU size. Default value: 1.
832896
*/
833897
cpu?: number;
834898
/**
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.
899+
* Required Memory size in GB. This should be in range [1, 2] for Basic tier, and in range [1, 8]
900+
* for Standard tier. This is deprecated starting from API version 2021-06-01-preview. Please use
901+
* the resourceRequests field to set the the memory size. Default value: 1.
837902
*/
838903
memoryInGB?: number;
904+
/**
905+
* The requested resource quantity for required CPU and Memory. It is recommended that using this
906+
* field to represent the required CPU and Memory, the old field cpu and memoryInGB will be
907+
* deprecated later.
908+
*/
909+
resourceRequests?: ResourceRequests;
839910
/**
840911
* JVM parameter
841912
*/
@@ -1007,6 +1078,10 @@ export interface MetricDimension {
10071078
* Localized friendly display name of the dimension
10081079
*/
10091080
displayName?: string;
1081+
/**
1082+
* Whether this dimension should be included for the Shoebox export scenario
1083+
*/
1084+
toBeExportedForShoebox?: boolean;
10101085
}
10111086

10121087
/**
@@ -1499,11 +1574,11 @@ export type AppResourceProvisioningState = 'Succeeded' | 'Failed' | 'Creating' |
14991574

15001575
/**
15011576
* Defines values for UserSourceType.
1502-
* Possible values include: 'Jar', 'NetCoreZip', 'Source'
1577+
* Possible values include: 'Jar', 'NetCoreZip', 'Source', 'Container'
15031578
* @readonly
15041579
* @enum {string}
15051580
*/
1506-
export type UserSourceType = 'Jar' | 'NetCoreZip' | 'Source';
1581+
export type UserSourceType = 'Jar' | 'NetCoreZip' | 'Source' | 'Container';
15071582

15081583
/**
15091584
* Defines values for RuntimeVersion.

0 commit comments

Comments
 (0)