Skip to content

Commit

Permalink
appplatform-release (Azure#20742)
Browse files Browse the repository at this point in the history
* appplatform-release

* update

* update
  • Loading branch information
colawwj authored Mar 15, 2022
1 parent 0ad00f7 commit 3d65a53
Show file tree
Hide file tree
Showing 608 changed files with 25,197 additions and 22 deletions.
16 changes: 3 additions & 13 deletions sdk/appplatform/arm-appplatform/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
# Release History

## 2.0.0-beta.4 (2022-03-09)

## 2.0.0-beta.4 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

## 2.0.0-beta.3 (2022-03-02)

The package of @azure/arm-appplatform is using our next generation design principles since version 2.0.0-beta.3, which contains breaking changes.
The package of @azure/arm-appplatform is using our next generation design principles since version 2.0.0-beta.4, which contains breaking changes.

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

Expand Down
4 changes: 2 additions & 2 deletions sdk/appplatform/arm-appplatform/_meta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"commit": "4042a47cff72c950d35dd72149895b044ed79713",
"commit": "1067b78669466324a1a2666adf053433c61e7f77",
"readme": "specification/appplatform/resource-manager/readme.md",
"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/typescript@6.0.0-beta.16",
"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/typescript@6.0.0-beta.16 --generate-sample=true",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"use": "@autorest/typescript@6.0.0-beta.16"
}
10 changes: 9 additions & 1 deletion sdk/appplatform/arm-appplatform/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,5 +106,13 @@
}
]
},
"autoPublish": true
"autoPublish": true,
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-appplatform?view=azure-node-preview"
}
}
14 changes: 14 additions & 0 deletions sdk/appplatform/arm-appplatform/review/arm-appplatform.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1240,6 +1240,7 @@ export interface CustomContainer {
command?: string[];
containerImage?: string;
imageRegistryCredential?: ImageRegistryCredential;
languageFramework?: string;
server?: string;
}

Expand Down Expand Up @@ -2119,6 +2120,10 @@ export enum KnownProvisioningState {
// (undocumented)
Moving = "Moving",
// (undocumented)
Starting = "Starting",
// (undocumented)
Stopping = "Stopping",
// (undocumented)
Succeeded = "Succeeded",
// (undocumented)
Updating = "Updating"
Expand Down Expand Up @@ -2229,6 +2234,9 @@ export interface ManagedIdentityProperties {
principalId?: string;
tenantId?: string;
type?: ManagedIdentityType;
userAssignedIdentities?: {
[propertyName: string]: UserAssignedManagedIdentity;
};
}

// @public
Expand Down Expand Up @@ -2956,6 +2964,12 @@ export type UploadedUserSourceInfo = UserSourceInfo & {
// @public (undocumented)
export type UploadedUserSourceInfoUnion = UploadedUserSourceInfo | JarUploadedUserSourceInfo | SourceUploadedUserSourceInfo | NetCoreZipUploadedUserSourceInfo;

// @public
export interface UserAssignedManagedIdentity {
readonly clientId?: string;
readonly principalId?: string;
}

// @public
export interface UserSourceInfo {
type: "UploadedUserSourceInfo" | "Jar" | "Source" | "NetCoreZip" | "BuildResult" | "Container";
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import {
ApiPortalCustomDomainResource,
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";

/**
* This sample demonstrates how to Create or update the API portal custom domain.
*
* @summary Create or update the API portal custom domain.
* x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortalCustomDomains_CreateOrUpdate.json
*/
async function apiPortalCustomDomainsCreateOrUpdate() {
const subscriptionId = "00000000-0000-0000-0000-000000000000";
const resourceGroupName = "myResourceGroup";
const serviceName = "myservice";
const apiPortalName = "default";
const domainName = "myDomainName";
const apiPortalCustomDomainResource: ApiPortalCustomDomainResource = {
properties: { thumbprint: "*" }
};
const credential = new DefaultAzureCredential();
const client = new AppPlatformManagementClient(credential, subscriptionId);
const result = await client.apiPortalCustomDomains.beginCreateOrUpdateAndWait(
resourceGroupName,
serviceName,
apiPortalName,
domainName,
apiPortalCustomDomainResource
);
console.log(result);
}

apiPortalCustomDomainsCreateOrUpdate().catch(console.error);
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";

/**
* This sample demonstrates how to Delete the API portal custom domain.
*
* @summary Delete the API portal custom domain.
* x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortalCustomDomains_Delete.json
*/
async function apiPortalCustomDomainsDelete() {
const subscriptionId = "00000000-0000-0000-0000-000000000000";
const resourceGroupName = "myResourceGroup";
const serviceName = "myservice";
const apiPortalName = "default";
const domainName = "myDomainName";
const credential = new DefaultAzureCredential();
const client = new AppPlatformManagementClient(credential, subscriptionId);
const result = await client.apiPortalCustomDomains.beginDeleteAndWait(
resourceGroupName,
serviceName,
apiPortalName,
domainName
);
console.log(result);
}

apiPortalCustomDomainsDelete().catch(console.error);
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";

/**
* This sample demonstrates how to Get the API portal custom domain.
*
* @summary Get the API portal custom domain.
* x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortalCustomDomains_Get.json
*/
async function apiPortalCustomDomainsGet() {
const subscriptionId = "00000000-0000-0000-0000-000000000000";
const resourceGroupName = "myResourceGroup";
const serviceName = "myservice";
const apiPortalName = "default";
const domainName = "myDomainName";
const credential = new DefaultAzureCredential();
const client = new AppPlatformManagementClient(credential, subscriptionId);
const result = await client.apiPortalCustomDomains.get(
resourceGroupName,
serviceName,
apiPortalName,
domainName
);
console.log(result);
}

apiPortalCustomDomainsGet().catch(console.error);
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";

/**
* This sample demonstrates how to Handle requests to list all API portal custom domains.
*
* @summary Handle requests to list all API portal custom domains.
* x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortalCustomDomains_List.json
*/
async function apiPortalCustomDomainsList() {
const subscriptionId = "00000000-0000-0000-0000-000000000000";
const resourceGroupName = "myResourceGroup";
const serviceName = "myservice";
const apiPortalName = "default";
const credential = new DefaultAzureCredential();
const client = new AppPlatformManagementClient(credential, subscriptionId);
const resArray = new Array();
for await (let item of client.apiPortalCustomDomains.list(
resourceGroupName,
serviceName,
apiPortalName
)) {
resArray.push(item);
}
console.log(resArray);
}

apiPortalCustomDomainsList().catch(console.error);
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import {
ApiPortalResource,
AppPlatformManagementClient
} from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";

/**
* This sample demonstrates how to Create the default API portal or update the existing API portal.
*
* @summary Create the default API portal or update the existing API portal.
* x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortals_CreateOrUpdate.json
*/
async function apiPortalsCreateOrUpdate() {
const subscriptionId = "00000000-0000-0000-0000-000000000000";
const resourceGroupName = "myResourceGroup";
const serviceName = "myservice";
const apiPortalName = "default";
const apiPortalResource: ApiPortalResource = {
properties: {
gatewayIds: [
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/gateways/default"
],
public: true
},
sku: { name: "E0", capacity: 2, tier: "Enterprise" }
};
const credential = new DefaultAzureCredential();
const client = new AppPlatformManagementClient(credential, subscriptionId);
const result = await client.apiPortals.beginCreateOrUpdateAndWait(
resourceGroupName,
serviceName,
apiPortalName,
apiPortalResource
);
console.log(result);
}

apiPortalsCreateOrUpdate().catch(console.error);
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";

/**
* This sample demonstrates how to Delete the default API portal.
*
* @summary Delete the default API portal.
* x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortals_Delete.json
*/
async function apiPortalsDelete() {
const subscriptionId = "00000000-0000-0000-0000-000000000000";
const resourceGroupName = "myResourceGroup";
const serviceName = "myservice";
const apiPortalName = "default";
const credential = new DefaultAzureCredential();
const client = new AppPlatformManagementClient(credential, subscriptionId);
const result = await client.apiPortals.beginDeleteAndWait(
resourceGroupName,
serviceName,
apiPortalName
);
console.log(result);
}

apiPortalsDelete().catch(console.error);
35 changes: 35 additions & 0 deletions sdk/appplatform/arm-appplatform/samples-dev/apiPortalsGetSample.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { AppPlatformManagementClient } from "@azure/arm-appplatform";
import { DefaultAzureCredential } from "@azure/identity";

/**
* This sample demonstrates how to Get the API portal and its properties.
*
* @summary Get the API portal and its properties.
* x-ms-original-file: specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2022-03-01-preview/examples/ApiPortals_Get.json
*/
async function apiPortalsGet() {
const subscriptionId = "00000000-0000-0000-0000-000000000000";
const resourceGroupName = "myResourceGroup";
const serviceName = "myservice";
const apiPortalName = "default";
const credential = new DefaultAzureCredential();
const client = new AppPlatformManagementClient(credential, subscriptionId);
const result = await client.apiPortals.get(
resourceGroupName,
serviceName,
apiPortalName
);
console.log(result);
}

apiPortalsGet().catch(console.error);
Loading

0 comments on commit 3d65a53

Please sign in to comment.