diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 36b58ada23c9..83c9d3947ee6 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -3966,7 +3966,7 @@ packages: dependencies: semver: 7.3.7 shelljs: 0.8.5 - typescript: 4.8.0-dev.20220614 + typescript: 4.8.0-dev.20220615 dev: false /downlevel-dts/0.4.0: @@ -8770,8 +8770,8 @@ packages: hasBin: true dev: false - /typescript/4.8.0-dev.20220614: - resolution: {integrity: sha512-pZVLT8Li6ZCYmyv6F+xEJ+nZ947uRE7el5OloggrPZdhjDJpBBBn/CK5YCgnXcmZFgwO6WMbco1GwfsR23CsxA==} + /typescript/4.8.0-dev.20220615: + resolution: {integrity: sha512-Is/gGrlFdQdT4GA/FEz4tMnDy78lNVxCxtZule9Xv5LRSwLgbgLwJQBMqpLWXd/KJO6u66F2EFmfXU1g3MCVZA==} engines: {node: '>=4.2.0'} hasBin: true dev: false @@ -13937,7 +13937,7 @@ packages: dev: false file:projects/arm-servicefabricmesh.tgz: - resolution: {integrity: sha512-zeWEn3quYFpKpAvlBBYD0e6o6PFslttCoUnLN+P4yC6DS36E6jW6JcZE6DkB0l1FsvBjlhrT+PymPhxIifs4BA==, tarball: file:projects/arm-servicefabricmesh.tgz} + resolution: {integrity: sha512-A6dYqcEPimeuDRVTXfL900sD/P8ZwpIosliy34ULsPO/qsGjN9jn1raajuV7yASIOMZE+6q6sqVVm2kM26LYDQ==, tarball: file:projects/arm-servicefabricmesh.tgz} name: '@rush-temp/arm-servicefabricmesh' version: 0.0.0 dependencies: @@ -13948,6 +13948,8 @@ packages: '@rollup/plugin-json': 4.1.0_rollup@2.73.0 '@rollup/plugin-multi-entry': 4.1.0_rollup@2.73.0 '@rollup/plugin-node-resolve': 13.3.0_rollup@2.73.0 + '@types/chai': 4.3.1 + chai: 4.3.6 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 7.2.0 @@ -13960,7 +13962,6 @@ packages: transitivePeerDependencies: - '@types/node' - debug - - encoding - supports-color dev: false diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/CHANGELOG.md b/sdk/servicefabricmesh/arm-servicefabricmesh/CHANGELOG.md index 3d742dba1afe..c6b495a22210 100644 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/CHANGELOG.md +++ b/sdk/servicefabricmesh/arm-servicefabricmesh/CHANGELOG.md @@ -1,18 +1,8 @@ # Release History + +## 3.0.0-beta.3 (2022-06-15) -## 3.0.0-beta.3 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - -## 3.0.0-beta.2 (2022-05-01) - -The package of @azure/arm-servicefabricmesh is using our next generation design principles since version 3.0.0-beta.2, which contains breaking changes. +The package of @azure/arm-servicefabricmesh is using our next generation design principles since version 3.0.0-beta.3, which contains breaking changes. To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog). diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/_meta.json b/sdk/servicefabricmesh/arm-servicefabricmesh/_meta.json index 2248100c00d7..2d4455589319 100644 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/_meta.json +++ b/sdk/servicefabricmesh/arm-servicefabricmesh/_meta.json @@ -1,8 +1,8 @@ { - "commit": "f9a6cb686bcc0f1b23761db19f2491c5c4df95cb", - "readme": "specification\\servicefabricmesh\\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:\\work\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\servicefabricmesh\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-alpha.19.20220408.1 --generate-sample=true", + "commit": "aa42d66d5b919ea80c8dde04ae19d30a9c974d7d", + "readme": "specification/servicefabricmesh/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:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\servicefabricmesh\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-beta.20 --generate-sample=true", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", "release_tool": "@azure-tools/js-sdk-release-tools@2.3.0", - "use": "@autorest/typescript@6.0.0-alpha.19.20220408.1" -} + "use": "@autorest/typescript@6.0.0-beta.20" +} \ No newline at end of file diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/package.json b/sdk/servicefabricmesh/arm-servicefabricmesh/package.json index b469bcc65345..013f294e3f01 100644 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/package.json +++ b/sdk/servicefabricmesh/arm-servicefabricmesh/package.json @@ -38,9 +38,13 @@ "uglify-js": "^3.4.9", "rimraf": "^3.0.0", "@azure/identity": "^2.0.1", - "@azure-tools/test-recorder": "^1.0.0", + "@azure-tools/test-recorder": "^2.0.0", + "@azure-tools/test-credential": "^1.0.0", "mocha": "^7.1.1", - "cross-env": "^7.0.2" + "@types/chai": "^4.2.8", + "chai": "^4.2.0", + "cross-env": "^7.0.2", + "@azure/dev-tool": "^1.0.0" }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/servicefabricmesh/arm-servicefabricmesh", "repository": { @@ -91,7 +95,7 @@ "unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node", "unit-test:browser": "echo skipped", "integration-test": "npm run integration-test:node && npm run integration-test:browser", - "integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js", + "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'", "integration-test:browser": "echo skipped", "docs": "echo skipped" }, @@ -113,4 +117,4 @@ "disableDocsMs": true, "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-servicefabricmesh?view=azure-node-preview" } -} +} \ No newline at end of file diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/recordings/node/my_test/recording_sample_test.json b/sdk/servicefabricmesh/arm-servicefabricmesh/recordings/node/my_test/recording_sample_test.json new file mode 100644 index 000000000000..f721723386d8 --- /dev/null +++ b/sdk/servicefabricmesh/arm-servicefabricmesh/recordings/node/my_test/recording_sample_test.json @@ -0,0 +1,4 @@ +{ + "Entries": [], + "Variables": {} +} diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/review/arm-servicefabricmesh.api.md b/sdk/servicefabricmesh/arm-servicefabricmesh/review/arm-servicefabricmesh.api.md index 67766db0ec1a..0826ce4734c0 100644 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/review/arm-servicefabricmesh.api.md +++ b/sdk/servicefabricmesh/arm-servicefabricmesh/review/arm-servicefabricmesh.api.md @@ -105,7 +105,7 @@ export interface ApplicationResourceDescriptionList { } // @public -export type ApplicationResourceProperties = ProvisionedResourceProperties & ApplicationProperties & {}; +export type ApplicationResourceProperties = ProvisionedResourceProperties & ApplicationProperties; // @public export type ApplicationScopedVolume = VolumeReference & { @@ -435,7 +435,7 @@ export interface GatewayResourceDescriptionList { } // @public -export type GatewayResourceProperties = ProvisionedResourceProperties & GatewayProperties & {}; +export type GatewayResourceProperties = ProvisionedResourceProperties & GatewayProperties; // @public export type HeaderMatchType = string; @@ -491,7 +491,7 @@ export interface ImageRegistryCredential { } // @public -export type InlinedValueSecretResourceProperties = SecretResourceProperties & {}; +export type InlinedValueSecretResourceProperties = SecretResourceProperties; // @public export enum KnownApplicationScopedVolumeKind { @@ -737,7 +737,7 @@ export interface ProvisionedResourceProperties { } // @public -export type ProxyResource = Resource & {}; +export type ProxyResource = Resource; // @public export interface ReliableCollectionsRef { @@ -932,7 +932,7 @@ export interface SecretValueResourceDescriptionList { } // @public -export type SecretValueResourceProperties = ProvisionedResourceProperties & SecretValueProperties & {}; +export type SecretValueResourceProperties = ProvisionedResourceProperties & SecretValueProperties; // @public export interface Service { @@ -1079,7 +1079,7 @@ export interface ServiceResourceDescriptionList { } // @public -export type ServiceResourceProperties = ProvisionedResourceProperties & ServiceReplicaProperties & ServiceProperties & {}; +export type ServiceResourceProperties = ProvisionedResourceProperties & ServiceReplicaProperties & ServiceProperties; // @public export interface Setting { @@ -1203,7 +1203,7 @@ export interface VolumeResourceDescriptionList { } // @public -export type VolumeResourceProperties = ProvisionedResourceProperties & VolumeProperties & {}; +export type VolumeResourceProperties = ProvisionedResourceProperties & VolumeProperties; // (No @packageDocumentation comment for this package) diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/createOrUpdateApplication.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/createOrUpdateApplication.ts deleted file mode 100644 index a5b75fe33068..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/createOrUpdateApplication.ts +++ /dev/null @@ -1,68 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Creates an application resource with the specified name, description and properties. If an application resource with the same name exists, then it is updated with the specified description and properties. - * - * @summary Creates an application resource with the specified name, description and properties. If an application resource with the same name exists, then it is updated with the specified description and properties. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/create_update.json - */ -import { - ApplicationResourceDescription, - ServiceFabricMeshManagementClient -} from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function createOrUpdateApplication() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const applicationResourceName = "sampleApplication"; - const applicationResourceDescription: ApplicationResourceDescription = { - description: "Service Fabric Mesh sample application.", - location: "EastUS", - services: [ - { - name: "helloWorldService", - description: "SeaBreeze Hello World Service.", - codePackages: [ - { - name: "helloWorldCode", - endpoints: [{ name: "helloWorldListener", port: 80 }], - image: "seabreeze/sbz-helloworld:1.0-alpine", - resources: { requests: { cpu: 1, memoryInGB: 1 } } - } - ], - networkRefs: [ - { - name: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/sbz_demo/providers/Microsoft.ServiceFabricMesh/networks/sampleNetwork", - endpointRefs: [{ name: "helloWorldListener" }] - } - ], - osType: "Linux", - replicaCount: 1 - } - ], - tags: {} - }; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const result = await client.application.create( - resourceGroupName, - applicationResourceName, - applicationResourceDescription - ); - console.log(result); -} - -createOrUpdateApplication().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/createOrUpdateGateway.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/createOrUpdateGateway.ts deleted file mode 100644 index f5e0828ef879..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/createOrUpdateGateway.ts +++ /dev/null @@ -1,85 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Creates a gateway resource with the specified name, description and properties. If a gateway resource with the same name exists, then it is updated with the specified description and properties. Use gateway resources to create a gateway for public connectivity for services within your application. - * - * @summary Creates a gateway resource with the specified name, description and properties. If a gateway resource with the same name exists, then it is updated with the specified description and properties. Use gateway resources to create a gateway for public connectivity for services within your application. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/gateways/create_update.json - */ -import { - GatewayResourceDescription, - ServiceFabricMeshManagementClient -} from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function createOrUpdateGateway() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const gatewayResourceName = "sampleGateway"; - const gatewayResourceDescription: GatewayResourceDescription = { - description: "Service Fabric Mesh sample gateway.", - destinationNetwork: { name: "helloWorldNetwork" }, - location: "EastUS", - sourceNetwork: { name: "Open" }, - tags: {}, - tcp: [ - { - name: "web", - destination: { - applicationName: "helloWorldApp", - endpointName: "helloWorldListener", - serviceName: "helloWorldService" - }, - port: 80 - } - ], - http: [ - { - name: "contosoWebsite", - hosts: [ - { - name: "contoso.com", - routes: [ - { - name: "index", - destination: { - applicationName: "httpHelloWorldApp", - endpointName: "indexHttpEndpoint", - serviceName: "indexService" - }, - match: { - path: { type: "prefix", rewrite: "/", value: "/index" }, - headers: [ - { name: "accept", type: "exact", value: "application/json" } - ] - } - } - ] - } - ], - port: 8081 - } - ] - }; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const result = await client.gateway.create( - resourceGroupName, - gatewayResourceName, - gatewayResourceDescription - ); - console.log(result); -} - -createOrUpdateGateway().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/createOrUpdateNetwork.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/createOrUpdateNetwork.ts deleted file mode 100644 index 613fab9f8c7c..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/createOrUpdateNetwork.ts +++ /dev/null @@ -1,49 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Creates a network resource with the specified name, description and properties. If a network resource with the same name exists, then it is updated with the specified description and properties. - * - * @summary Creates a network resource with the specified name, description and properties. If a network resource with the same name exists, then it is updated with the specified description and properties. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/networks/create_update.json - */ -import { - NetworkResourceDescription, - ServiceFabricMeshManagementClient -} from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function createOrUpdateNetwork() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const networkResourceName = "sampleNetwork"; - const networkResourceDescription: NetworkResourceDescription = { - location: "EastUS", - properties: { - description: "Service Fabric Mesh sample network.", - kind: "Local", - networkAddressPrefix: "2.0.0.0/16" - }, - tags: {} - }; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const result = await client.network.create( - resourceGroupName, - networkResourceName, - networkResourceDescription - ); - console.log(result); -} - -createOrUpdateNetwork().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/createOrUpdateSecret.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/createOrUpdateSecret.ts deleted file mode 100644 index fb8eca267e96..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/createOrUpdateSecret.ts +++ /dev/null @@ -1,49 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Creates a secret resource with the specified name, description and properties. If a secret resource with the same name exists, then it is updated with the specified description and properties. - * - * @summary Creates a secret resource with the specified name, description and properties. If a secret resource with the same name exists, then it is updated with the specified description and properties. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/create_update.json - */ -import { - SecretResourceDescription, - ServiceFabricMeshManagementClient -} from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function createOrUpdateSecret() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const secretResourceName = "dbConnectionString"; - const secretResourceDescription: SecretResourceDescription = { - location: "EastUS", - properties: { - description: "Mongo DB connection string for backend database!", - contentType: "text/plain", - kind: "inlinedValue" - }, - tags: {} - }; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const result = await client.secret.create( - resourceGroupName, - secretResourceName, - secretResourceDescription - ); - console.log(result); -} - -createOrUpdateSecret().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/createOrUpdateVolume.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/createOrUpdateVolume.ts deleted file mode 100644 index e51de0698973..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/createOrUpdateVolume.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Creates a volume resource with the specified name, description and properties. If a volume resource with the same name exists, then it is updated with the specified description and properties. - * - * @summary Creates a volume resource with the specified name, description and properties. If a volume resource with the same name exists, then it is updated with the specified description and properties. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/volumes/create_update.json - */ -import { - VolumeResourceDescription, - ServiceFabricMeshManagementClient -} from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function createOrUpdateVolume() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const volumeResourceName = "sampleVolume"; - const volumeResourceDescription: VolumeResourceDescription = { - description: "Service Fabric Mesh sample volume.", - azureFileParameters: { - accountKey: "provide-account-key-here", - accountName: "sbzdemoaccount", - shareName: "sharel" - }, - location: "EastUS", - provider: "SFAzureFile", - tags: {} - }; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const result = await client.volume.create( - resourceGroupName, - volumeResourceName, - volumeResourceDescription - ); - console.log(result); -} - -createOrUpdateVolume().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/createSecretValue.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/createSecretValue.ts deleted file mode 100644 index 57017fe0c437..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/createSecretValue.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Creates a new value of the specified secret resource. The name of the value is typically the version identifier. Once created the value cannot be changed. - * - * @summary Creates a new value of the specified secret resource. The name of the value is typically the version identifier. Once created the value cannot be changed. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/values/create.json - */ -import { - SecretValueResourceDescription, - ServiceFabricMeshManagementClient -} from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function createSecretValue() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const secretResourceName = "dbConnectionString"; - const secretValueResourceName = "v1"; - const secretValueResourceDescription: SecretValueResourceDescription = { - location: "eastus", - name: "v1", - value: - "mongodb://contoso123:0Fc3IolnL12312asdfawejunASDF@asdfYXX2t8a97kghVcUzcDv98hawelufhawefafnoQRGwNj2nMPL1Y9qsIr9Srdw==@contoso123.documents.azure.com:10255/mydatabase?ssl=true" - }; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const result = await client.secretValueOperations.create( - resourceGroupName, - secretResourceName, - secretValueResourceName, - secretValueResourceDescription - ); - console.log(result); -} - -createSecretValue().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/deleteApplication.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/deleteApplication.ts deleted file mode 100644 index 688c9ebc6c27..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/deleteApplication.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Deletes the application resource identified by the name. - * - * @summary Deletes the application resource identified by the name. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/delete.json - */ -import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function deleteApplication() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const applicationResourceName = "sampleApplication"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const result = await client.application.delete( - resourceGroupName, - applicationResourceName - ); - console.log(result); -} - -deleteApplication().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/deleteGateway.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/deleteGateway.ts deleted file mode 100644 index 7240421311e5..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/deleteGateway.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Deletes the gateway resource identified by the name. - * - * @summary Deletes the gateway resource identified by the name. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/gateways/delete.json - */ -import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function deleteGateway() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const gatewayResourceName = "sampleGateway"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const result = await client.gateway.delete( - resourceGroupName, - gatewayResourceName - ); - console.log(result); -} - -deleteGateway().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/deleteNetwork.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/deleteNetwork.ts deleted file mode 100644 index 0845786e5ccd..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/deleteNetwork.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Deletes the network resource identified by the name. - * - * @summary Deletes the network resource identified by the name. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/networks/delete.json - */ -import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function deleteNetwork() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const networkResourceName = "sampleNetwork"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const result = await client.network.delete( - resourceGroupName, - networkResourceName - ); - console.log(result); -} - -deleteNetwork().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/deleteSecret.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/deleteSecret.ts deleted file mode 100644 index 6574bd3f7f25..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/deleteSecret.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Deletes the secret resource identified by the name. - * - * @summary Deletes the secret resource identified by the name. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/delete.json - */ -import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function deleteSecret() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const secretResourceName = "dbConnectionString"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const result = await client.secret.delete( - resourceGroupName, - secretResourceName - ); - console.log(result); -} - -deleteSecret().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/deleteSecretValue.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/deleteSecretValue.ts deleted file mode 100644 index bd9303151322..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/deleteSecretValue.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Deletes the secret value resource identified by the name. The name of the resource is typically the version associated with that value. Deletion will fail if the specified value is in use. - * - * @summary Deletes the secret value resource identified by the name. The name of the resource is typically the version associated with that value. Deletion will fail if the specified value is in use. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/values/delete.json - */ -import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function deleteSecretValue() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const secretResourceName = "dbConnectionString"; - const secretValueResourceName = "v1"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const result = await client.secretValueOperations.delete( - resourceGroupName, - secretResourceName, - secretValueResourceName - ); - console.log(result); -} - -deleteSecretValue().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/deleteVolume.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/deleteVolume.ts deleted file mode 100644 index 2166333850f8..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/deleteVolume.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Deletes the volume resource identified by the name. - * - * @summary Deletes the volume resource identified by the name. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/volumes/delete.json - */ -import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function deleteVolume() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const volumeResourceName = "sampleVolume"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const result = await client.volume.delete( - resourceGroupName, - volumeResourceName - ); - console.log(result); -} - -deleteVolume().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/getApplication.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/getApplication.ts deleted file mode 100644 index 74c1dc3f86d5..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/getApplication.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the information about the application resource with the given name. The information include the description and other properties of the application. - * - * @summary Gets the information about the application resource with the given name. The information include the description and other properties of the application. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/get.json - */ -import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function getApplication() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const applicationResourceName = "sampleApplication"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const result = await client.application.get( - resourceGroupName, - applicationResourceName - ); - console.log(result); -} - -getApplication().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/getContainerLogs.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/getContainerLogs.ts deleted file mode 100644 index 84301c978eb4..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/getContainerLogs.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the logs for the container of the specified code package of the service replica. - * - * @summary Gets the logs for the container of the specified code package of the service replica. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/services/replicas/codepackages/get_logs.json - */ -import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function getContainerLogs() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const applicationResourceName = "sbzDocApp"; - const serviceResourceName = "sbzDocService"; - const replicaName = "0"; - const codePackageName = "sbzDocCode"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const result = await client.codePackage.getContainerLogs( - resourceGroupName, - applicationResourceName, - serviceResourceName, - replicaName, - codePackageName - ); - console.log(result); -} - -getContainerLogs().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/getGateway.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/getGateway.ts deleted file mode 100644 index 0cd7d698cd56..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/getGateway.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the information about the gateway resource with the given name. The information include the description and other properties of the gateway. - * - * @summary Gets the information about the gateway resource with the given name. The information include the description and other properties of the gateway. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/gateways/get.json - */ -import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function getGateway() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const gatewayResourceName = "sampleGateway"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const result = await client.gateway.get( - resourceGroupName, - gatewayResourceName - ); - console.log(result); -} - -getGateway().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/getNetwork.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/getNetwork.ts deleted file mode 100644 index ade40941f5ca..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/getNetwork.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the information about the network resource with the given name. The information include the description and other properties of the network. - * - * @summary Gets the information about the network resource with the given name. The information include the description and other properties of the network. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/networks/get.json - */ -import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function getNetwork() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const networkResourceName = "sampleNetwork"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const result = await client.network.get( - resourceGroupName, - networkResourceName - ); - console.log(result); -} - -getNetwork().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/getSecret.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/getSecret.ts deleted file mode 100644 index e2da462e97bb..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/getSecret.ts +++ /dev/null @@ -1,33 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the information about the secret resource with the given name. The information include the description and other properties of the secret. - * - * @summary Gets the information about the secret resource with the given name. The information include the description and other properties of the secret. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/get.json - */ -import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function getSecret() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const secretResourceName = "dbConnectionString"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const result = await client.secret.get(resourceGroupName, secretResourceName); - console.log(result); -} - -getSecret().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/getSecretValue.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/getSecretValue.ts deleted file mode 100644 index 40aad075f997..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/getSecretValue.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Get the information about the specified named secret value resources. The information does not include the actual value of the secret. - * - * @summary Get the information about the specified named secret value resources. The information does not include the actual value of the secret. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/values/get.json - */ -import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function getSecretValue() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const secretResourceName = "dbConnectionString"; - const secretValueResourceName = "v1"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const result = await client.secretValueOperations.get( - resourceGroupName, - secretResourceName, - secretValueResourceName - ); - console.log(result); -} - -getSecretValue().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/getService.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/getService.ts deleted file mode 100644 index dc7655a7ba88..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/getService.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the information about the service resource with the given name. The information include the description and other properties of the service. - * - * @summary Gets the information about the service resource with the given name. The information include the description and other properties of the service. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/services/get.json - */ -import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function getService() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const applicationResourceName = "sampleApplication"; - const serviceResourceName = "helloWorldService"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const result = await client.service.get( - resourceGroupName, - applicationResourceName, - serviceResourceName - ); - console.log(result); -} - -getService().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/getVolume.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/getVolume.ts deleted file mode 100644 index aeda5a171650..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/getVolume.ts +++ /dev/null @@ -1,33 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the information about the volume resource with the given name. The information include the description and other properties of the volume. - * - * @summary Gets the information about the volume resource with the given name. The information include the description and other properties of the volume. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/volumes/get.json - */ -import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function getVolume() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const volumeResourceName = "sampleVolume"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const result = await client.volume.get(resourceGroupName, volumeResourceName); - console.log(result); -} - -getVolume().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/listApplicationsByResourceGroup.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/listApplicationsByResourceGroup.ts deleted file mode 100644 index be78d74a18df..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/listApplicationsByResourceGroup.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the information about all application resources in a given resource group. The information include the description and other properties of the Application. - * - * @summary Gets the information about all application resources in a given resource group. The information include the description and other properties of the Application. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/list_byResourceGroup.json - */ -import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function listApplicationsByResourceGroup() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.application.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -listApplicationsByResourceGroup().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/listApplicationsBySubscriptionId.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/listApplicationsBySubscriptionId.ts deleted file mode 100644 index dbffc08b6777..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/listApplicationsBySubscriptionId.ts +++ /dev/null @@ -1,34 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the information about all application resources in a given resource group. The information include the description and other properties of the application. - * - * @summary Gets the information about all application resources in a given resource group. The information include the description and other properties of the application. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/list_bySubscriptionId.json - */ -import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function listApplicationsBySubscriptionId() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.application.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -listApplicationsBySubscriptionId().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/listGatewaysByResourceGroup.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/listGatewaysByResourceGroup.ts deleted file mode 100644 index f5a53879ca94..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/listGatewaysByResourceGroup.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the information about all gateway resources in a given resource group. The information include the description and other properties of the Gateway. - * - * @summary Gets the information about all gateway resources in a given resource group. The information include the description and other properties of the Gateway. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/gateways/list_byResourceGroup.json - */ -import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function listGatewaysByResourceGroup() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.gateway.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -listGatewaysByResourceGroup().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/listGatewaysBySubscriptionId.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/listGatewaysBySubscriptionId.ts deleted file mode 100644 index c83c3413fc26..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/listGatewaysBySubscriptionId.ts +++ /dev/null @@ -1,34 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the information about all gateway resources in a given resource group. The information include the description and other properties of the gateway. - * - * @summary Gets the information about all gateway resources in a given resource group. The information include the description and other properties of the gateway. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/gateways/list_bySubscriptionId.json - */ -import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function listGatewaysBySubscriptionId() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.gateway.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -listGatewaysBySubscriptionId().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/listNetworksByResourceGroup.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/listNetworksByResourceGroup.ts deleted file mode 100644 index 051f57aedfa5..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/listNetworksByResourceGroup.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the information about all network resources in a given resource group. The information include the description and other properties of the Network. - * - * @summary Gets the information about all network resources in a given resource group. The information include the description and other properties of the Network. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/networks/list_byResourceGroup.json - */ -import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function listNetworksByResourceGroup() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.network.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -listNetworksByResourceGroup().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/listNetworksBySubscriptionId.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/listNetworksBySubscriptionId.ts deleted file mode 100644 index a92da524ba0a..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/listNetworksBySubscriptionId.ts +++ /dev/null @@ -1,34 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the information about all network resources in a given resource group. The information include the description and other properties of the network. - * - * @summary Gets the information about all network resources in a given resource group. The information include the description and other properties of the network. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/networks/list_bySubscriptionId.json - */ -import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function listNetworksBySubscriptionId() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.network.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -listNetworksBySubscriptionId().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/listSecretValue.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/listSecretValue.ts deleted file mode 100644 index 4473defb85de..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/listSecretValue.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Lists the decrypted value of the specified named value of the secret resource. This is a privileged operation. - * - * @summary Lists the decrypted value of the specified named value of the secret resource. This is a privileged operation. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/values/list_value.json - */ -import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function listSecretValue() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const secretResourceName = "dbConnectionString"; - const secretValueResourceName = "v1"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const result = await client.secretValueOperations.listValue( - resourceGroupName, - secretResourceName, - secretValueResourceName - ); - console.log(result); -} - -listSecretValue().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/listSecretValues.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/listSecretValues.ts deleted file mode 100644 index 6932ab2c8fa4..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/listSecretValues.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets information about all secret value resources of the specified secret resource. The information includes the names of the secret value resources, but not the actual values. - * - * @summary Gets information about all secret value resources of the specified secret resource. The information includes the names of the secret value resources, but not the actual values. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/values/list.json - */ -import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function listSecretValues() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const secretResourceName = "dbConnectionString"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.secretValueOperations.list( - resourceGroupName, - secretResourceName - )) { - resArray.push(item); - } - console.log(resArray); -} - -listSecretValues().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/listSecretsByResourceGroup.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/listSecretsByResourceGroup.ts deleted file mode 100644 index eb8c6609c40a..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/listSecretsByResourceGroup.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the information about all secret resources in a given resource group. The information include the description and other properties of the Secret. - * - * @summary Gets the information about all secret resources in a given resource group. The information include the description and other properties of the Secret. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/list_byResourceGroup.json - */ -import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function listSecretsByResourceGroup() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.secret.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -listSecretsByResourceGroup().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/listSecretsBySubscriptionId.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/listSecretsBySubscriptionId.ts deleted file mode 100644 index 69820eab9c09..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/listSecretsBySubscriptionId.ts +++ /dev/null @@ -1,34 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the information about all secret resources in a given resource group. The information include the description and other properties of the secret. - * - * @summary Gets the information about all secret resources in a given resource group. The information include the description and other properties of the secret. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/list_bySubscriptionId.json - */ -import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function listSecretsBySubscriptionId() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.secret.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -listSecretsBySubscriptionId().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/listServices.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/listServices.ts deleted file mode 100644 index 1f7c9020a593..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/listServices.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the information about all services of an application resource. The information include the description and other properties of the Service. - * - * @summary Gets the information about all services of an application resource. The information include the description and other properties of the Service. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/services/list.json - */ -import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function listServices() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const applicationResourceName = "sampleApplication"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.service.list( - resourceGroupName, - applicationResourceName - )) { - resArray.push(item); - } - console.log(resArray); -} - -listServices().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/listVolumesByResourceGroup.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/listVolumesByResourceGroup.ts deleted file mode 100644 index a9677aab7ce6..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/listVolumesByResourceGroup.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the information about all volume resources in a given resource group. The information include the description and other properties of the Volume. - * - * @summary Gets the information about all volume resources in a given resource group. The information include the description and other properties of the Volume. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/volumes/list_byResourceGroup.json - */ -import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function listVolumesByResourceGroup() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.volume.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -listVolumesByResourceGroup().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/listVolumesBySubscriptionId.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/listVolumesBySubscriptionId.ts deleted file mode 100644 index 04cb7d2f0cd1..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/listVolumesBySubscriptionId.ts +++ /dev/null @@ -1,34 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the information about all volume resources in a given resource group. The information include the description and other properties of the volume. - * - * @summary Gets the information about all volume resources in a given resource group. The information include the description and other properties of the volume. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/volumes/list_bySubscriptionId.json - */ -import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function listVolumesBySubscriptionId() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.volume.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -listVolumesBySubscriptionId().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/replicaGet.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/replicaGet.ts deleted file mode 100644 index 9a03ed79046b..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/replicaGet.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the information about the service replica with the given name. The information include the description and other properties of the service replica. - * - * @summary Gets the information about the service replica with the given name. The information include the description and other properties of the service replica. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/services/replicas/get.json - */ -import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function replicaGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const applicationResourceName = "helloWorldApp"; - const serviceResourceName = "helloWorldService"; - const replicaName = "0"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const result = await client.serviceReplica.get( - resourceGroupName, - applicationResourceName, - serviceResourceName, - replicaName - ); - console.log(result); -} - -replicaGet().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/replicasGetAll.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/replicasGetAll.ts deleted file mode 100644 index d3951feaff04..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/replicasGetAll.ts +++ /dev/null @@ -1,41 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the information about all replicas of a given service of an application. The information includes the runtime properties of the replica instance. - * - * @summary Gets the information about all replicas of a given service of an application. The information includes the runtime properties of the replica instance. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/services/replicas/list.json - */ -import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function replicasGetAll() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const applicationResourceName = "sampleApplication"; - const serviceResourceName = "helloWorldService"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.serviceReplica.list( - resourceGroupName, - applicationResourceName, - serviceResourceName - )) { - resArray.push(item); - } - console.log(resArray); -} - -replicasGetAll().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/secretValueCreateSample.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/secretValueCreateSample.ts index b60561716a6b..a1c8f0b23389 100644 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/secretValueCreateSample.ts +++ b/sdk/servicefabricmesh/arm-servicefabricmesh/samples-dev/secretValueCreateSample.ts @@ -26,8 +26,8 @@ async function createSecretValue() { const secretResourceName = "dbConnectionString"; const secretValueResourceName = "v1"; const secretValueResourceDescription: SecretValueResourceDescription = { - location: "eastus", name: "v1", + location: "West US", value: "mongodb://contoso123:0Fc3IolnL12312asdfawejunASDF@asdfYXX2t8a97kghVcUzcDv98hawelufhawefafnoQRGwNj2nMPL1Y9qsIr9Srdw==@contoso123.documents.azure.com:10255/mydatabase?ssl=true" }; diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/README.md b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/README.md index 61c1af279fdb..29a42014325d 100644 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/README.md +++ b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/README.md @@ -10,51 +10,16 @@ These sample programs show how to use the JavaScript client libraries for in som | [applicationListByResourceGroupSample.js][applicationlistbyresourcegroupsample] | Gets the information about all application resources in a given resource group. The information include the description and other properties of the Application. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/list_byResourceGroup.json | | [applicationListBySubscriptionSample.js][applicationlistbysubscriptionsample] | Gets the information about all application resources in a given resource group. The information include the description and other properties of the application. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/list_bySubscriptionId.json | | [codePackageGetContainerLogsSample.js][codepackagegetcontainerlogssample] | Gets the logs for the container of the specified code package of the service replica. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/services/replicas/codepackages/get_logs.json | -| [createOrUpdateApplication.js][createorupdateapplication] | Creates an application resource with the specified name, description and properties. If an application resource with the same name exists, then it is updated with the specified description and properties. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/create_update.json | -| [createOrUpdateGateway.js][createorupdategateway] | Creates a gateway resource with the specified name, description and properties. If a gateway resource with the same name exists, then it is updated with the specified description and properties. Use gateway resources to create a gateway for public connectivity for services within your application. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/gateways/create_update.json | -| [createOrUpdateNetwork.js][createorupdatenetwork] | Creates a network resource with the specified name, description and properties. If a network resource with the same name exists, then it is updated with the specified description and properties. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/networks/create_update.json | -| [createOrUpdateSecret.js][createorupdatesecret] | Creates a secret resource with the specified name, description and properties. If a secret resource with the same name exists, then it is updated with the specified description and properties. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/create_update.json | -| [createOrUpdateVolume.js][createorupdatevolume] | Creates a volume resource with the specified name, description and properties. If a volume resource with the same name exists, then it is updated with the specified description and properties. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/volumes/create_update.json | -| [createSecretValue.js][createsecretvalue] | Creates a new value of the specified secret resource. The name of the value is typically the version identifier. Once created the value cannot be changed. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/values/create.json | -| [deleteApplication.js][deleteapplication] | Deletes the application resource identified by the name. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/delete.json | -| [deleteGateway.js][deletegateway] | Deletes the gateway resource identified by the name. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/gateways/delete.json | -| [deleteNetwork.js][deletenetwork] | Deletes the network resource identified by the name. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/networks/delete.json | -| [deleteSecret.js][deletesecret] | Deletes the secret resource identified by the name. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/delete.json | -| [deleteSecretValue.js][deletesecretvalue] | Deletes the secret value resource identified by the name. The name of the resource is typically the version associated with that value. Deletion will fail if the specified value is in use. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/values/delete.json | -| [deleteVolume.js][deletevolume] | Deletes the volume resource identified by the name. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/volumes/delete.json | | [gatewayCreateSample.js][gatewaycreatesample] | Creates a gateway resource with the specified name, description and properties. If a gateway resource with the same name exists, then it is updated with the specified description and properties. Use gateway resources to create a gateway for public connectivity for services within your application. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/gateways/create_update.json | | [gatewayDeleteSample.js][gatewaydeletesample] | Deletes the gateway resource identified by the name. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/gateways/delete.json | | [gatewayGetSample.js][gatewaygetsample] | Gets the information about the gateway resource with the given name. The information include the description and other properties of the gateway. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/gateways/get.json | | [gatewayListByResourceGroupSample.js][gatewaylistbyresourcegroupsample] | Gets the information about all gateway resources in a given resource group. The information include the description and other properties of the Gateway. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/gateways/list_byResourceGroup.json | | [gatewayListBySubscriptionSample.js][gatewaylistbysubscriptionsample] | Gets the information about all gateway resources in a given resource group. The information include the description and other properties of the gateway. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/gateways/list_bySubscriptionId.json | -| [getApplication.js][getapplication] | Gets the information about the application resource with the given name. The information include the description and other properties of the application. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/get.json | -| [getContainerLogs.js][getcontainerlogs] | Gets the logs for the container of the specified code package of the service replica. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/services/replicas/codepackages/get_logs.json | -| [getGateway.js][getgateway] | Gets the information about the gateway resource with the given name. The information include the description and other properties of the gateway. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/gateways/get.json | -| [getNetwork.js][getnetwork] | Gets the information about the network resource with the given name. The information include the description and other properties of the network. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/networks/get.json | -| [getSecret.js][getsecret] | Gets the information about the secret resource with the given name. The information include the description and other properties of the secret. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/get.json | -| [getSecretValue.js][getsecretvalue] | Get the information about the specified named secret value resources. The information does not include the actual value of the secret. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/values/get.json | -| [getService.js][getservice] | Gets the information about the service resource with the given name. The information include the description and other properties of the service. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/services/get.json | -| [getVolume.js][getvolume] | Gets the information about the volume resource with the given name. The information include the description and other properties of the volume. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/volumes/get.json | -| [listApplicationsByResourceGroup.js][listapplicationsbyresourcegroup] | Gets the information about all application resources in a given resource group. The information include the description and other properties of the Application. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/list_byResourceGroup.json | -| [listApplicationsBySubscriptionId.js][listapplicationsbysubscriptionid] | Gets the information about all application resources in a given resource group. The information include the description and other properties of the application. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/list_bySubscriptionId.json | -| [listGatewaysByResourceGroup.js][listgatewaysbyresourcegroup] | Gets the information about all gateway resources in a given resource group. The information include the description and other properties of the Gateway. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/gateways/list_byResourceGroup.json | -| [listGatewaysBySubscriptionId.js][listgatewaysbysubscriptionid] | Gets the information about all gateway resources in a given resource group. The information include the description and other properties of the gateway. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/gateways/list_bySubscriptionId.json | -| [listNetworksByResourceGroup.js][listnetworksbyresourcegroup] | Gets the information about all network resources in a given resource group. The information include the description and other properties of the Network. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/networks/list_byResourceGroup.json | -| [listNetworksBySubscriptionId.js][listnetworksbysubscriptionid] | Gets the information about all network resources in a given resource group. The information include the description and other properties of the network. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/networks/list_bySubscriptionId.json | -| [listSecretValue.js][listsecretvalue] | Lists the decrypted value of the specified named value of the secret resource. This is a privileged operation. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/values/list_value.json | -| [listSecretValues.js][listsecretvalues] | Gets information about all secret value resources of the specified secret resource. The information includes the names of the secret value resources, but not the actual values. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/values/list.json | -| [listSecretsByResourceGroup.js][listsecretsbyresourcegroup] | Gets the information about all secret resources in a given resource group. The information include the description and other properties of the Secret. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/list_byResourceGroup.json | -| [listSecretsBySubscriptionId.js][listsecretsbysubscriptionid] | Gets the information about all secret resources in a given resource group. The information include the description and other properties of the secret. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/list_bySubscriptionId.json | -| [listServices.js][listservices] | Gets the information about all services of an application resource. The information include the description and other properties of the Service. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/services/list.json | -| [listVolumesByResourceGroup.js][listvolumesbyresourcegroup] | Gets the information about all volume resources in a given resource group. The information include the description and other properties of the Volume. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/volumes/list_byResourceGroup.json | -| [listVolumesBySubscriptionId.js][listvolumesbysubscriptionid] | Gets the information about all volume resources in a given resource group. The information include the description and other properties of the volume. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/volumes/list_bySubscriptionId.json | | [networkCreateSample.js][networkcreatesample] | Creates a network resource with the specified name, description and properties. If a network resource with the same name exists, then it is updated with the specified description and properties. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/networks/create_update.json | | [networkDeleteSample.js][networkdeletesample] | Deletes the network resource identified by the name. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/networks/delete.json | | [networkGetSample.js][networkgetsample] | Gets the information about the network resource with the given name. The information include the description and other properties of the network. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/networks/get.json | | [networkListByResourceGroupSample.js][networklistbyresourcegroupsample] | Gets the information about all network resources in a given resource group. The information include the description and other properties of the Network. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/networks/list_byResourceGroup.json | | [networkListBySubscriptionSample.js][networklistbysubscriptionsample] | Gets the information about all network resources in a given resource group. The information include the description and other properties of the network. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/networks/list_bySubscriptionId.json | -| [replicaGet.js][replicaget] | Gets the information about the service replica with the given name. The information include the description and other properties of the service replica. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/services/replicas/get.json | -| [replicasGetAll.js][replicasgetall] | Gets the information about all replicas of a given service of an application. The information includes the runtime properties of the replica instance. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/services/replicas/list.json | | [secretCreateSample.js][secretcreatesample] | Creates a secret resource with the specified name, description and properties. If a secret resource with the same name exists, then it is updated with the specified description and properties. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/create_update.json | | [secretDeleteSample.js][secretdeletesample] | Deletes the secret resource identified by the name. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/delete.json | | [secretGetSample.js][secretgetsample] | Gets the information about the secret resource with the given name. The information include the description and other properties of the secret. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/get.json | @@ -119,51 +84,16 @@ Take a look at our [API Documentation][apiref] for more information about the AP [applicationlistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/applicationListByResourceGroupSample.js [applicationlistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/applicationListBySubscriptionSample.js [codepackagegetcontainerlogssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/codePackageGetContainerLogsSample.js -[createorupdateapplication]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/createOrUpdateApplication.js -[createorupdategateway]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/createOrUpdateGateway.js -[createorupdatenetwork]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/createOrUpdateNetwork.js -[createorupdatesecret]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/createOrUpdateSecret.js -[createorupdatevolume]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/createOrUpdateVolume.js -[createsecretvalue]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/createSecretValue.js -[deleteapplication]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/deleteApplication.js -[deletegateway]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/deleteGateway.js -[deletenetwork]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/deleteNetwork.js -[deletesecret]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/deleteSecret.js -[deletesecretvalue]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/deleteSecretValue.js -[deletevolume]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/deleteVolume.js [gatewaycreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/gatewayCreateSample.js [gatewaydeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/gatewayDeleteSample.js [gatewaygetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/gatewayGetSample.js [gatewaylistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/gatewayListByResourceGroupSample.js [gatewaylistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/gatewayListBySubscriptionSample.js -[getapplication]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/getApplication.js -[getcontainerlogs]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/getContainerLogs.js -[getgateway]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/getGateway.js -[getnetwork]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/getNetwork.js -[getsecret]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/getSecret.js -[getsecretvalue]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/getSecretValue.js -[getservice]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/getService.js -[getvolume]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/getVolume.js -[listapplicationsbyresourcegroup]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/listApplicationsByResourceGroup.js -[listapplicationsbysubscriptionid]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/listApplicationsBySubscriptionId.js -[listgatewaysbyresourcegroup]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/listGatewaysByResourceGroup.js -[listgatewaysbysubscriptionid]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/listGatewaysBySubscriptionId.js -[listnetworksbyresourcegroup]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/listNetworksByResourceGroup.js -[listnetworksbysubscriptionid]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/listNetworksBySubscriptionId.js -[listsecretvalue]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/listSecretValue.js -[listsecretvalues]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/listSecretValues.js -[listsecretsbyresourcegroup]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/listSecretsByResourceGroup.js -[listsecretsbysubscriptionid]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/listSecretsBySubscriptionId.js -[listservices]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/listServices.js -[listvolumesbyresourcegroup]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/listVolumesByResourceGroup.js -[listvolumesbysubscriptionid]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/listVolumesBySubscriptionId.js [networkcreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/networkCreateSample.js [networkdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/networkDeleteSample.js [networkgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/networkGetSample.js [networklistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/networkListByResourceGroupSample.js [networklistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/networkListBySubscriptionSample.js -[replicaget]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/replicaGet.js -[replicasgetall]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/replicasGetAll.js [secretcreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/secretCreateSample.js [secretdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/secretDeleteSample.js [secretgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/secretGetSample.js diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/createOrUpdateApplication.js b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/createOrUpdateApplication.js deleted file mode 100644 index 04640906bd84..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/createOrUpdateApplication.js +++ /dev/null @@ -1,61 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Creates an application resource with the specified name, description and properties. If an application resource with the same name exists, then it is updated with the specified description and properties. - * - * @summary Creates an application resource with the specified name, description and properties. If an application resource with the same name exists, then it is updated with the specified description and properties. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/create_update.json - */ -const { ServiceFabricMeshManagementClient } = require("@azure/arm-servicefabricmesh"); -const { DefaultAzureCredential } = require("@azure/identity"); - -async function createOrUpdateApplication() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const applicationResourceName = "sampleApplication"; - const applicationResourceDescription = { - description: "Service Fabric Mesh sample application.", - location: "EastUS", - services: [ - { - name: "helloWorldService", - description: "SeaBreeze Hello World Service.", - codePackages: [ - { - name: "helloWorldCode", - endpoints: [{ name: "helloWorldListener", port: 80 }], - image: "seabreeze/sbz-helloworld:1.0-alpine", - resources: { requests: { cpu: 1, memoryInGB: 1 } }, - }, - ], - networkRefs: [ - { - name: "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/sbz_demo/providers/Microsoft.ServiceFabricMesh/networks/sampleNetwork", - endpointRefs: [{ name: "helloWorldListener" }], - }, - ], - osType: "Linux", - replicaCount: 1, - }, - ], - tags: {}, - }; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient(credential, subscriptionId); - const result = await client.application.create( - resourceGroupName, - applicationResourceName, - applicationResourceDescription - ); - console.log(result); -} - -createOrUpdateApplication().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/createOrUpdateGateway.js b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/createOrUpdateGateway.js deleted file mode 100644 index b9208b8e0df8..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/createOrUpdateGateway.js +++ /dev/null @@ -1,77 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Creates a gateway resource with the specified name, description and properties. If a gateway resource with the same name exists, then it is updated with the specified description and properties. Use gateway resources to create a gateway for public connectivity for services within your application. - * - * @summary Creates a gateway resource with the specified name, description and properties. If a gateway resource with the same name exists, then it is updated with the specified description and properties. Use gateway resources to create a gateway for public connectivity for services within your application. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/gateways/create_update.json - */ -const { ServiceFabricMeshManagementClient } = require("@azure/arm-servicefabricmesh"); -const { DefaultAzureCredential } = require("@azure/identity"); - -async function createOrUpdateGateway() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const gatewayResourceName = "sampleGateway"; - const gatewayResourceDescription = { - description: "Service Fabric Mesh sample gateway.", - destinationNetwork: { name: "helloWorldNetwork" }, - location: "EastUS", - sourceNetwork: { name: "Open" }, - tags: {}, - tcp: [ - { - name: "web", - destination: { - applicationName: "helloWorldApp", - endpointName: "helloWorldListener", - serviceName: "helloWorldService", - }, - port: 80, - }, - ], - http: [ - { - name: "contosoWebsite", - hosts: [ - { - name: "contoso.com", - routes: [ - { - name: "index", - destination: { - applicationName: "httpHelloWorldApp", - endpointName: "indexHttpEndpoint", - serviceName: "indexService", - }, - match: { - path: { type: "prefix", rewrite: "/", value: "/index" }, - headers: [{ name: "accept", type: "exact", value: "application/json" }], - }, - }, - ], - }, - ], - port: 8081, - }, - ], - }; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient(credential, subscriptionId); - const result = await client.gateway.create( - resourceGroupName, - gatewayResourceName, - gatewayResourceDescription - ); - console.log(result); -} - -createOrUpdateGateway().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/createOrUpdateNetwork.js b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/createOrUpdateNetwork.js deleted file mode 100644 index 7b53d4367ed6..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/createOrUpdateNetwork.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Creates a network resource with the specified name, description and properties. If a network resource with the same name exists, then it is updated with the specified description and properties. - * - * @summary Creates a network resource with the specified name, description and properties. If a network resource with the same name exists, then it is updated with the specified description and properties. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/networks/create_update.json - */ -const { ServiceFabricMeshManagementClient } = require("@azure/arm-servicefabricmesh"); -const { DefaultAzureCredential } = require("@azure/identity"); - -async function createOrUpdateNetwork() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const networkResourceName = "sampleNetwork"; - const networkResourceDescription = { - location: "EastUS", - properties: { - description: "Service Fabric Mesh sample network.", - kind: "Local", - networkAddressPrefix: "2.0.0.0/16", - }, - tags: {}, - }; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient(credential, subscriptionId); - const result = await client.network.create( - resourceGroupName, - networkResourceName, - networkResourceDescription - ); - console.log(result); -} - -createOrUpdateNetwork().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/createOrUpdateSecret.js b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/createOrUpdateSecret.js deleted file mode 100644 index 7471adbde4f9..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/createOrUpdateSecret.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Creates a secret resource with the specified name, description and properties. If a secret resource with the same name exists, then it is updated with the specified description and properties. - * - * @summary Creates a secret resource with the specified name, description and properties. If a secret resource with the same name exists, then it is updated with the specified description and properties. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/create_update.json - */ -const { ServiceFabricMeshManagementClient } = require("@azure/arm-servicefabricmesh"); -const { DefaultAzureCredential } = require("@azure/identity"); - -async function createOrUpdateSecret() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const secretResourceName = "dbConnectionString"; - const secretResourceDescription = { - location: "EastUS", - properties: { - description: "Mongo DB connection string for backend database!", - contentType: "text/plain", - kind: "inlinedValue", - }, - tags: {}, - }; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient(credential, subscriptionId); - const result = await client.secret.create( - resourceGroupName, - secretResourceName, - secretResourceDescription - ); - console.log(result); -} - -createOrUpdateSecret().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/createOrUpdateVolume.js b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/createOrUpdateVolume.js deleted file mode 100644 index c62d67a88f24..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/createOrUpdateVolume.js +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Creates a volume resource with the specified name, description and properties. If a volume resource with the same name exists, then it is updated with the specified description and properties. - * - * @summary Creates a volume resource with the specified name, description and properties. If a volume resource with the same name exists, then it is updated with the specified description and properties. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/volumes/create_update.json - */ -const { ServiceFabricMeshManagementClient } = require("@azure/arm-servicefabricmesh"); -const { DefaultAzureCredential } = require("@azure/identity"); - -async function createOrUpdateVolume() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const volumeResourceName = "sampleVolume"; - const volumeResourceDescription = { - description: "Service Fabric Mesh sample volume.", - azureFileParameters: { - accountKey: "provide-account-key-here", - accountName: "sbzdemoaccount", - shareName: "sharel", - }, - location: "EastUS", - provider: "SFAzureFile", - tags: {}, - }; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient(credential, subscriptionId); - const result = await client.volume.create( - resourceGroupName, - volumeResourceName, - volumeResourceDescription - ); - console.log(result); -} - -createOrUpdateVolume().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/createSecretValue.js b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/createSecretValue.js deleted file mode 100644 index 5efddddbae09..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/createSecretValue.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Creates a new value of the specified secret resource. The name of the value is typically the version identifier. Once created the value cannot be changed. - * - * @summary Creates a new value of the specified secret resource. The name of the value is typically the version identifier. Once created the value cannot be changed. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/values/create.json - */ -const { ServiceFabricMeshManagementClient } = require("@azure/arm-servicefabricmesh"); -const { DefaultAzureCredential } = require("@azure/identity"); - -async function createSecretValue() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const secretResourceName = "dbConnectionString"; - const secretValueResourceName = "v1"; - const secretValueResourceDescription = { - name: "v1", - value: - "mongodb://contoso123:0Fc3IolnL12312asdfawejunASDF@asdfYXX2t8a97kghVcUzcDv98hawelufhawefafnoQRGwNj2nMPL1Y9qsIr9Srdw==@contoso123.documents.azure.com:10255/mydatabase?ssl=true", - }; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient(credential, subscriptionId); - const result = await client.secretValueOperations.create( - resourceGroupName, - secretResourceName, - secretValueResourceName, - secretValueResourceDescription - ); - console.log(result); -} - -createSecretValue().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/deleteApplication.js b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/deleteApplication.js deleted file mode 100644 index 0f0a7b3ef67e..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/deleteApplication.js +++ /dev/null @@ -1,30 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Deletes the application resource identified by the name. - * - * @summary Deletes the application resource identified by the name. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/delete.json - */ -const { ServiceFabricMeshManagementClient } = require("@azure/arm-servicefabricmesh"); -const { DefaultAzureCredential } = require("@azure/identity"); - -async function deleteApplication() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const applicationResourceName = "sampleApplication"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient(credential, subscriptionId); - const result = await client.application.delete(resourceGroupName, applicationResourceName); - console.log(result); -} - -deleteApplication().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/deleteGateway.js b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/deleteGateway.js deleted file mode 100644 index 84c8239571f8..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/deleteGateway.js +++ /dev/null @@ -1,30 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Deletes the gateway resource identified by the name. - * - * @summary Deletes the gateway resource identified by the name. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/gateways/delete.json - */ -const { ServiceFabricMeshManagementClient } = require("@azure/arm-servicefabricmesh"); -const { DefaultAzureCredential } = require("@azure/identity"); - -async function deleteGateway() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const gatewayResourceName = "sampleGateway"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient(credential, subscriptionId); - const result = await client.gateway.delete(resourceGroupName, gatewayResourceName); - console.log(result); -} - -deleteGateway().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/deleteNetwork.js b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/deleteNetwork.js deleted file mode 100644 index e2c177decb9e..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/deleteNetwork.js +++ /dev/null @@ -1,30 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Deletes the network resource identified by the name. - * - * @summary Deletes the network resource identified by the name. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/networks/delete.json - */ -const { ServiceFabricMeshManagementClient } = require("@azure/arm-servicefabricmesh"); -const { DefaultAzureCredential } = require("@azure/identity"); - -async function deleteNetwork() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const networkResourceName = "sampleNetwork"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient(credential, subscriptionId); - const result = await client.network.delete(resourceGroupName, networkResourceName); - console.log(result); -} - -deleteNetwork().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/deleteSecret.js b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/deleteSecret.js deleted file mode 100644 index d8f3059cf3f6..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/deleteSecret.js +++ /dev/null @@ -1,30 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Deletes the secret resource identified by the name. - * - * @summary Deletes the secret resource identified by the name. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/delete.json - */ -const { ServiceFabricMeshManagementClient } = require("@azure/arm-servicefabricmesh"); -const { DefaultAzureCredential } = require("@azure/identity"); - -async function deleteSecret() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const secretResourceName = "dbConnectionString"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient(credential, subscriptionId); - const result = await client.secret.delete(resourceGroupName, secretResourceName); - console.log(result); -} - -deleteSecret().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/deleteSecretValue.js b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/deleteSecretValue.js deleted file mode 100644 index 3b49a0156394..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/deleteSecretValue.js +++ /dev/null @@ -1,35 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Deletes the secret value resource identified by the name. The name of the resource is typically the version associated with that value. Deletion will fail if the specified value is in use. - * - * @summary Deletes the secret value resource identified by the name. The name of the resource is typically the version associated with that value. Deletion will fail if the specified value is in use. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/values/delete.json - */ -const { ServiceFabricMeshManagementClient } = require("@azure/arm-servicefabricmesh"); -const { DefaultAzureCredential } = require("@azure/identity"); - -async function deleteSecretValue() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const secretResourceName = "dbConnectionString"; - const secretValueResourceName = "v1"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient(credential, subscriptionId); - const result = await client.secretValueOperations.delete( - resourceGroupName, - secretResourceName, - secretValueResourceName - ); - console.log(result); -} - -deleteSecretValue().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/deleteVolume.js b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/deleteVolume.js deleted file mode 100644 index 8b63d7478f1c..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/deleteVolume.js +++ /dev/null @@ -1,30 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Deletes the volume resource identified by the name. - * - * @summary Deletes the volume resource identified by the name. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/volumes/delete.json - */ -const { ServiceFabricMeshManagementClient } = require("@azure/arm-servicefabricmesh"); -const { DefaultAzureCredential } = require("@azure/identity"); - -async function deleteVolume() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const volumeResourceName = "sampleVolume"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient(credential, subscriptionId); - const result = await client.volume.delete(resourceGroupName, volumeResourceName); - console.log(result); -} - -deleteVolume().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/getApplication.js b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/getApplication.js deleted file mode 100644 index 3a7b9adf825b..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/getApplication.js +++ /dev/null @@ -1,30 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the information about the application resource with the given name. The information include the description and other properties of the application. - * - * @summary Gets the information about the application resource with the given name. The information include the description and other properties of the application. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/get.json - */ -const { ServiceFabricMeshManagementClient } = require("@azure/arm-servicefabricmesh"); -const { DefaultAzureCredential } = require("@azure/identity"); - -async function getApplication() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const applicationResourceName = "sampleApplication"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient(credential, subscriptionId); - const result = await client.application.get(resourceGroupName, applicationResourceName); - console.log(result); -} - -getApplication().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/getContainerLogs.js b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/getContainerLogs.js deleted file mode 100644 index 3781d5dd75d9..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/getContainerLogs.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the logs for the container of the specified code package of the service replica. - * - * @summary Gets the logs for the container of the specified code package of the service replica. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/services/replicas/codepackages/get_logs.json - */ -const { ServiceFabricMeshManagementClient } = require("@azure/arm-servicefabricmesh"); -const { DefaultAzureCredential } = require("@azure/identity"); - -async function getContainerLogs() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const applicationResourceName = "sbzDocApp"; - const serviceResourceName = "sbzDocService"; - const replicaName = "0"; - const codePackageName = "sbzDocCode"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient(credential, subscriptionId); - const result = await client.codePackage.getContainerLogs( - resourceGroupName, - applicationResourceName, - serviceResourceName, - replicaName, - codePackageName - ); - console.log(result); -} - -getContainerLogs().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/getGateway.js b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/getGateway.js deleted file mode 100644 index 9cdb68397644..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/getGateway.js +++ /dev/null @@ -1,30 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the information about the gateway resource with the given name. The information include the description and other properties of the gateway. - * - * @summary Gets the information about the gateway resource with the given name. The information include the description and other properties of the gateway. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/gateways/get.json - */ -const { ServiceFabricMeshManagementClient } = require("@azure/arm-servicefabricmesh"); -const { DefaultAzureCredential } = require("@azure/identity"); - -async function getGateway() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const gatewayResourceName = "sampleGateway"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient(credential, subscriptionId); - const result = await client.gateway.get(resourceGroupName, gatewayResourceName); - console.log(result); -} - -getGateway().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/getNetwork.js b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/getNetwork.js deleted file mode 100644 index 9928bf9208be..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/getNetwork.js +++ /dev/null @@ -1,30 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the information about the network resource with the given name. The information include the description and other properties of the network. - * - * @summary Gets the information about the network resource with the given name. The information include the description and other properties of the network. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/networks/get.json - */ -const { ServiceFabricMeshManagementClient } = require("@azure/arm-servicefabricmesh"); -const { DefaultAzureCredential } = require("@azure/identity"); - -async function getNetwork() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const networkResourceName = "sampleNetwork"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient(credential, subscriptionId); - const result = await client.network.get(resourceGroupName, networkResourceName); - console.log(result); -} - -getNetwork().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/getSecret.js b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/getSecret.js deleted file mode 100644 index 37e032caba37..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/getSecret.js +++ /dev/null @@ -1,30 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the information about the secret resource with the given name. The information include the description and other properties of the secret. - * - * @summary Gets the information about the secret resource with the given name. The information include the description and other properties of the secret. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/get.json - */ -const { ServiceFabricMeshManagementClient } = require("@azure/arm-servicefabricmesh"); -const { DefaultAzureCredential } = require("@azure/identity"); - -async function getSecret() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const secretResourceName = "dbConnectionString"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient(credential, subscriptionId); - const result = await client.secret.get(resourceGroupName, secretResourceName); - console.log(result); -} - -getSecret().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/getSecretValue.js b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/getSecretValue.js deleted file mode 100644 index 78f6e68b4577..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/getSecretValue.js +++ /dev/null @@ -1,35 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Get the information about the specified named secret value resources. The information does not include the actual value of the secret. - * - * @summary Get the information about the specified named secret value resources. The information does not include the actual value of the secret. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/values/get.json - */ -const { ServiceFabricMeshManagementClient } = require("@azure/arm-servicefabricmesh"); -const { DefaultAzureCredential } = require("@azure/identity"); - -async function getSecretValue() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const secretResourceName = "dbConnectionString"; - const secretValueResourceName = "v1"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient(credential, subscriptionId); - const result = await client.secretValueOperations.get( - resourceGroupName, - secretResourceName, - secretValueResourceName - ); - console.log(result); -} - -getSecretValue().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/getService.js b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/getService.js deleted file mode 100644 index 89dae04d2bc6..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/getService.js +++ /dev/null @@ -1,35 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the information about the service resource with the given name. The information include the description and other properties of the service. - * - * @summary Gets the information about the service resource with the given name. The information include the description and other properties of the service. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/services/get.json - */ -const { ServiceFabricMeshManagementClient } = require("@azure/arm-servicefabricmesh"); -const { DefaultAzureCredential } = require("@azure/identity"); - -async function getService() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const applicationResourceName = "sampleApplication"; - const serviceResourceName = "helloWorldService"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient(credential, subscriptionId); - const result = await client.service.get( - resourceGroupName, - applicationResourceName, - serviceResourceName - ); - console.log(result); -} - -getService().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/getVolume.js b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/getVolume.js deleted file mode 100644 index 60d4e78ea0df..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/getVolume.js +++ /dev/null @@ -1,30 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the information about the volume resource with the given name. The information include the description and other properties of the volume. - * - * @summary Gets the information about the volume resource with the given name. The information include the description and other properties of the volume. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/volumes/get.json - */ -const { ServiceFabricMeshManagementClient } = require("@azure/arm-servicefabricmesh"); -const { DefaultAzureCredential } = require("@azure/identity"); - -async function getVolume() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const volumeResourceName = "sampleVolume"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient(credential, subscriptionId); - const result = await client.volume.get(resourceGroupName, volumeResourceName); - console.log(result); -} - -getVolume().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/listApplicationsByResourceGroup.js b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/listApplicationsByResourceGroup.js deleted file mode 100644 index 0b2e83496a87..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/listApplicationsByResourceGroup.js +++ /dev/null @@ -1,32 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the information about all application resources in a given resource group. The information include the description and other properties of the Application. - * - * @summary Gets the information about all application resources in a given resource group. The information include the description and other properties of the Application. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/list_byResourceGroup.json - */ -const { ServiceFabricMeshManagementClient } = require("@azure/arm-servicefabricmesh"); -const { DefaultAzureCredential } = require("@azure/identity"); - -async function listApplicationsByResourceGroup() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.application.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -listApplicationsByResourceGroup().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/listApplicationsBySubscriptionId.js b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/listApplicationsBySubscriptionId.js deleted file mode 100644 index db1ed7de8afb..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/listApplicationsBySubscriptionId.js +++ /dev/null @@ -1,31 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the information about all application resources in a given resource group. The information include the description and other properties of the application. - * - * @summary Gets the information about all application resources in a given resource group. The information include the description and other properties of the application. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/list_bySubscriptionId.json - */ -const { ServiceFabricMeshManagementClient } = require("@azure/arm-servicefabricmesh"); -const { DefaultAzureCredential } = require("@azure/identity"); - -async function listApplicationsBySubscriptionId() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.application.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -listApplicationsBySubscriptionId().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/listGatewaysByResourceGroup.js b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/listGatewaysByResourceGroup.js deleted file mode 100644 index 4f93c182da02..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/listGatewaysByResourceGroup.js +++ /dev/null @@ -1,32 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the information about all gateway resources in a given resource group. The information include the description and other properties of the Gateway. - * - * @summary Gets the information about all gateway resources in a given resource group. The information include the description and other properties of the Gateway. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/gateways/list_byResourceGroup.json - */ -const { ServiceFabricMeshManagementClient } = require("@azure/arm-servicefabricmesh"); -const { DefaultAzureCredential } = require("@azure/identity"); - -async function listGatewaysByResourceGroup() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.gateway.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -listGatewaysByResourceGroup().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/listGatewaysBySubscriptionId.js b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/listGatewaysBySubscriptionId.js deleted file mode 100644 index 1b01076a6f82..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/listGatewaysBySubscriptionId.js +++ /dev/null @@ -1,31 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the information about all gateway resources in a given resource group. The information include the description and other properties of the gateway. - * - * @summary Gets the information about all gateway resources in a given resource group. The information include the description and other properties of the gateway. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/gateways/list_bySubscriptionId.json - */ -const { ServiceFabricMeshManagementClient } = require("@azure/arm-servicefabricmesh"); -const { DefaultAzureCredential } = require("@azure/identity"); - -async function listGatewaysBySubscriptionId() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.gateway.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -listGatewaysBySubscriptionId().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/listNetworksByResourceGroup.js b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/listNetworksByResourceGroup.js deleted file mode 100644 index fac637d70f30..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/listNetworksByResourceGroup.js +++ /dev/null @@ -1,32 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the information about all network resources in a given resource group. The information include the description and other properties of the Network. - * - * @summary Gets the information about all network resources in a given resource group. The information include the description and other properties of the Network. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/networks/list_byResourceGroup.json - */ -const { ServiceFabricMeshManagementClient } = require("@azure/arm-servicefabricmesh"); -const { DefaultAzureCredential } = require("@azure/identity"); - -async function listNetworksByResourceGroup() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.network.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -listNetworksByResourceGroup().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/listNetworksBySubscriptionId.js b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/listNetworksBySubscriptionId.js deleted file mode 100644 index 6b39172252a7..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/listNetworksBySubscriptionId.js +++ /dev/null @@ -1,31 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the information about all network resources in a given resource group. The information include the description and other properties of the network. - * - * @summary Gets the information about all network resources in a given resource group. The information include the description and other properties of the network. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/networks/list_bySubscriptionId.json - */ -const { ServiceFabricMeshManagementClient } = require("@azure/arm-servicefabricmesh"); -const { DefaultAzureCredential } = require("@azure/identity"); - -async function listNetworksBySubscriptionId() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.network.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -listNetworksBySubscriptionId().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/listSecretValue.js b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/listSecretValue.js deleted file mode 100644 index 7412d84a2997..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/listSecretValue.js +++ /dev/null @@ -1,35 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Lists the decrypted value of the specified named value of the secret resource. This is a privileged operation. - * - * @summary Lists the decrypted value of the specified named value of the secret resource. This is a privileged operation. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/values/list_value.json - */ -const { ServiceFabricMeshManagementClient } = require("@azure/arm-servicefabricmesh"); -const { DefaultAzureCredential } = require("@azure/identity"); - -async function listSecretValue() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const secretResourceName = "dbConnectionString"; - const secretValueResourceName = "v1"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient(credential, subscriptionId); - const result = await client.secretValueOperations.listValue( - resourceGroupName, - secretResourceName, - secretValueResourceName - ); - console.log(result); -} - -listSecretValue().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/listSecretValues.js b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/listSecretValues.js deleted file mode 100644 index ca911830f1c4..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/listSecretValues.js +++ /dev/null @@ -1,33 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets information about all secret value resources of the specified secret resource. The information includes the names of the secret value resources, but not the actual values. - * - * @summary Gets information about all secret value resources of the specified secret resource. The information includes the names of the secret value resources, but not the actual values. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/values/list.json - */ -const { ServiceFabricMeshManagementClient } = require("@azure/arm-servicefabricmesh"); -const { DefaultAzureCredential } = require("@azure/identity"); - -async function listSecretValues() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const secretResourceName = "dbConnectionString"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.secretValueOperations.list(resourceGroupName, secretResourceName)) { - resArray.push(item); - } - console.log(resArray); -} - -listSecretValues().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/listSecretsByResourceGroup.js b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/listSecretsByResourceGroup.js deleted file mode 100644 index 4d497549c779..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/listSecretsByResourceGroup.js +++ /dev/null @@ -1,32 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the information about all secret resources in a given resource group. The information include the description and other properties of the Secret. - * - * @summary Gets the information about all secret resources in a given resource group. The information include the description and other properties of the Secret. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/list_byResourceGroup.json - */ -const { ServiceFabricMeshManagementClient } = require("@azure/arm-servicefabricmesh"); -const { DefaultAzureCredential } = require("@azure/identity"); - -async function listSecretsByResourceGroup() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.secret.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -listSecretsByResourceGroup().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/listSecretsBySubscriptionId.js b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/listSecretsBySubscriptionId.js deleted file mode 100644 index b883f16ececf..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/listSecretsBySubscriptionId.js +++ /dev/null @@ -1,31 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the information about all secret resources in a given resource group. The information include the description and other properties of the secret. - * - * @summary Gets the information about all secret resources in a given resource group. The information include the description and other properties of the secret. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/list_bySubscriptionId.json - */ -const { ServiceFabricMeshManagementClient } = require("@azure/arm-servicefabricmesh"); -const { DefaultAzureCredential } = require("@azure/identity"); - -async function listSecretsBySubscriptionId() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.secret.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -listSecretsBySubscriptionId().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/listServices.js b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/listServices.js deleted file mode 100644 index 38c024dff374..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/listServices.js +++ /dev/null @@ -1,33 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the information about all services of an application resource. The information include the description and other properties of the Service. - * - * @summary Gets the information about all services of an application resource. The information include the description and other properties of the Service. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/services/list.json - */ -const { ServiceFabricMeshManagementClient } = require("@azure/arm-servicefabricmesh"); -const { DefaultAzureCredential } = require("@azure/identity"); - -async function listServices() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const applicationResourceName = "sampleApplication"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.service.list(resourceGroupName, applicationResourceName)) { - resArray.push(item); - } - console.log(resArray); -} - -listServices().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/listVolumesByResourceGroup.js b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/listVolumesByResourceGroup.js deleted file mode 100644 index bc72e34e70a8..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/listVolumesByResourceGroup.js +++ /dev/null @@ -1,32 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the information about all volume resources in a given resource group. The information include the description and other properties of the Volume. - * - * @summary Gets the information about all volume resources in a given resource group. The information include the description and other properties of the Volume. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/volumes/list_byResourceGroup.json - */ -const { ServiceFabricMeshManagementClient } = require("@azure/arm-servicefabricmesh"); -const { DefaultAzureCredential } = require("@azure/identity"); - -async function listVolumesByResourceGroup() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.volume.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -listVolumesByResourceGroup().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/listVolumesBySubscriptionId.js b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/listVolumesBySubscriptionId.js deleted file mode 100644 index f32d3bd73294..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/listVolumesBySubscriptionId.js +++ /dev/null @@ -1,31 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the information about all volume resources in a given resource group. The information include the description and other properties of the volume. - * - * @summary Gets the information about all volume resources in a given resource group. The information include the description and other properties of the volume. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/volumes/list_bySubscriptionId.json - */ -const { ServiceFabricMeshManagementClient } = require("@azure/arm-servicefabricmesh"); -const { DefaultAzureCredential } = require("@azure/identity"); - -async function listVolumesBySubscriptionId() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.volume.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -listVolumesBySubscriptionId().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/replicaGet.js b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/replicaGet.js deleted file mode 100644 index a699ace7dd31..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/replicaGet.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the information about the service replica with the given name. The information include the description and other properties of the service replica. - * - * @summary Gets the information about the service replica with the given name. The information include the description and other properties of the service replica. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/services/replicas/get.json - */ -const { ServiceFabricMeshManagementClient } = require("@azure/arm-servicefabricmesh"); -const { DefaultAzureCredential } = require("@azure/identity"); - -async function replicaGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const applicationResourceName = "helloWorldApp"; - const serviceResourceName = "helloWorldService"; - const replicaName = "0"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient(credential, subscriptionId); - const result = await client.serviceReplica.get( - resourceGroupName, - applicationResourceName, - serviceResourceName, - replicaName - ); - console.log(result); -} - -replicaGet().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/replicasGetAll.js b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/replicasGetAll.js deleted file mode 100644 index 07216fbca65d..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/replicasGetAll.js +++ /dev/null @@ -1,38 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the information about all replicas of a given service of an application. The information includes the runtime properties of the replica instance. - * - * @summary Gets the information about all replicas of a given service of an application. The information includes the runtime properties of the replica instance. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/services/replicas/list.json - */ -const { ServiceFabricMeshManagementClient } = require("@azure/arm-servicefabricmesh"); -const { DefaultAzureCredential } = require("@azure/identity"); - -async function replicasGetAll() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const applicationResourceName = "sampleApplication"; - const serviceResourceName = "helloWorldService"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.serviceReplica.list( - resourceGroupName, - applicationResourceName, - serviceResourceName - )) { - resArray.push(item); - } - console.log(resArray); -} - -replicasGetAll().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/secretValueCreateSample.js b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/secretValueCreateSample.js index 6118f428db1d..f0b9bdf23a9c 100644 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/secretValueCreateSample.js +++ b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/javascript/secretValueCreateSample.js @@ -24,6 +24,7 @@ async function createSecretValue() { const secretValueResourceName = "v1"; const secretValueResourceDescription = { name: "v1", + location: "West US", value: "mongodb://contoso123:0Fc3IolnL12312asdfawejunASDF@asdfYXX2t8a97kghVcUzcDv98hawelufhawefafnoQRGwNj2nMPL1Y9qsIr9Srdw==@contoso123.documents.azure.com:10255/mydatabase?ssl=true", }; diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/README.md b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/README.md index 5d5470f92eea..bb74ee5ba0e5 100644 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/README.md +++ b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/README.md @@ -10,51 +10,16 @@ These sample programs show how to use the TypeScript client libraries for in som | [applicationListByResourceGroupSample.ts][applicationlistbyresourcegroupsample] | Gets the information about all application resources in a given resource group. The information include the description and other properties of the Application. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/list_byResourceGroup.json | | [applicationListBySubscriptionSample.ts][applicationlistbysubscriptionsample] | Gets the information about all application resources in a given resource group. The information include the description and other properties of the application. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/list_bySubscriptionId.json | | [codePackageGetContainerLogsSample.ts][codepackagegetcontainerlogssample] | Gets the logs for the container of the specified code package of the service replica. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/services/replicas/codepackages/get_logs.json | -| [createOrUpdateApplication.ts][createorupdateapplication] | Creates an application resource with the specified name, description and properties. If an application resource with the same name exists, then it is updated with the specified description and properties. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/create_update.json | -| [createOrUpdateGateway.ts][createorupdategateway] | Creates a gateway resource with the specified name, description and properties. If a gateway resource with the same name exists, then it is updated with the specified description and properties. Use gateway resources to create a gateway for public connectivity for services within your application. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/gateways/create_update.json | -| [createOrUpdateNetwork.ts][createorupdatenetwork] | Creates a network resource with the specified name, description and properties. If a network resource with the same name exists, then it is updated with the specified description and properties. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/networks/create_update.json | -| [createOrUpdateSecret.ts][createorupdatesecret] | Creates a secret resource with the specified name, description and properties. If a secret resource with the same name exists, then it is updated with the specified description and properties. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/create_update.json | -| [createOrUpdateVolume.ts][createorupdatevolume] | Creates a volume resource with the specified name, description and properties. If a volume resource with the same name exists, then it is updated with the specified description and properties. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/volumes/create_update.json | -| [createSecretValue.ts][createsecretvalue] | Creates a new value of the specified secret resource. The name of the value is typically the version identifier. Once created the value cannot be changed. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/values/create.json | -| [deleteApplication.ts][deleteapplication] | Deletes the application resource identified by the name. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/delete.json | -| [deleteGateway.ts][deletegateway] | Deletes the gateway resource identified by the name. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/gateways/delete.json | -| [deleteNetwork.ts][deletenetwork] | Deletes the network resource identified by the name. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/networks/delete.json | -| [deleteSecret.ts][deletesecret] | Deletes the secret resource identified by the name. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/delete.json | -| [deleteSecretValue.ts][deletesecretvalue] | Deletes the secret value resource identified by the name. The name of the resource is typically the version associated with that value. Deletion will fail if the specified value is in use. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/values/delete.json | -| [deleteVolume.ts][deletevolume] | Deletes the volume resource identified by the name. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/volumes/delete.json | | [gatewayCreateSample.ts][gatewaycreatesample] | Creates a gateway resource with the specified name, description and properties. If a gateway resource with the same name exists, then it is updated with the specified description and properties. Use gateway resources to create a gateway for public connectivity for services within your application. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/gateways/create_update.json | | [gatewayDeleteSample.ts][gatewaydeletesample] | Deletes the gateway resource identified by the name. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/gateways/delete.json | | [gatewayGetSample.ts][gatewaygetsample] | Gets the information about the gateway resource with the given name. The information include the description and other properties of the gateway. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/gateways/get.json | | [gatewayListByResourceGroupSample.ts][gatewaylistbyresourcegroupsample] | Gets the information about all gateway resources in a given resource group. The information include the description and other properties of the Gateway. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/gateways/list_byResourceGroup.json | | [gatewayListBySubscriptionSample.ts][gatewaylistbysubscriptionsample] | Gets the information about all gateway resources in a given resource group. The information include the description and other properties of the gateway. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/gateways/list_bySubscriptionId.json | -| [getApplication.ts][getapplication] | Gets the information about the application resource with the given name. The information include the description and other properties of the application. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/get.json | -| [getContainerLogs.ts][getcontainerlogs] | Gets the logs for the container of the specified code package of the service replica. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/services/replicas/codepackages/get_logs.json | -| [getGateway.ts][getgateway] | Gets the information about the gateway resource with the given name. The information include the description and other properties of the gateway. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/gateways/get.json | -| [getNetwork.ts][getnetwork] | Gets the information about the network resource with the given name. The information include the description and other properties of the network. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/networks/get.json | -| [getSecret.ts][getsecret] | Gets the information about the secret resource with the given name. The information include the description and other properties of the secret. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/get.json | -| [getSecretValue.ts][getsecretvalue] | Get the information about the specified named secret value resources. The information does not include the actual value of the secret. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/values/get.json | -| [getService.ts][getservice] | Gets the information about the service resource with the given name. The information include the description and other properties of the service. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/services/get.json | -| [getVolume.ts][getvolume] | Gets the information about the volume resource with the given name. The information include the description and other properties of the volume. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/volumes/get.json | -| [listApplicationsByResourceGroup.ts][listapplicationsbyresourcegroup] | Gets the information about all application resources in a given resource group. The information include the description and other properties of the Application. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/list_byResourceGroup.json | -| [listApplicationsBySubscriptionId.ts][listapplicationsbysubscriptionid] | Gets the information about all application resources in a given resource group. The information include the description and other properties of the application. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/list_bySubscriptionId.json | -| [listGatewaysByResourceGroup.ts][listgatewaysbyresourcegroup] | Gets the information about all gateway resources in a given resource group. The information include the description and other properties of the Gateway. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/gateways/list_byResourceGroup.json | -| [listGatewaysBySubscriptionId.ts][listgatewaysbysubscriptionid] | Gets the information about all gateway resources in a given resource group. The information include the description and other properties of the gateway. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/gateways/list_bySubscriptionId.json | -| [listNetworksByResourceGroup.ts][listnetworksbyresourcegroup] | Gets the information about all network resources in a given resource group. The information include the description and other properties of the Network. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/networks/list_byResourceGroup.json | -| [listNetworksBySubscriptionId.ts][listnetworksbysubscriptionid] | Gets the information about all network resources in a given resource group. The information include the description and other properties of the network. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/networks/list_bySubscriptionId.json | -| [listSecretValue.ts][listsecretvalue] | Lists the decrypted value of the specified named value of the secret resource. This is a privileged operation. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/values/list_value.json | -| [listSecretValues.ts][listsecretvalues] | Gets information about all secret value resources of the specified secret resource. The information includes the names of the secret value resources, but not the actual values. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/values/list.json | -| [listSecretsByResourceGroup.ts][listsecretsbyresourcegroup] | Gets the information about all secret resources in a given resource group. The information include the description and other properties of the Secret. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/list_byResourceGroup.json | -| [listSecretsBySubscriptionId.ts][listsecretsbysubscriptionid] | Gets the information about all secret resources in a given resource group. The information include the description and other properties of the secret. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/list_bySubscriptionId.json | -| [listServices.ts][listservices] | Gets the information about all services of an application resource. The information include the description and other properties of the Service. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/services/list.json | -| [listVolumesByResourceGroup.ts][listvolumesbyresourcegroup] | Gets the information about all volume resources in a given resource group. The information include the description and other properties of the Volume. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/volumes/list_byResourceGroup.json | -| [listVolumesBySubscriptionId.ts][listvolumesbysubscriptionid] | Gets the information about all volume resources in a given resource group. The information include the description and other properties of the volume. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/volumes/list_bySubscriptionId.json | | [networkCreateSample.ts][networkcreatesample] | Creates a network resource with the specified name, description and properties. If a network resource with the same name exists, then it is updated with the specified description and properties. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/networks/create_update.json | | [networkDeleteSample.ts][networkdeletesample] | Deletes the network resource identified by the name. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/networks/delete.json | | [networkGetSample.ts][networkgetsample] | Gets the information about the network resource with the given name. The information include the description and other properties of the network. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/networks/get.json | | [networkListByResourceGroupSample.ts][networklistbyresourcegroupsample] | Gets the information about all network resources in a given resource group. The information include the description and other properties of the Network. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/networks/list_byResourceGroup.json | | [networkListBySubscriptionSample.ts][networklistbysubscriptionsample] | Gets the information about all network resources in a given resource group. The information include the description and other properties of the network. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/networks/list_bySubscriptionId.json | -| [replicaGet.ts][replicaget] | Gets the information about the service replica with the given name. The information include the description and other properties of the service replica. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/services/replicas/get.json | -| [replicasGetAll.ts][replicasgetall] | Gets the information about all replicas of a given service of an application. The information includes the runtime properties of the replica instance. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/services/replicas/list.json | | [secretCreateSample.ts][secretcreatesample] | Creates a secret resource with the specified name, description and properties. If a secret resource with the same name exists, then it is updated with the specified description and properties. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/create_update.json | | [secretDeleteSample.ts][secretdeletesample] | Deletes the secret resource identified by the name. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/delete.json | | [secretGetSample.ts][secretgetsample] | Gets the information about the secret resource with the given name. The information include the description and other properties of the secret. x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/get.json | @@ -131,51 +96,16 @@ Take a look at our [API Documentation][apiref] for more information about the AP [applicationlistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/applicationListByResourceGroupSample.ts [applicationlistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/applicationListBySubscriptionSample.ts [codepackagegetcontainerlogssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/codePackageGetContainerLogsSample.ts -[createorupdateapplication]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/createOrUpdateApplication.ts -[createorupdategateway]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/createOrUpdateGateway.ts -[createorupdatenetwork]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/createOrUpdateNetwork.ts -[createorupdatesecret]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/createOrUpdateSecret.ts -[createorupdatevolume]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/createOrUpdateVolume.ts -[createsecretvalue]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/createSecretValue.ts -[deleteapplication]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/deleteApplication.ts -[deletegateway]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/deleteGateway.ts -[deletenetwork]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/deleteNetwork.ts -[deletesecret]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/deleteSecret.ts -[deletesecretvalue]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/deleteSecretValue.ts -[deletevolume]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/deleteVolume.ts [gatewaycreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/gatewayCreateSample.ts [gatewaydeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/gatewayDeleteSample.ts [gatewaygetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/gatewayGetSample.ts [gatewaylistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/gatewayListByResourceGroupSample.ts [gatewaylistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/gatewayListBySubscriptionSample.ts -[getapplication]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/getApplication.ts -[getcontainerlogs]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/getContainerLogs.ts -[getgateway]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/getGateway.ts -[getnetwork]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/getNetwork.ts -[getsecret]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/getSecret.ts -[getsecretvalue]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/getSecretValue.ts -[getservice]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/getService.ts -[getvolume]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/getVolume.ts -[listapplicationsbyresourcegroup]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/listApplicationsByResourceGroup.ts -[listapplicationsbysubscriptionid]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/listApplicationsBySubscriptionId.ts -[listgatewaysbyresourcegroup]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/listGatewaysByResourceGroup.ts -[listgatewaysbysubscriptionid]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/listGatewaysBySubscriptionId.ts -[listnetworksbyresourcegroup]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/listNetworksByResourceGroup.ts -[listnetworksbysubscriptionid]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/listNetworksBySubscriptionId.ts -[listsecretvalue]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/listSecretValue.ts -[listsecretvalues]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/listSecretValues.ts -[listsecretsbyresourcegroup]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/listSecretsByResourceGroup.ts -[listsecretsbysubscriptionid]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/listSecretsBySubscriptionId.ts -[listservices]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/listServices.ts -[listvolumesbyresourcegroup]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/listVolumesByResourceGroup.ts -[listvolumesbysubscriptionid]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/listVolumesBySubscriptionId.ts [networkcreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/networkCreateSample.ts [networkdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/networkDeleteSample.ts [networkgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/networkGetSample.ts [networklistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/networkListByResourceGroupSample.ts [networklistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/networkListBySubscriptionSample.ts -[replicaget]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/replicaGet.ts -[replicasgetall]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/replicasGetAll.ts [secretcreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/secretCreateSample.ts [secretdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/secretDeleteSample.ts [secretgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/secretGetSample.ts diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/createOrUpdateApplication.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/createOrUpdateApplication.ts deleted file mode 100644 index a5b75fe33068..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/createOrUpdateApplication.ts +++ /dev/null @@ -1,68 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Creates an application resource with the specified name, description and properties. If an application resource with the same name exists, then it is updated with the specified description and properties. - * - * @summary Creates an application resource with the specified name, description and properties. If an application resource with the same name exists, then it is updated with the specified description and properties. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/create_update.json - */ -import { - ApplicationResourceDescription, - ServiceFabricMeshManagementClient -} from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function createOrUpdateApplication() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const applicationResourceName = "sampleApplication"; - const applicationResourceDescription: ApplicationResourceDescription = { - description: "Service Fabric Mesh sample application.", - location: "EastUS", - services: [ - { - name: "helloWorldService", - description: "SeaBreeze Hello World Service.", - codePackages: [ - { - name: "helloWorldCode", - endpoints: [{ name: "helloWorldListener", port: 80 }], - image: "seabreeze/sbz-helloworld:1.0-alpine", - resources: { requests: { cpu: 1, memoryInGB: 1 } } - } - ], - networkRefs: [ - { - name: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/sbz_demo/providers/Microsoft.ServiceFabricMesh/networks/sampleNetwork", - endpointRefs: [{ name: "helloWorldListener" }] - } - ], - osType: "Linux", - replicaCount: 1 - } - ], - tags: {} - }; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const result = await client.application.create( - resourceGroupName, - applicationResourceName, - applicationResourceDescription - ); - console.log(result); -} - -createOrUpdateApplication().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/createOrUpdateGateway.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/createOrUpdateGateway.ts deleted file mode 100644 index f5e0828ef879..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/createOrUpdateGateway.ts +++ /dev/null @@ -1,85 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Creates a gateway resource with the specified name, description and properties. If a gateway resource with the same name exists, then it is updated with the specified description and properties. Use gateway resources to create a gateway for public connectivity for services within your application. - * - * @summary Creates a gateway resource with the specified name, description and properties. If a gateway resource with the same name exists, then it is updated with the specified description and properties. Use gateway resources to create a gateway for public connectivity for services within your application. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/gateways/create_update.json - */ -import { - GatewayResourceDescription, - ServiceFabricMeshManagementClient -} from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function createOrUpdateGateway() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const gatewayResourceName = "sampleGateway"; - const gatewayResourceDescription: GatewayResourceDescription = { - description: "Service Fabric Mesh sample gateway.", - destinationNetwork: { name: "helloWorldNetwork" }, - location: "EastUS", - sourceNetwork: { name: "Open" }, - tags: {}, - tcp: [ - { - name: "web", - destination: { - applicationName: "helloWorldApp", - endpointName: "helloWorldListener", - serviceName: "helloWorldService" - }, - port: 80 - } - ], - http: [ - { - name: "contosoWebsite", - hosts: [ - { - name: "contoso.com", - routes: [ - { - name: "index", - destination: { - applicationName: "httpHelloWorldApp", - endpointName: "indexHttpEndpoint", - serviceName: "indexService" - }, - match: { - path: { type: "prefix", rewrite: "/", value: "/index" }, - headers: [ - { name: "accept", type: "exact", value: "application/json" } - ] - } - } - ] - } - ], - port: 8081 - } - ] - }; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const result = await client.gateway.create( - resourceGroupName, - gatewayResourceName, - gatewayResourceDescription - ); - console.log(result); -} - -createOrUpdateGateway().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/createOrUpdateNetwork.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/createOrUpdateNetwork.ts deleted file mode 100644 index 613fab9f8c7c..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/createOrUpdateNetwork.ts +++ /dev/null @@ -1,49 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Creates a network resource with the specified name, description and properties. If a network resource with the same name exists, then it is updated with the specified description and properties. - * - * @summary Creates a network resource with the specified name, description and properties. If a network resource with the same name exists, then it is updated with the specified description and properties. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/networks/create_update.json - */ -import { - NetworkResourceDescription, - ServiceFabricMeshManagementClient -} from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function createOrUpdateNetwork() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const networkResourceName = "sampleNetwork"; - const networkResourceDescription: NetworkResourceDescription = { - location: "EastUS", - properties: { - description: "Service Fabric Mesh sample network.", - kind: "Local", - networkAddressPrefix: "2.0.0.0/16" - }, - tags: {} - }; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const result = await client.network.create( - resourceGroupName, - networkResourceName, - networkResourceDescription - ); - console.log(result); -} - -createOrUpdateNetwork().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/createOrUpdateSecret.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/createOrUpdateSecret.ts deleted file mode 100644 index fb8eca267e96..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/createOrUpdateSecret.ts +++ /dev/null @@ -1,49 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Creates a secret resource with the specified name, description and properties. If a secret resource with the same name exists, then it is updated with the specified description and properties. - * - * @summary Creates a secret resource with the specified name, description and properties. If a secret resource with the same name exists, then it is updated with the specified description and properties. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/create_update.json - */ -import { - SecretResourceDescription, - ServiceFabricMeshManagementClient -} from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function createOrUpdateSecret() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const secretResourceName = "dbConnectionString"; - const secretResourceDescription: SecretResourceDescription = { - location: "EastUS", - properties: { - description: "Mongo DB connection string for backend database!", - contentType: "text/plain", - kind: "inlinedValue" - }, - tags: {} - }; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const result = await client.secret.create( - resourceGroupName, - secretResourceName, - secretResourceDescription - ); - console.log(result); -} - -createOrUpdateSecret().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/createOrUpdateVolume.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/createOrUpdateVolume.ts deleted file mode 100644 index e51de0698973..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/createOrUpdateVolume.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Creates a volume resource with the specified name, description and properties. If a volume resource with the same name exists, then it is updated with the specified description and properties. - * - * @summary Creates a volume resource with the specified name, description and properties. If a volume resource with the same name exists, then it is updated with the specified description and properties. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/volumes/create_update.json - */ -import { - VolumeResourceDescription, - ServiceFabricMeshManagementClient -} from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function createOrUpdateVolume() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const volumeResourceName = "sampleVolume"; - const volumeResourceDescription: VolumeResourceDescription = { - description: "Service Fabric Mesh sample volume.", - azureFileParameters: { - accountKey: "provide-account-key-here", - accountName: "sbzdemoaccount", - shareName: "sharel" - }, - location: "EastUS", - provider: "SFAzureFile", - tags: {} - }; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const result = await client.volume.create( - resourceGroupName, - volumeResourceName, - volumeResourceDescription - ); - console.log(result); -} - -createOrUpdateVolume().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/createSecretValue.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/createSecretValue.ts deleted file mode 100644 index 7011084654d0..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/createSecretValue.ts +++ /dev/null @@ -1,47 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Creates a new value of the specified secret resource. The name of the value is typically the version identifier. Once created the value cannot be changed. - * - * @summary Creates a new value of the specified secret resource. The name of the value is typically the version identifier. Once created the value cannot be changed. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/values/create.json - */ -import { - SecretValueResourceDescription, - ServiceFabricMeshManagementClient -} from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function createSecretValue() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const secretResourceName = "dbConnectionString"; - const secretValueResourceName = "v1"; - const secretValueResourceDescription: SecretValueResourceDescription = { - name: "v1", - value: - "mongodb://contoso123:0Fc3IolnL12312asdfawejunASDF@asdfYXX2t8a97kghVcUzcDv98hawelufhawefafnoQRGwNj2nMPL1Y9qsIr9Srdw==@contoso123.documents.azure.com:10255/mydatabase?ssl=true" - }; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const result = await client.secretValueOperations.create( - resourceGroupName, - secretResourceName, - secretValueResourceName, - secretValueResourceDescription - ); - console.log(result); -} - -createSecretValue().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/deleteApplication.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/deleteApplication.ts deleted file mode 100644 index 688c9ebc6c27..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/deleteApplication.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Deletes the application resource identified by the name. - * - * @summary Deletes the application resource identified by the name. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/delete.json - */ -import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function deleteApplication() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const applicationResourceName = "sampleApplication"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const result = await client.application.delete( - resourceGroupName, - applicationResourceName - ); - console.log(result); -} - -deleteApplication().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/deleteGateway.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/deleteGateway.ts deleted file mode 100644 index 7240421311e5..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/deleteGateway.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Deletes the gateway resource identified by the name. - * - * @summary Deletes the gateway resource identified by the name. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/gateways/delete.json - */ -import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function deleteGateway() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const gatewayResourceName = "sampleGateway"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const result = await client.gateway.delete( - resourceGroupName, - gatewayResourceName - ); - console.log(result); -} - -deleteGateway().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/deleteNetwork.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/deleteNetwork.ts deleted file mode 100644 index 0845786e5ccd..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/deleteNetwork.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Deletes the network resource identified by the name. - * - * @summary Deletes the network resource identified by the name. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/networks/delete.json - */ -import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function deleteNetwork() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const networkResourceName = "sampleNetwork"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const result = await client.network.delete( - resourceGroupName, - networkResourceName - ); - console.log(result); -} - -deleteNetwork().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/deleteSecret.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/deleteSecret.ts deleted file mode 100644 index 6574bd3f7f25..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/deleteSecret.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Deletes the secret resource identified by the name. - * - * @summary Deletes the secret resource identified by the name. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/delete.json - */ -import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function deleteSecret() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const secretResourceName = "dbConnectionString"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const result = await client.secret.delete( - resourceGroupName, - secretResourceName - ); - console.log(result); -} - -deleteSecret().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/deleteSecretValue.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/deleteSecretValue.ts deleted file mode 100644 index bd9303151322..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/deleteSecretValue.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Deletes the secret value resource identified by the name. The name of the resource is typically the version associated with that value. Deletion will fail if the specified value is in use. - * - * @summary Deletes the secret value resource identified by the name. The name of the resource is typically the version associated with that value. Deletion will fail if the specified value is in use. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/values/delete.json - */ -import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function deleteSecretValue() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const secretResourceName = "dbConnectionString"; - const secretValueResourceName = "v1"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const result = await client.secretValueOperations.delete( - resourceGroupName, - secretResourceName, - secretValueResourceName - ); - console.log(result); -} - -deleteSecretValue().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/deleteVolume.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/deleteVolume.ts deleted file mode 100644 index 2166333850f8..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/deleteVolume.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Deletes the volume resource identified by the name. - * - * @summary Deletes the volume resource identified by the name. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/volumes/delete.json - */ -import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function deleteVolume() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const volumeResourceName = "sampleVolume"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const result = await client.volume.delete( - resourceGroupName, - volumeResourceName - ); - console.log(result); -} - -deleteVolume().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/getApplication.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/getApplication.ts deleted file mode 100644 index 74c1dc3f86d5..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/getApplication.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the information about the application resource with the given name. The information include the description and other properties of the application. - * - * @summary Gets the information about the application resource with the given name. The information include the description and other properties of the application. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/get.json - */ -import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function getApplication() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const applicationResourceName = "sampleApplication"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const result = await client.application.get( - resourceGroupName, - applicationResourceName - ); - console.log(result); -} - -getApplication().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/getContainerLogs.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/getContainerLogs.ts deleted file mode 100644 index 84301c978eb4..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/getContainerLogs.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the logs for the container of the specified code package of the service replica. - * - * @summary Gets the logs for the container of the specified code package of the service replica. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/services/replicas/codepackages/get_logs.json - */ -import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function getContainerLogs() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const applicationResourceName = "sbzDocApp"; - const serviceResourceName = "sbzDocService"; - const replicaName = "0"; - const codePackageName = "sbzDocCode"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const result = await client.codePackage.getContainerLogs( - resourceGroupName, - applicationResourceName, - serviceResourceName, - replicaName, - codePackageName - ); - console.log(result); -} - -getContainerLogs().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/getGateway.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/getGateway.ts deleted file mode 100644 index 0cd7d698cd56..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/getGateway.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the information about the gateway resource with the given name. The information include the description and other properties of the gateway. - * - * @summary Gets the information about the gateway resource with the given name. The information include the description and other properties of the gateway. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/gateways/get.json - */ -import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function getGateway() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const gatewayResourceName = "sampleGateway"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const result = await client.gateway.get( - resourceGroupName, - gatewayResourceName - ); - console.log(result); -} - -getGateway().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/getNetwork.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/getNetwork.ts deleted file mode 100644 index ade40941f5ca..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/getNetwork.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the information about the network resource with the given name. The information include the description and other properties of the network. - * - * @summary Gets the information about the network resource with the given name. The information include the description and other properties of the network. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/networks/get.json - */ -import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function getNetwork() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const networkResourceName = "sampleNetwork"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const result = await client.network.get( - resourceGroupName, - networkResourceName - ); - console.log(result); -} - -getNetwork().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/getSecret.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/getSecret.ts deleted file mode 100644 index e2da462e97bb..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/getSecret.ts +++ /dev/null @@ -1,33 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the information about the secret resource with the given name. The information include the description and other properties of the secret. - * - * @summary Gets the information about the secret resource with the given name. The information include the description and other properties of the secret. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/get.json - */ -import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function getSecret() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const secretResourceName = "dbConnectionString"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const result = await client.secret.get(resourceGroupName, secretResourceName); - console.log(result); -} - -getSecret().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/getSecretValue.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/getSecretValue.ts deleted file mode 100644 index 40aad075f997..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/getSecretValue.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Get the information about the specified named secret value resources. The information does not include the actual value of the secret. - * - * @summary Get the information about the specified named secret value resources. The information does not include the actual value of the secret. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/values/get.json - */ -import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function getSecretValue() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const secretResourceName = "dbConnectionString"; - const secretValueResourceName = "v1"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const result = await client.secretValueOperations.get( - resourceGroupName, - secretResourceName, - secretValueResourceName - ); - console.log(result); -} - -getSecretValue().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/getService.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/getService.ts deleted file mode 100644 index dc7655a7ba88..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/getService.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the information about the service resource with the given name. The information include the description and other properties of the service. - * - * @summary Gets the information about the service resource with the given name. The information include the description and other properties of the service. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/services/get.json - */ -import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function getService() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const applicationResourceName = "sampleApplication"; - const serviceResourceName = "helloWorldService"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const result = await client.service.get( - resourceGroupName, - applicationResourceName, - serviceResourceName - ); - console.log(result); -} - -getService().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/getVolume.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/getVolume.ts deleted file mode 100644 index aeda5a171650..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/getVolume.ts +++ /dev/null @@ -1,33 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the information about the volume resource with the given name. The information include the description and other properties of the volume. - * - * @summary Gets the information about the volume resource with the given name. The information include the description and other properties of the volume. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/volumes/get.json - */ -import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function getVolume() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const volumeResourceName = "sampleVolume"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const result = await client.volume.get(resourceGroupName, volumeResourceName); - console.log(result); -} - -getVolume().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/listApplicationsByResourceGroup.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/listApplicationsByResourceGroup.ts deleted file mode 100644 index be78d74a18df..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/listApplicationsByResourceGroup.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the information about all application resources in a given resource group. The information include the description and other properties of the Application. - * - * @summary Gets the information about all application resources in a given resource group. The information include the description and other properties of the Application. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/list_byResourceGroup.json - */ -import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function listApplicationsByResourceGroup() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.application.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -listApplicationsByResourceGroup().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/listApplicationsBySubscriptionId.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/listApplicationsBySubscriptionId.ts deleted file mode 100644 index dbffc08b6777..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/listApplicationsBySubscriptionId.ts +++ /dev/null @@ -1,34 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the information about all application resources in a given resource group. The information include the description and other properties of the application. - * - * @summary Gets the information about all application resources in a given resource group. The information include the description and other properties of the application. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/list_bySubscriptionId.json - */ -import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function listApplicationsBySubscriptionId() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.application.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -listApplicationsBySubscriptionId().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/listGatewaysByResourceGroup.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/listGatewaysByResourceGroup.ts deleted file mode 100644 index f5a53879ca94..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/listGatewaysByResourceGroup.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the information about all gateway resources in a given resource group. The information include the description and other properties of the Gateway. - * - * @summary Gets the information about all gateway resources in a given resource group. The information include the description and other properties of the Gateway. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/gateways/list_byResourceGroup.json - */ -import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function listGatewaysByResourceGroup() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.gateway.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -listGatewaysByResourceGroup().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/listGatewaysBySubscriptionId.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/listGatewaysBySubscriptionId.ts deleted file mode 100644 index c83c3413fc26..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/listGatewaysBySubscriptionId.ts +++ /dev/null @@ -1,34 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the information about all gateway resources in a given resource group. The information include the description and other properties of the gateway. - * - * @summary Gets the information about all gateway resources in a given resource group. The information include the description and other properties of the gateway. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/gateways/list_bySubscriptionId.json - */ -import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function listGatewaysBySubscriptionId() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.gateway.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -listGatewaysBySubscriptionId().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/listNetworksByResourceGroup.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/listNetworksByResourceGroup.ts deleted file mode 100644 index 051f57aedfa5..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/listNetworksByResourceGroup.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the information about all network resources in a given resource group. The information include the description and other properties of the Network. - * - * @summary Gets the information about all network resources in a given resource group. The information include the description and other properties of the Network. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/networks/list_byResourceGroup.json - */ -import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function listNetworksByResourceGroup() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.network.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -listNetworksByResourceGroup().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/listNetworksBySubscriptionId.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/listNetworksBySubscriptionId.ts deleted file mode 100644 index a92da524ba0a..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/listNetworksBySubscriptionId.ts +++ /dev/null @@ -1,34 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the information about all network resources in a given resource group. The information include the description and other properties of the network. - * - * @summary Gets the information about all network resources in a given resource group. The information include the description and other properties of the network. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/networks/list_bySubscriptionId.json - */ -import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function listNetworksBySubscriptionId() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.network.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -listNetworksBySubscriptionId().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/listSecretValue.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/listSecretValue.ts deleted file mode 100644 index 4473defb85de..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/listSecretValue.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Lists the decrypted value of the specified named value of the secret resource. This is a privileged operation. - * - * @summary Lists the decrypted value of the specified named value of the secret resource. This is a privileged operation. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/values/list_value.json - */ -import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function listSecretValue() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const secretResourceName = "dbConnectionString"; - const secretValueResourceName = "v1"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const result = await client.secretValueOperations.listValue( - resourceGroupName, - secretResourceName, - secretValueResourceName - ); - console.log(result); -} - -listSecretValue().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/listSecretValues.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/listSecretValues.ts deleted file mode 100644 index 6932ab2c8fa4..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/listSecretValues.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets information about all secret value resources of the specified secret resource. The information includes the names of the secret value resources, but not the actual values. - * - * @summary Gets information about all secret value resources of the specified secret resource. The information includes the names of the secret value resources, but not the actual values. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/values/list.json - */ -import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function listSecretValues() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const secretResourceName = "dbConnectionString"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.secretValueOperations.list( - resourceGroupName, - secretResourceName - )) { - resArray.push(item); - } - console.log(resArray); -} - -listSecretValues().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/listSecretsByResourceGroup.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/listSecretsByResourceGroup.ts deleted file mode 100644 index eb8c6609c40a..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/listSecretsByResourceGroup.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the information about all secret resources in a given resource group. The information include the description and other properties of the Secret. - * - * @summary Gets the information about all secret resources in a given resource group. The information include the description and other properties of the Secret. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/list_byResourceGroup.json - */ -import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function listSecretsByResourceGroup() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.secret.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -listSecretsByResourceGroup().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/listSecretsBySubscriptionId.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/listSecretsBySubscriptionId.ts deleted file mode 100644 index 69820eab9c09..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/listSecretsBySubscriptionId.ts +++ /dev/null @@ -1,34 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the information about all secret resources in a given resource group. The information include the description and other properties of the secret. - * - * @summary Gets the information about all secret resources in a given resource group. The information include the description and other properties of the secret. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/list_bySubscriptionId.json - */ -import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function listSecretsBySubscriptionId() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.secret.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -listSecretsBySubscriptionId().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/listServices.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/listServices.ts deleted file mode 100644 index 1f7c9020a593..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/listServices.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the information about all services of an application resource. The information include the description and other properties of the Service. - * - * @summary Gets the information about all services of an application resource. The information include the description and other properties of the Service. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/services/list.json - */ -import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function listServices() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const applicationResourceName = "sampleApplication"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.service.list( - resourceGroupName, - applicationResourceName - )) { - resArray.push(item); - } - console.log(resArray); -} - -listServices().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/listVolumesByResourceGroup.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/listVolumesByResourceGroup.ts deleted file mode 100644 index a9677aab7ce6..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/listVolumesByResourceGroup.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the information about all volume resources in a given resource group. The information include the description and other properties of the Volume. - * - * @summary Gets the information about all volume resources in a given resource group. The information include the description and other properties of the Volume. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/volumes/list_byResourceGroup.json - */ -import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function listVolumesByResourceGroup() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.volume.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -listVolumesByResourceGroup().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/listVolumesBySubscriptionId.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/listVolumesBySubscriptionId.ts deleted file mode 100644 index 04cb7d2f0cd1..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/listVolumesBySubscriptionId.ts +++ /dev/null @@ -1,34 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the information about all volume resources in a given resource group. The information include the description and other properties of the volume. - * - * @summary Gets the information about all volume resources in a given resource group. The information include the description and other properties of the volume. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/volumes/list_bySubscriptionId.json - */ -import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function listVolumesBySubscriptionId() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.volume.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -listVolumesBySubscriptionId().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/replicaGet.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/replicaGet.ts deleted file mode 100644 index 9a03ed79046b..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/replicaGet.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the information about the service replica with the given name. The information include the description and other properties of the service replica. - * - * @summary Gets the information about the service replica with the given name. The information include the description and other properties of the service replica. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/services/replicas/get.json - */ -import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function replicaGet() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const applicationResourceName = "helloWorldApp"; - const serviceResourceName = "helloWorldService"; - const replicaName = "0"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const result = await client.serviceReplica.get( - resourceGroupName, - applicationResourceName, - serviceResourceName, - replicaName - ); - console.log(result); -} - -replicaGet().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/replicasGetAll.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/replicasGetAll.ts deleted file mode 100644 index d3951feaff04..000000000000 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/replicasGetAll.ts +++ /dev/null @@ -1,41 +0,0 @@ -/* - * 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. -/** - * This sample demonstrates how to Gets the information about all replicas of a given service of an application. The information includes the runtime properties of the replica instance. - * - * @summary Gets the information about all replicas of a given service of an application. The information includes the runtime properties of the replica instance. - * x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/services/replicas/list.json - */ -import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh"; -import { DefaultAzureCredential } from "@azure/identity"; - -async function replicasGetAll() { - const subscriptionId = "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = "sbz_demo"; - const applicationResourceName = "sampleApplication"; - const serviceResourceName = "helloWorldService"; - const credential = new DefaultAzureCredential(); - const client = new ServiceFabricMeshManagementClient( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.serviceReplica.list( - resourceGroupName, - applicationResourceName, - serviceResourceName - )) { - resArray.push(item); - } - console.log(resArray); -} - -replicasGetAll().catch(console.error); diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/secretValueCreateSample.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/secretValueCreateSample.ts index 322fe3683fa4..a1c8f0b23389 100644 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/secretValueCreateSample.ts +++ b/sdk/servicefabricmesh/arm-servicefabricmesh/samples/v3-beta/typescript/src/secretValueCreateSample.ts @@ -27,6 +27,7 @@ async function createSecretValue() { const secretValueResourceName = "v1"; const secretValueResourceDescription: SecretValueResourceDescription = { name: "v1", + location: "West US", value: "mongodb://contoso123:0Fc3IolnL12312asdfawejunASDF@asdfYXX2t8a97kghVcUzcDv98hawelufhawefafnoQRGwNj2nMPL1Y9qsIr9Srdw==@contoso123.documents.azure.com:10255/mydatabase?ssl=true" }; diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/src/models/index.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/src/models/index.ts index 586a772f3006..534ced6026e7 100644 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/src/models/index.ts +++ b/sdk/servicefabricmesh/arm-servicefabricmesh/src/models/index.ts @@ -683,11 +683,11 @@ export type SecretResourcePropertiesBase = ProvisionedResourceProperties & { /** This type describes properties of a secret value resource. */ export type SecretValueResourceProperties = ProvisionedResourceProperties & - SecretValueProperties & {}; + SecretValueProperties; /** This type describes properties of a volume resource. */ export type VolumeResourceProperties = ProvisionedResourceProperties & - VolumeProperties & {}; + VolumeProperties; /** This type describes the properties of a network resource, including its kind. */ export type NetworkResourcePropertiesBase = ProvisionedResourceProperties & { @@ -697,16 +697,16 @@ export type NetworkResourcePropertiesBase = ProvisionedResourceProperties & { /** This type describes properties of a gateway resource. */ export type GatewayResourceProperties = ProvisionedResourceProperties & - GatewayProperties & {}; + GatewayProperties; /** This type describes properties of a service resource. */ export type ServiceResourceProperties = ProvisionedResourceProperties & ServiceReplicaProperties & - ServiceProperties & {}; + ServiceProperties; /** This type describes properties of an application resource. */ export type ApplicationResourceProperties = ProvisionedResourceProperties & - ApplicationProperties & {}; + ApplicationProperties; /** The resource model definition for Azure Resource Manager tracked top-level resource. */ export type TrackedResource = Resource & { @@ -717,7 +717,7 @@ export type TrackedResource = Resource & { }; /** The resource model definition for Azure Resource Manager proxy resource. It will have everything other than required location and tags. */ -export type ProxyResource = Resource & {}; +export type ProxyResource = Resource; /** Describes a replica of a service resource. */ export type ServiceReplicaDescription = ServiceReplicaProperties & { @@ -991,7 +991,7 @@ export type ApplicationResourceDescription = TrackedResource & { }; /** Describes the properties of a secret resource whose value is provided explicitly as plaintext. The secret resource may have multiple values, each being uniquely versioned. The secret value of each version is stored encrypted, and delivered as plaintext into the context of applications referencing it. */ -export type InlinedValueSecretResourceProperties = SecretResourceProperties & {}; +export type InlinedValueSecretResourceProperties = SecretResourceProperties; /** Information about a Service Fabric container network local to a single Service Fabric cluster. */ export type LocalNetworkResourceProperties = NetworkResourceProperties & { diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/src/serviceFabricMeshManagementClient.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/src/serviceFabricMeshManagementClient.ts index a1dc980276a0..5e2f168e565e 100644 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/src/serviceFabricMeshManagementClient.ts +++ b/sdk/servicefabricmesh/arm-servicefabricmesh/src/serviceFabricMeshManagementClient.ts @@ -8,6 +8,11 @@ import * as coreClient from "@azure/core-client"; import * as coreRestPipeline from "@azure/core-rest-pipeline"; +import { + PipelineRequest, + PipelineResponse, + SendRequest +} from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { OperationsImpl, @@ -125,6 +130,35 @@ export class ServiceFabricMeshManagementClient extends coreClient.ServiceClient this.service = new ServiceImpl(this); this.serviceReplica = new ServiceReplicaImpl(this); this.codePackage = new CodePackageImpl(this); + this.addCustomApiVersionPolicy(options.apiVersion); + } + + /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */ + private addCustomApiVersionPolicy(apiVersion?: string) { + if (!apiVersion) { + return; + } + const apiVersionPolicy = { + name: "CustomApiVersionPolicy", + async sendRequest( + request: PipelineRequest, + next: SendRequest + ): Promise { + const param = request.url.split("?"); + if (param.length > 1) { + const newParams = param[1].split("&").map((item) => { + if (item.indexOf("api-version") > -1) { + return item.replace(/(?<==).*$/, apiVersion); + } else { + return item; + } + }); + request.url = param[0] + "?" + newParams.join("&"); + } + return next(request); + } + }; + this.pipeline.addPolicy(apiVersionPolicy); } operations: Operations; diff --git a/sdk/servicefabricmesh/arm-servicefabricmesh/test/sampleTest.ts b/sdk/servicefabricmesh/arm-servicefabricmesh/test/sampleTest.ts index 7ed89b043e1b..25aeb3ebcc36 100644 --- a/sdk/servicefabricmesh/arm-servicefabricmesh/test/sampleTest.ts +++ b/sdk/servicefabricmesh/arm-servicefabricmesh/test/sampleTest.ts @@ -7,35 +7,30 @@ */ import { - env, - record, - RecorderEnvironmentSetup, - Recorder + Recorder, + RecorderStartOptions, + env } from "@azure-tools/test-recorder"; -import * as assert from "assert"; +import { assert } from "chai"; +import { Context } from "mocha"; -const recorderEnvSetup: RecorderEnvironmentSetup = { - replaceableVariables: { - AZURE_CLIENT_ID: "azure_client_id", - AZURE_CLIENT_SECRET: "azure_client_secret", - AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", - SUBSCRIPTION_ID: "azure_subscription_id" - }, - customizationsOnRecordings: [ - (recording: any): any => - recording.replace( - /"access_token":"[^"]*"/g, - `"access_token":"access_token"` - ) - ], - queryParametersToSkip: [] +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id" +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables }; describe("My test", () => { let recorder: Recorder; - beforeEach(async function() { - recorder = record(this, recorderEnvSetup); + beforeEach(async function(this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); }); afterEach(async function() {