Skip to content

Commit 3d65a53

Browse files
authored
appplatform-release (Azure#20742)
* appplatform-release * update * update
1 parent 0ad00f7 commit 3d65a53

File tree

608 files changed

+25197
-22
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

608 files changed

+25197
-22
lines changed

sdk/appplatform/arm-appplatform/CHANGELOG.md

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,8 @@
11
# Release History
2+
3+
## 2.0.0-beta.4 (2022-03-09)
24

3-
## 2.0.0-beta.4 (Unreleased)
4-
5-
### Features Added
6-
7-
### Breaking Changes
8-
9-
### Bugs Fixed
10-
11-
### Other Changes
12-
13-
## 2.0.0-beta.3 (2022-03-02)
14-
15-
The package of @azure/arm-appplatform is using our next generation design principles since version 2.0.0-beta.3, which contains breaking changes.
5+
The package of @azure/arm-appplatform is using our next generation design principles since version 2.0.0-beta.4, which contains breaking changes.
166

177
To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog).
188

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"commit": "4042a47cff72c950d35dd72149895b044ed79713",
2+
"commit": "1067b78669466324a1a2666adf053433c61e7f77",
33
"readme": "specification/appplatform/resource-manager/readme.md",
4-
"autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\appplatform\\resource-manager\\readme.md --use=@autorest/[email protected]",
4+
"autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\appplatform\\resource-manager\\readme.md --use=@autorest/[email protected] --generate-sample=true",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
66
"use": "@autorest/[email protected]"
77
}

sdk/appplatform/arm-appplatform/package.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,5 +106,13 @@
106106
}
107107
]
108108
},
109-
"autoPublish": true
109+
"autoPublish": true,
110+
"//sampleConfiguration": {
111+
"productName": "",
112+
"productSlugs": [
113+
"azure"
114+
],
115+
"disableDocsMs": true,
116+
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-appplatform?view=azure-node-preview"
117+
}
110118
}

sdk/appplatform/arm-appplatform/review/arm-appplatform.api.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1240,6 +1240,7 @@ export interface CustomContainer {
12401240
command?: string[];
12411241
containerImage?: string;
12421242
imageRegistryCredential?: ImageRegistryCredential;
1243+
languageFramework?: string;
12431244
server?: string;
12441245
}
12451246

@@ -2119,6 +2120,10 @@ export enum KnownProvisioningState {
21192120
// (undocumented)
21202121
Moving = "Moving",
21212122
// (undocumented)
2123+
Starting = "Starting",
2124+
// (undocumented)
2125+
Stopping = "Stopping",
2126+
// (undocumented)
21222127
Succeeded = "Succeeded",
21232128
// (undocumented)
21242129
Updating = "Updating"
@@ -2229,6 +2234,9 @@ export interface ManagedIdentityProperties {
22292234
principalId?: string;
22302235
tenantId?: string;
22312236
type?: ManagedIdentityType;
2237+
userAssignedIdentities?: {
2238+
[propertyName: string]: UserAssignedManagedIdentity;
2239+
};
22322240
}
22332241

22342242
// @public
@@ -2956,6 +2964,12 @@ export type UploadedUserSourceInfo = UserSourceInfo & {
29562964
// @public (undocumented)
29572965
export type UploadedUserSourceInfoUnion = UploadedUserSourceInfo | JarUploadedUserSourceInfo | SourceUploadedUserSourceInfo | NetCoreZipUploadedUserSourceInfo;
29582966

2967+
// @public
2968+
export interface UserAssignedManagedIdentity {
2969+
readonly clientId?: string;
2970+
readonly principalId?: string;
2971+
}
2972+
29592973
// @public
29602974
export interface UserSourceInfo {
29612975
type: "UploadedUserSourceInfo" | "Jar" | "Source" | "NetCoreZip" | "BuildResult" | "Container";
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
/*
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
4+
*
5+
* Code generated by Microsoft (R) AutoRest Code Generator.
6+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
*/
8+
9+
// Copyright (c) Microsoft Corporation.
10+
// Licensed under the MIT License.
11+
import {
12+
ApiPortalCustomDomainResource,
13+
AppPlatformManagementClient
14+
} from "@azure/arm-appplatform";
15+
import { DefaultAzureCredential } from "@azure/identity";
16+
17+
/**
18+
* This sample demonstrates how to Create or update the API portal custom domain.
19+
*
20+
* @summary Create or update the API portal custom domain.
21+
* x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortalCustomDomains_CreateOrUpdate.json
22+
*/
23+
async function apiPortalCustomDomainsCreateOrUpdate() {
24+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
25+
const resourceGroupName = "myResourceGroup";
26+
const serviceName = "myservice";
27+
const apiPortalName = "default";
28+
const domainName = "myDomainName";
29+
const apiPortalCustomDomainResource: ApiPortalCustomDomainResource = {
30+
properties: { thumbprint: "*" }
31+
};
32+
const credential = new DefaultAzureCredential();
33+
const client = new AppPlatformManagementClient(credential, subscriptionId);
34+
const result = await client.apiPortalCustomDomains.beginCreateOrUpdateAndWait(
35+
resourceGroupName,
36+
serviceName,
37+
apiPortalName,
38+
domainName,
39+
apiPortalCustomDomainResource
40+
);
41+
console.log(result);
42+
}
43+
44+
apiPortalCustomDomainsCreateOrUpdate().catch(console.error);
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/*
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
4+
*
5+
* Code generated by Microsoft (R) AutoRest Code Generator.
6+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
*/
8+
9+
// Copyright (c) Microsoft Corporation.
10+
// Licensed under the MIT License.
11+
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
12+
import { DefaultAzureCredential } from "@azure/identity";
13+
14+
/**
15+
* This sample demonstrates how to Delete the API portal custom domain.
16+
*
17+
* @summary Delete the API portal custom domain.
18+
* x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortalCustomDomains_Delete.json
19+
*/
20+
async function apiPortalCustomDomainsDelete() {
21+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
22+
const resourceGroupName = "myResourceGroup";
23+
const serviceName = "myservice";
24+
const apiPortalName = "default";
25+
const domainName = "myDomainName";
26+
const credential = new DefaultAzureCredential();
27+
const client = new AppPlatformManagementClient(credential, subscriptionId);
28+
const result = await client.apiPortalCustomDomains.beginDeleteAndWait(
29+
resourceGroupName,
30+
serviceName,
31+
apiPortalName,
32+
domainName
33+
);
34+
console.log(result);
35+
}
36+
37+
apiPortalCustomDomainsDelete().catch(console.error);
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/*
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
4+
*
5+
* Code generated by Microsoft (R) AutoRest Code Generator.
6+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
*/
8+
9+
// Copyright (c) Microsoft Corporation.
10+
// Licensed under the MIT License.
11+
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
12+
import { DefaultAzureCredential } from "@azure/identity";
13+
14+
/**
15+
* This sample demonstrates how to Get the API portal custom domain.
16+
*
17+
* @summary Get the API portal custom domain.
18+
* x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortalCustomDomains_Get.json
19+
*/
20+
async function apiPortalCustomDomainsGet() {
21+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
22+
const resourceGroupName = "myResourceGroup";
23+
const serviceName = "myservice";
24+
const apiPortalName = "default";
25+
const domainName = "myDomainName";
26+
const credential = new DefaultAzureCredential();
27+
const client = new AppPlatformManagementClient(credential, subscriptionId);
28+
const result = await client.apiPortalCustomDomains.get(
29+
resourceGroupName,
30+
serviceName,
31+
apiPortalName,
32+
domainName
33+
);
34+
console.log(result);
35+
}
36+
37+
apiPortalCustomDomainsGet().catch(console.error);
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/*
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
4+
*
5+
* Code generated by Microsoft (R) AutoRest Code Generator.
6+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
*/
8+
9+
// Copyright (c) Microsoft Corporation.
10+
// Licensed under the MIT License.
11+
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
12+
import { DefaultAzureCredential } from "@azure/identity";
13+
14+
/**
15+
* This sample demonstrates how to Handle requests to list all API portal custom domains.
16+
*
17+
* @summary Handle requests to list all API portal custom domains.
18+
* x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortalCustomDomains_List.json
19+
*/
20+
async function apiPortalCustomDomainsList() {
21+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
22+
const resourceGroupName = "myResourceGroup";
23+
const serviceName = "myservice";
24+
const apiPortalName = "default";
25+
const credential = new DefaultAzureCredential();
26+
const client = new AppPlatformManagementClient(credential, subscriptionId);
27+
const resArray = new Array();
28+
for await (let item of client.apiPortalCustomDomains.list(
29+
resourceGroupName,
30+
serviceName,
31+
apiPortalName
32+
)) {
33+
resArray.push(item);
34+
}
35+
console.log(resArray);
36+
}
37+
38+
apiPortalCustomDomainsList().catch(console.error);
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
/*
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
4+
*
5+
* Code generated by Microsoft (R) AutoRest Code Generator.
6+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
*/
8+
9+
// Copyright (c) Microsoft Corporation.
10+
// Licensed under the MIT License.
11+
import {
12+
ApiPortalResource,
13+
AppPlatformManagementClient
14+
} from "@azure/arm-appplatform";
15+
import { DefaultAzureCredential } from "@azure/identity";
16+
17+
/**
18+
* This sample demonstrates how to Create the default API portal or update the existing API portal.
19+
*
20+
* @summary Create the default API portal or update the existing API portal.
21+
* x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortals_CreateOrUpdate.json
22+
*/
23+
async function apiPortalsCreateOrUpdate() {
24+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
25+
const resourceGroupName = "myResourceGroup";
26+
const serviceName = "myservice";
27+
const apiPortalName = "default";
28+
const apiPortalResource: ApiPortalResource = {
29+
properties: {
30+
gatewayIds: [
31+
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/gateways/default"
32+
],
33+
public: true
34+
},
35+
sku: { name: "E0", capacity: 2, tier: "Enterprise" }
36+
};
37+
const credential = new DefaultAzureCredential();
38+
const client = new AppPlatformManagementClient(credential, subscriptionId);
39+
const result = await client.apiPortals.beginCreateOrUpdateAndWait(
40+
resourceGroupName,
41+
serviceName,
42+
apiPortalName,
43+
apiPortalResource
44+
);
45+
console.log(result);
46+
}
47+
48+
apiPortalsCreateOrUpdate().catch(console.error);
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/*
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
4+
*
5+
* Code generated by Microsoft (R) AutoRest Code Generator.
6+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
*/
8+
9+
// Copyright (c) Microsoft Corporation.
10+
// Licensed under the MIT License.
11+
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
12+
import { DefaultAzureCredential } from "@azure/identity";
13+
14+
/**
15+
* This sample demonstrates how to Delete the default API portal.
16+
*
17+
* @summary Delete the default API portal.
18+
* x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortals_Delete.json
19+
*/
20+
async function apiPortalsDelete() {
21+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
22+
const resourceGroupName = "myResourceGroup";
23+
const serviceName = "myservice";
24+
const apiPortalName = "default";
25+
const credential = new DefaultAzureCredential();
26+
const client = new AppPlatformManagementClient(credential, subscriptionId);
27+
const result = await client.apiPortals.beginDeleteAndWait(
28+
resourceGroupName,
29+
serviceName,
30+
apiPortalName
31+
);
32+
console.log(result);
33+
}
34+
35+
apiPortalsDelete().catch(console.error);

0 commit comments

Comments
 (0)