forked from Azure/azure-sdk-for-js
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* appplatform-release * update * update
- Loading branch information
Showing
608 changed files
with
25,197 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
sdk/appplatform/arm-appplatform/samples-dev/apiPortalCustomDomainsCreateOrUpdateSample.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
37 changes: 37 additions & 0 deletions
37
sdk/appplatform/arm-appplatform/samples-dev/apiPortalCustomDomainsDeleteSample.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
37 changes: 37 additions & 0 deletions
37
sdk/appplatform/arm-appplatform/samples-dev/apiPortalCustomDomainsGetSample.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
38 changes: 38 additions & 0 deletions
38
sdk/appplatform/arm-appplatform/samples-dev/apiPortalCustomDomainsListSample.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
48 changes: 48 additions & 0 deletions
48
sdk/appplatform/arm-appplatform/samples-dev/apiPortalsCreateOrUpdateSample.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
35 changes: 35 additions & 0 deletions
35
sdk/appplatform/arm-appplatform/samples-dev/apiPortalsDeleteSample.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
35
sdk/appplatform/arm-appplatform/samples-dev/apiPortalsGetSample.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
Oops, something went wrong.