@azure/arm-servicefabricmesh 3.0.0-beta.2 → 3.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -2
- package/dist/index.js +30 -2
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/secretValueCreateSample.js +1 -1
- package/dist-esm/samples-dev/secretValueCreateSample.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +7 -7
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/serviceFabricMeshManagementClient.d.ts +2 -0
- package/dist-esm/src/serviceFabricMeshManagementClient.d.ts.map +1 -1
- package/dist-esm/src/serviceFabricMeshManagementClient.js +30 -1
- package/dist-esm/src/serviceFabricMeshManagementClient.js.map +1 -1
- package/dist-esm/test/sampleTest.js +11 -13
- package/dist-esm/test/sampleTest.js.map +1 -1
- package/package.json +9 -5
- package/review/arm-servicefabricmesh.api.md +7 -7
- package/src/models/index.ts +7 -7
- package/src/serviceFabricMeshManagementClient.ts +35 -1
- package/types/arm-servicefabricmesh.d.ts +9 -7
- package/dist-esm/samples-dev/createOrUpdateApplication.d.ts +0 -2
- package/dist-esm/samples-dev/createOrUpdateApplication.d.ts.map +0 -1
- package/dist-esm/samples-dev/createOrUpdateApplication.js +0 -58
- package/dist-esm/samples-dev/createOrUpdateApplication.js.map +0 -1
- package/dist-esm/samples-dev/createOrUpdateGateway.d.ts +0 -2
- package/dist-esm/samples-dev/createOrUpdateGateway.d.ts.map +0 -1
- package/dist-esm/samples-dev/createOrUpdateGateway.js +0 -76
- package/dist-esm/samples-dev/createOrUpdateGateway.js.map +0 -1
- package/dist-esm/samples-dev/createOrUpdateNetwork.d.ts +0 -2
- package/dist-esm/samples-dev/createOrUpdateNetwork.d.ts.map +0 -1
- package/dist-esm/samples-dev/createOrUpdateNetwork.js +0 -40
- package/dist-esm/samples-dev/createOrUpdateNetwork.js.map +0 -1
- package/dist-esm/samples-dev/createOrUpdateSecret.d.ts +0 -2
- package/dist-esm/samples-dev/createOrUpdateSecret.d.ts.map +0 -1
- package/dist-esm/samples-dev/createOrUpdateSecret.js +0 -40
- package/dist-esm/samples-dev/createOrUpdateSecret.js.map +0 -1
- package/dist-esm/samples-dev/createOrUpdateVolume.d.ts +0 -2
- package/dist-esm/samples-dev/createOrUpdateVolume.d.ts.map +0 -1
- package/dist-esm/samples-dev/createOrUpdateVolume.js +0 -42
- package/dist-esm/samples-dev/createOrUpdateVolume.js.map +0 -1
- package/dist-esm/samples-dev/createSecretValue.d.ts +0 -2
- package/dist-esm/samples-dev/createSecretValue.d.ts.map +0 -1
- package/dist-esm/samples-dev/createSecretValue.js +0 -37
- package/dist-esm/samples-dev/createSecretValue.js.map +0 -1
- package/dist-esm/samples-dev/deleteApplication.d.ts +0 -2
- package/dist-esm/samples-dev/deleteApplication.d.ts.map +0 -1
- package/dist-esm/samples-dev/deleteApplication.js +0 -31
- package/dist-esm/samples-dev/deleteApplication.js.map +0 -1
- package/dist-esm/samples-dev/deleteGateway.d.ts +0 -2
- package/dist-esm/samples-dev/deleteGateway.d.ts.map +0 -1
- package/dist-esm/samples-dev/deleteGateway.js +0 -31
- package/dist-esm/samples-dev/deleteGateway.js.map +0 -1
- package/dist-esm/samples-dev/deleteNetwork.d.ts +0 -2
- package/dist-esm/samples-dev/deleteNetwork.d.ts.map +0 -1
- package/dist-esm/samples-dev/deleteNetwork.js +0 -31
- package/dist-esm/samples-dev/deleteNetwork.js.map +0 -1
- package/dist-esm/samples-dev/deleteSecret.d.ts +0 -2
- package/dist-esm/samples-dev/deleteSecret.d.ts.map +0 -1
- package/dist-esm/samples-dev/deleteSecret.js +0 -31
- package/dist-esm/samples-dev/deleteSecret.js.map +0 -1
- package/dist-esm/samples-dev/deleteSecretValue.d.ts +0 -2
- package/dist-esm/samples-dev/deleteSecretValue.d.ts.map +0 -1
- package/dist-esm/samples-dev/deleteSecretValue.js +0 -32
- package/dist-esm/samples-dev/deleteSecretValue.js.map +0 -1
- package/dist-esm/samples-dev/deleteVolume.d.ts +0 -2
- package/dist-esm/samples-dev/deleteVolume.d.ts.map +0 -1
- package/dist-esm/samples-dev/deleteVolume.js +0 -31
- package/dist-esm/samples-dev/deleteVolume.js.map +0 -1
- package/dist-esm/samples-dev/getApplication.d.ts +0 -2
- package/dist-esm/samples-dev/getApplication.d.ts.map +0 -1
- package/dist-esm/samples-dev/getApplication.js +0 -31
- package/dist-esm/samples-dev/getApplication.js.map +0 -1
- package/dist-esm/samples-dev/getContainerLogs.d.ts +0 -2
- package/dist-esm/samples-dev/getContainerLogs.d.ts.map +0 -1
- package/dist-esm/samples-dev/getContainerLogs.js +0 -34
- package/dist-esm/samples-dev/getContainerLogs.js.map +0 -1
- package/dist-esm/samples-dev/getGateway.d.ts +0 -2
- package/dist-esm/samples-dev/getGateway.d.ts.map +0 -1
- package/dist-esm/samples-dev/getGateway.js +0 -31
- package/dist-esm/samples-dev/getGateway.js.map +0 -1
- package/dist-esm/samples-dev/getNetwork.d.ts +0 -2
- package/dist-esm/samples-dev/getNetwork.d.ts.map +0 -1
- package/dist-esm/samples-dev/getNetwork.js +0 -31
- package/dist-esm/samples-dev/getNetwork.js.map +0 -1
- package/dist-esm/samples-dev/getSecret.d.ts +0 -2
- package/dist-esm/samples-dev/getSecret.d.ts.map +0 -1
- package/dist-esm/samples-dev/getSecret.js +0 -31
- package/dist-esm/samples-dev/getSecret.js.map +0 -1
- package/dist-esm/samples-dev/getSecretValue.d.ts +0 -2
- package/dist-esm/samples-dev/getSecretValue.d.ts.map +0 -1
- package/dist-esm/samples-dev/getSecretValue.js +0 -32
- package/dist-esm/samples-dev/getSecretValue.js.map +0 -1
- package/dist-esm/samples-dev/getService.d.ts +0 -2
- package/dist-esm/samples-dev/getService.d.ts.map +0 -1
- package/dist-esm/samples-dev/getService.js +0 -32
- package/dist-esm/samples-dev/getService.js.map +0 -1
- package/dist-esm/samples-dev/getVolume.d.ts +0 -2
- package/dist-esm/samples-dev/getVolume.d.ts.map +0 -1
- package/dist-esm/samples-dev/getVolume.js +0 -31
- package/dist-esm/samples-dev/getVolume.js.map +0 -1
- package/dist-esm/samples-dev/listApplicationsByResourceGroup.d.ts +0 -2
- package/dist-esm/samples-dev/listApplicationsByResourceGroup.d.ts.map +0 -1
- package/dist-esm/samples-dev/listApplicationsByResourceGroup.js +0 -44
- package/dist-esm/samples-dev/listApplicationsByResourceGroup.js.map +0 -1
- package/dist-esm/samples-dev/listApplicationsBySubscriptionId.d.ts +0 -2
- package/dist-esm/samples-dev/listApplicationsBySubscriptionId.d.ts.map +0 -1
- package/dist-esm/samples-dev/listApplicationsBySubscriptionId.js +0 -43
- package/dist-esm/samples-dev/listApplicationsBySubscriptionId.js.map +0 -1
- package/dist-esm/samples-dev/listGatewaysByResourceGroup.d.ts +0 -2
- package/dist-esm/samples-dev/listGatewaysByResourceGroup.d.ts.map +0 -1
- package/dist-esm/samples-dev/listGatewaysByResourceGroup.js +0 -44
- package/dist-esm/samples-dev/listGatewaysByResourceGroup.js.map +0 -1
- package/dist-esm/samples-dev/listGatewaysBySubscriptionId.d.ts +0 -2
- package/dist-esm/samples-dev/listGatewaysBySubscriptionId.d.ts.map +0 -1
- package/dist-esm/samples-dev/listGatewaysBySubscriptionId.js +0 -43
- package/dist-esm/samples-dev/listGatewaysBySubscriptionId.js.map +0 -1
- package/dist-esm/samples-dev/listNetworksByResourceGroup.d.ts +0 -2
- package/dist-esm/samples-dev/listNetworksByResourceGroup.d.ts.map +0 -1
- package/dist-esm/samples-dev/listNetworksByResourceGroup.js +0 -44
- package/dist-esm/samples-dev/listNetworksByResourceGroup.js.map +0 -1
- package/dist-esm/samples-dev/listNetworksBySubscriptionId.d.ts +0 -2
- package/dist-esm/samples-dev/listNetworksBySubscriptionId.d.ts.map +0 -1
- package/dist-esm/samples-dev/listNetworksBySubscriptionId.js +0 -43
- package/dist-esm/samples-dev/listNetworksBySubscriptionId.js.map +0 -1
- package/dist-esm/samples-dev/listSecretValue.d.ts +0 -2
- package/dist-esm/samples-dev/listSecretValue.d.ts.map +0 -1
- package/dist-esm/samples-dev/listSecretValue.js +0 -32
- package/dist-esm/samples-dev/listSecretValue.js.map +0 -1
- package/dist-esm/samples-dev/listSecretValues.d.ts +0 -2
- package/dist-esm/samples-dev/listSecretValues.d.ts.map +0 -1
- package/dist-esm/samples-dev/listSecretValues.js +0 -45
- package/dist-esm/samples-dev/listSecretValues.js.map +0 -1
- package/dist-esm/samples-dev/listSecretsByResourceGroup.d.ts +0 -2
- package/dist-esm/samples-dev/listSecretsByResourceGroup.d.ts.map +0 -1
- package/dist-esm/samples-dev/listSecretsByResourceGroup.js +0 -44
- package/dist-esm/samples-dev/listSecretsByResourceGroup.js.map +0 -1
- package/dist-esm/samples-dev/listSecretsBySubscriptionId.d.ts +0 -2
- package/dist-esm/samples-dev/listSecretsBySubscriptionId.d.ts.map +0 -1
- package/dist-esm/samples-dev/listSecretsBySubscriptionId.js +0 -43
- package/dist-esm/samples-dev/listSecretsBySubscriptionId.js.map +0 -1
- package/dist-esm/samples-dev/listServices.d.ts +0 -2
- package/dist-esm/samples-dev/listServices.d.ts.map +0 -1
- package/dist-esm/samples-dev/listServices.js +0 -45
- package/dist-esm/samples-dev/listServices.js.map +0 -1
- package/dist-esm/samples-dev/listVolumesByResourceGroup.d.ts +0 -2
- package/dist-esm/samples-dev/listVolumesByResourceGroup.d.ts.map +0 -1
- package/dist-esm/samples-dev/listVolumesByResourceGroup.js +0 -44
- package/dist-esm/samples-dev/listVolumesByResourceGroup.js.map +0 -1
- package/dist-esm/samples-dev/listVolumesBySubscriptionId.d.ts +0 -2
- package/dist-esm/samples-dev/listVolumesBySubscriptionId.d.ts.map +0 -1
- package/dist-esm/samples-dev/listVolumesBySubscriptionId.js +0 -43
- package/dist-esm/samples-dev/listVolumesBySubscriptionId.js.map +0 -1
- package/dist-esm/samples-dev/replicaGet.d.ts +0 -2
- package/dist-esm/samples-dev/replicaGet.d.ts.map +0 -1
- package/dist-esm/samples-dev/replicaGet.js +0 -33
- package/dist-esm/samples-dev/replicaGet.js.map +0 -1
- package/dist-esm/samples-dev/replicasGetAll.d.ts +0 -2
- package/dist-esm/samples-dev/replicasGetAll.d.ts.map +0 -1
- package/dist-esm/samples-dev/replicasGetAll.js +0 -46
- package/dist-esm/samples-dev/replicasGetAll.js.map +0 -1
|
@@ -6,24 +6,22 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
import { __awaiter } from "tslib";
|
|
9
|
-
import {
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
(recording) => recording.replace(/"access_token":"[^"]*"/g, `"access_token":"access_token"`)
|
|
19
|
-
],
|
|
20
|
-
queryParametersToSkip: []
|
|
9
|
+
import { Recorder } from "@azure-tools/test-recorder";
|
|
10
|
+
const replaceableVariables = {
|
|
11
|
+
AZURE_CLIENT_ID: "azure_client_id",
|
|
12
|
+
AZURE_CLIENT_SECRET: "azure_client_secret",
|
|
13
|
+
AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
|
|
14
|
+
SUBSCRIPTION_ID: "azure_subscription_id"
|
|
15
|
+
};
|
|
16
|
+
const recorderOptions = {
|
|
17
|
+
envSetupForPlayback: replaceableVariables
|
|
21
18
|
};
|
|
22
19
|
describe("My test", () => {
|
|
23
20
|
let recorder;
|
|
24
21
|
beforeEach(function () {
|
|
25
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
26
|
-
recorder =
|
|
23
|
+
recorder = new Recorder(this.currentTest);
|
|
24
|
+
yield recorder.start(recorderOptions);
|
|
27
25
|
});
|
|
28
26
|
});
|
|
29
27
|
afterEach(function () {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sampleTest.js","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"sampleTest.js","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EACL,QAAQ,EAGT,MAAM,4BAA4B,CAAC;AAIpC,MAAM,oBAAoB,GAA2B;IACnD,eAAe,EAAE,iBAAiB;IAClC,mBAAmB,EAAE,qBAAqB;IAC1C,eAAe,EAAE,sCAAsC;IACvD,eAAe,EAAE,uBAAuB;CACzC,CAAC;AAEF,MAAM,eAAe,GAAyB;IAC5C,mBAAmB,EAAE,oBAAoB;CAC1C,CAAC;AAEF,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;IACvB,IAAI,QAAkB,CAAC;IAEvB,UAAU,CAAC;;YACT,QAAQ,GAAG,IAAI,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YAC1C,MAAM,QAAQ,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;QACxC,CAAC;KAAA,CAAC,CAAC;IAEH,SAAS,CAAC;;YACR,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QACxB,CAAC;KAAA,CAAC,CAAC;IAEH,EAAE,CAAC,aAAa,EAAE;;YAChB,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;QACjC,CAAC;KAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"sdk-type": "mgmt",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "A generated SDK for ServiceFabricMeshManagementClient.",
|
|
6
|
-
"version": "3.0.0-beta.
|
|
6
|
+
"version": "3.0.0-beta.3",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=12.0.0"
|
|
9
9
|
},
|
|
@@ -38,9 +38,13 @@
|
|
|
38
38
|
"uglify-js": "^3.4.9",
|
|
39
39
|
"rimraf": "^3.0.0",
|
|
40
40
|
"@azure/identity": "^2.0.1",
|
|
41
|
-
"@azure-tools/test-recorder": "^
|
|
41
|
+
"@azure-tools/test-recorder": "^2.0.0",
|
|
42
|
+
"@azure-tools/test-credential": "^1.0.0",
|
|
42
43
|
"mocha": "^7.1.1",
|
|
43
|
-
"
|
|
44
|
+
"@types/chai": "^4.2.8",
|
|
45
|
+
"chai": "^4.2.0",
|
|
46
|
+
"cross-env": "^7.0.2",
|
|
47
|
+
"@azure/dev-tool": "^1.0.0"
|
|
44
48
|
},
|
|
45
49
|
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/servicefabricmesh/arm-servicefabricmesh",
|
|
46
50
|
"repository": {
|
|
@@ -91,7 +95,7 @@
|
|
|
91
95
|
"unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
|
|
92
96
|
"unit-test:browser": "echo skipped",
|
|
93
97
|
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
|
|
94
|
-
"integration-test:node": "
|
|
98
|
+
"integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
|
|
95
99
|
"integration-test:browser": "echo skipped",
|
|
96
100
|
"docs": "echo skipped"
|
|
97
101
|
},
|
|
@@ -113,4 +117,4 @@
|
|
|
113
117
|
"disableDocsMs": true,
|
|
114
118
|
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-servicefabricmesh?view=azure-node-preview"
|
|
115
119
|
}
|
|
116
|
-
}
|
|
120
|
+
}
|
|
@@ -105,7 +105,7 @@ export interface ApplicationResourceDescriptionList {
|
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
// @public
|
|
108
|
-
export type ApplicationResourceProperties = ProvisionedResourceProperties & ApplicationProperties
|
|
108
|
+
export type ApplicationResourceProperties = ProvisionedResourceProperties & ApplicationProperties;
|
|
109
109
|
|
|
110
110
|
// @public
|
|
111
111
|
export type ApplicationScopedVolume = VolumeReference & {
|
|
@@ -435,7 +435,7 @@ export interface GatewayResourceDescriptionList {
|
|
|
435
435
|
}
|
|
436
436
|
|
|
437
437
|
// @public
|
|
438
|
-
export type GatewayResourceProperties = ProvisionedResourceProperties & GatewayProperties
|
|
438
|
+
export type GatewayResourceProperties = ProvisionedResourceProperties & GatewayProperties;
|
|
439
439
|
|
|
440
440
|
// @public
|
|
441
441
|
export type HeaderMatchType = string;
|
|
@@ -491,7 +491,7 @@ export interface ImageRegistryCredential {
|
|
|
491
491
|
}
|
|
492
492
|
|
|
493
493
|
// @public
|
|
494
|
-
export type InlinedValueSecretResourceProperties = SecretResourceProperties
|
|
494
|
+
export type InlinedValueSecretResourceProperties = SecretResourceProperties;
|
|
495
495
|
|
|
496
496
|
// @public
|
|
497
497
|
export enum KnownApplicationScopedVolumeKind {
|
|
@@ -737,7 +737,7 @@ export interface ProvisionedResourceProperties {
|
|
|
737
737
|
}
|
|
738
738
|
|
|
739
739
|
// @public
|
|
740
|
-
export type ProxyResource = Resource
|
|
740
|
+
export type ProxyResource = Resource;
|
|
741
741
|
|
|
742
742
|
// @public
|
|
743
743
|
export interface ReliableCollectionsRef {
|
|
@@ -932,7 +932,7 @@ export interface SecretValueResourceDescriptionList {
|
|
|
932
932
|
}
|
|
933
933
|
|
|
934
934
|
// @public
|
|
935
|
-
export type SecretValueResourceProperties = ProvisionedResourceProperties & SecretValueProperties
|
|
935
|
+
export type SecretValueResourceProperties = ProvisionedResourceProperties & SecretValueProperties;
|
|
936
936
|
|
|
937
937
|
// @public
|
|
938
938
|
export interface Service {
|
|
@@ -1079,7 +1079,7 @@ export interface ServiceResourceDescriptionList {
|
|
|
1079
1079
|
}
|
|
1080
1080
|
|
|
1081
1081
|
// @public
|
|
1082
|
-
export type ServiceResourceProperties = ProvisionedResourceProperties & ServiceReplicaProperties & ServiceProperties
|
|
1082
|
+
export type ServiceResourceProperties = ProvisionedResourceProperties & ServiceReplicaProperties & ServiceProperties;
|
|
1083
1083
|
|
|
1084
1084
|
// @public
|
|
1085
1085
|
export interface Setting {
|
|
@@ -1203,7 +1203,7 @@ export interface VolumeResourceDescriptionList {
|
|
|
1203
1203
|
}
|
|
1204
1204
|
|
|
1205
1205
|
// @public
|
|
1206
|
-
export type VolumeResourceProperties = ProvisionedResourceProperties & VolumeProperties
|
|
1206
|
+
export type VolumeResourceProperties = ProvisionedResourceProperties & VolumeProperties;
|
|
1207
1207
|
|
|
1208
1208
|
// (No @packageDocumentation comment for this package)
|
|
1209
1209
|
|
package/src/models/index.ts
CHANGED
|
@@ -683,11 +683,11 @@ export type SecretResourcePropertiesBase = ProvisionedResourceProperties & {
|
|
|
683
683
|
|
|
684
684
|
/** This type describes properties of a secret value resource. */
|
|
685
685
|
export type SecretValueResourceProperties = ProvisionedResourceProperties &
|
|
686
|
-
SecretValueProperties
|
|
686
|
+
SecretValueProperties;
|
|
687
687
|
|
|
688
688
|
/** This type describes properties of a volume resource. */
|
|
689
689
|
export type VolumeResourceProperties = ProvisionedResourceProperties &
|
|
690
|
-
VolumeProperties
|
|
690
|
+
VolumeProperties;
|
|
691
691
|
|
|
692
692
|
/** This type describes the properties of a network resource, including its kind. */
|
|
693
693
|
export type NetworkResourcePropertiesBase = ProvisionedResourceProperties & {
|
|
@@ -697,16 +697,16 @@ export type NetworkResourcePropertiesBase = ProvisionedResourceProperties & {
|
|
|
697
697
|
|
|
698
698
|
/** This type describes properties of a gateway resource. */
|
|
699
699
|
export type GatewayResourceProperties = ProvisionedResourceProperties &
|
|
700
|
-
GatewayProperties
|
|
700
|
+
GatewayProperties;
|
|
701
701
|
|
|
702
702
|
/** This type describes properties of a service resource. */
|
|
703
703
|
export type ServiceResourceProperties = ProvisionedResourceProperties &
|
|
704
704
|
ServiceReplicaProperties &
|
|
705
|
-
ServiceProperties
|
|
705
|
+
ServiceProperties;
|
|
706
706
|
|
|
707
707
|
/** This type describes properties of an application resource. */
|
|
708
708
|
export type ApplicationResourceProperties = ProvisionedResourceProperties &
|
|
709
|
-
ApplicationProperties
|
|
709
|
+
ApplicationProperties;
|
|
710
710
|
|
|
711
711
|
/** The resource model definition for Azure Resource Manager tracked top-level resource. */
|
|
712
712
|
export type TrackedResource = Resource & {
|
|
@@ -717,7 +717,7 @@ export type TrackedResource = Resource & {
|
|
|
717
717
|
};
|
|
718
718
|
|
|
719
719
|
/** The resource model definition for Azure Resource Manager proxy resource. It will have everything other than required location and tags. */
|
|
720
|
-
export type ProxyResource = Resource
|
|
720
|
+
export type ProxyResource = Resource;
|
|
721
721
|
|
|
722
722
|
/** Describes a replica of a service resource. */
|
|
723
723
|
export type ServiceReplicaDescription = ServiceReplicaProperties & {
|
|
@@ -991,7 +991,7 @@ export type ApplicationResourceDescription = TrackedResource & {
|
|
|
991
991
|
};
|
|
992
992
|
|
|
993
993
|
/** 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. */
|
|
994
|
-
export type InlinedValueSecretResourceProperties = SecretResourceProperties
|
|
994
|
+
export type InlinedValueSecretResourceProperties = SecretResourceProperties;
|
|
995
995
|
|
|
996
996
|
/** Information about a Service Fabric container network local to a single Service Fabric cluster. */
|
|
997
997
|
export type LocalNetworkResourceProperties = NetworkResourceProperties & {
|
|
@@ -8,6 +8,11 @@
|
|
|
8
8
|
|
|
9
9
|
import * as coreClient from "@azure/core-client";
|
|
10
10
|
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
11
|
+
import {
|
|
12
|
+
PipelineRequest,
|
|
13
|
+
PipelineResponse,
|
|
14
|
+
SendRequest
|
|
15
|
+
} from "@azure/core-rest-pipeline";
|
|
11
16
|
import * as coreAuth from "@azure/core-auth";
|
|
12
17
|
import {
|
|
13
18
|
OperationsImpl,
|
|
@@ -67,7 +72,7 @@ export class ServiceFabricMeshManagementClient extends coreClient.ServiceClient
|
|
|
67
72
|
credential: credentials
|
|
68
73
|
};
|
|
69
74
|
|
|
70
|
-
const packageDetails = `azsdk-js-arm-servicefabricmesh/3.0.0-beta.
|
|
75
|
+
const packageDetails = `azsdk-js-arm-servicefabricmesh/3.0.0-beta.3`;
|
|
71
76
|
const userAgentPrefix =
|
|
72
77
|
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
73
78
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
@@ -125,6 +130,35 @@ export class ServiceFabricMeshManagementClient extends coreClient.ServiceClient
|
|
|
125
130
|
this.service = new ServiceImpl(this);
|
|
126
131
|
this.serviceReplica = new ServiceReplicaImpl(this);
|
|
127
132
|
this.codePackage = new CodePackageImpl(this);
|
|
133
|
+
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
137
|
+
private addCustomApiVersionPolicy(apiVersion?: string) {
|
|
138
|
+
if (!apiVersion) {
|
|
139
|
+
return;
|
|
140
|
+
}
|
|
141
|
+
const apiVersionPolicy = {
|
|
142
|
+
name: "CustomApiVersionPolicy",
|
|
143
|
+
async sendRequest(
|
|
144
|
+
request: PipelineRequest,
|
|
145
|
+
next: SendRequest
|
|
146
|
+
): Promise<PipelineResponse> {
|
|
147
|
+
const param = request.url.split("?");
|
|
148
|
+
if (param.length > 1) {
|
|
149
|
+
const newParams = param[1].split("&").map((item) => {
|
|
150
|
+
if (item.indexOf("api-version") > -1) {
|
|
151
|
+
return item.replace(/(?<==).*$/, apiVersion);
|
|
152
|
+
} else {
|
|
153
|
+
return item;
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
request.url = param[0] + "?" + newParams.join("&");
|
|
157
|
+
}
|
|
158
|
+
return next(request);
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
this.pipeline.addPolicy(apiVersionPolicy);
|
|
128
162
|
}
|
|
129
163
|
|
|
130
164
|
operations: Operations;
|
|
@@ -190,7 +190,7 @@ export declare interface ApplicationResourceDescriptionList {
|
|
|
190
190
|
}
|
|
191
191
|
|
|
192
192
|
/** This type describes properties of an application resource. */
|
|
193
|
-
export declare type ApplicationResourceProperties = ProvisionedResourceProperties & ApplicationProperties
|
|
193
|
+
export declare type ApplicationResourceProperties = ProvisionedResourceProperties & ApplicationProperties;
|
|
194
194
|
|
|
195
195
|
/** Describes a volume whose lifetime is scoped to the application's lifetime. */
|
|
196
196
|
export declare type ApplicationScopedVolume = VolumeReference & {
|
|
@@ -718,7 +718,7 @@ export declare interface GatewayResourceDescriptionList {
|
|
|
718
718
|
}
|
|
719
719
|
|
|
720
720
|
/** This type describes properties of a gateway resource. */
|
|
721
|
-
export declare type GatewayResourceProperties = ProvisionedResourceProperties & GatewayProperties
|
|
721
|
+
export declare type GatewayResourceProperties = ProvisionedResourceProperties & GatewayProperties;
|
|
722
722
|
|
|
723
723
|
/**
|
|
724
724
|
* Defines values for HeaderMatchType. \
|
|
@@ -809,7 +809,7 @@ export declare interface ImageRegistryCredential {
|
|
|
809
809
|
}
|
|
810
810
|
|
|
811
811
|
/** 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. */
|
|
812
|
-
export declare type InlinedValueSecretResourceProperties = SecretResourceProperties
|
|
812
|
+
export declare type InlinedValueSecretResourceProperties = SecretResourceProperties;
|
|
813
813
|
|
|
814
814
|
/** Known values of {@link ApplicationScopedVolumeKind} that the service accepts. */
|
|
815
815
|
export declare enum KnownApplicationScopedVolumeKind {
|
|
@@ -1166,7 +1166,7 @@ export declare interface ProvisionedResourceProperties {
|
|
|
1166
1166
|
}
|
|
1167
1167
|
|
|
1168
1168
|
/** The resource model definition for Azure Resource Manager proxy resource. It will have everything other than required location and tags. */
|
|
1169
|
-
export declare type ProxyResource = Resource
|
|
1169
|
+
export declare type ProxyResource = Resource;
|
|
1170
1170
|
|
|
1171
1171
|
/** Specifying this parameter adds support for reliable collections */
|
|
1172
1172
|
export declare interface ReliableCollectionsRef {
|
|
@@ -1495,7 +1495,7 @@ export declare interface SecretValueResourceDescriptionList {
|
|
|
1495
1495
|
}
|
|
1496
1496
|
|
|
1497
1497
|
/** This type describes properties of a secret value resource. */
|
|
1498
|
-
export declare type SecretValueResourceProperties = ProvisionedResourceProperties & SecretValueProperties
|
|
1498
|
+
export declare type SecretValueResourceProperties = ProvisionedResourceProperties & SecretValueProperties;
|
|
1499
1499
|
|
|
1500
1500
|
/** Interface representing a Service. */
|
|
1501
1501
|
export declare interface Service {
|
|
@@ -1529,6 +1529,8 @@ export declare class ServiceFabricMeshManagementClient extends coreClient.Servic
|
|
|
1529
1529
|
* @param options The parameter options
|
|
1530
1530
|
*/
|
|
1531
1531
|
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: ServiceFabricMeshManagementClientOptionalParams);
|
|
1532
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
1533
|
+
private addCustomApiVersionPolicy;
|
|
1532
1534
|
operations: Operations;
|
|
1533
1535
|
secret: Secret;
|
|
1534
1536
|
secretValueOperations: SecretValueOperations;
|
|
@@ -1724,7 +1726,7 @@ export declare interface ServiceResourceDescriptionList {
|
|
|
1724
1726
|
}
|
|
1725
1727
|
|
|
1726
1728
|
/** This type describes properties of a service resource. */
|
|
1727
|
-
export declare type ServiceResourceProperties = ProvisionedResourceProperties & ServiceReplicaProperties & ServiceProperties
|
|
1729
|
+
export declare type ServiceResourceProperties = ProvisionedResourceProperties & ServiceReplicaProperties & ServiceProperties;
|
|
1728
1730
|
|
|
1729
1731
|
/** Describes a setting for the container. The setting file path can be fetched from environment variable "Fabric_SettingPath". The path for Windows container is "C:\\secrets". The path for Linux container is "/var/secrets". */
|
|
1730
1732
|
export declare interface Setting {
|
|
@@ -1935,6 +1937,6 @@ export declare interface VolumeResourceDescriptionList {
|
|
|
1935
1937
|
}
|
|
1936
1938
|
|
|
1937
1939
|
/** This type describes properties of a volume resource. */
|
|
1938
|
-
export declare type VolumeResourceProperties = ProvisionedResourceProperties & VolumeProperties
|
|
1940
|
+
export declare type VolumeResourceProperties = ProvisionedResourceProperties & VolumeProperties;
|
|
1939
1941
|
|
|
1940
1942
|
export { }
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createOrUpdateApplication.d.ts","sourceRoot":"","sources":["../../samples-dev/createOrUpdateApplication.ts"],"names":[],"mappings":""}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
import { __awaiter } from "tslib";
|
|
9
|
-
// Copyright (c) Microsoft Corporation.
|
|
10
|
-
// Licensed under the MIT License.
|
|
11
|
-
/**
|
|
12
|
-
* 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.
|
|
13
|
-
*
|
|
14
|
-
* @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.
|
|
15
|
-
* x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/applications/create_update.json
|
|
16
|
-
*/
|
|
17
|
-
import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh";
|
|
18
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
-
function createOrUpdateApplication() {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
22
|
-
const resourceGroupName = "sbz_demo";
|
|
23
|
-
const applicationResourceName = "sampleApplication";
|
|
24
|
-
const applicationResourceDescription = {
|
|
25
|
-
description: "Service Fabric Mesh sample application.",
|
|
26
|
-
location: "EastUS",
|
|
27
|
-
services: [
|
|
28
|
-
{
|
|
29
|
-
name: "helloWorldService",
|
|
30
|
-
description: "SeaBreeze Hello World Service.",
|
|
31
|
-
codePackages: [
|
|
32
|
-
{
|
|
33
|
-
name: "helloWorldCode",
|
|
34
|
-
endpoints: [{ name: "helloWorldListener", port: 80 }],
|
|
35
|
-
image: "seabreeze/sbz-helloworld:1.0-alpine",
|
|
36
|
-
resources: { requests: { cpu: 1, memoryInGB: 1 } }
|
|
37
|
-
}
|
|
38
|
-
],
|
|
39
|
-
networkRefs: [
|
|
40
|
-
{
|
|
41
|
-
name: "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/sbz_demo/providers/Microsoft.ServiceFabricMesh/networks/sampleNetwork",
|
|
42
|
-
endpointRefs: [{ name: "helloWorldListener" }]
|
|
43
|
-
}
|
|
44
|
-
],
|
|
45
|
-
osType: "Linux",
|
|
46
|
-
replicaCount: 1
|
|
47
|
-
}
|
|
48
|
-
],
|
|
49
|
-
tags: {}
|
|
50
|
-
};
|
|
51
|
-
const credential = new DefaultAzureCredential();
|
|
52
|
-
const client = new ServiceFabricMeshManagementClient(credential, subscriptionId);
|
|
53
|
-
const result = yield client.application.create(resourceGroupName, applicationResourceName, applicationResourceDescription);
|
|
54
|
-
console.log(result);
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
createOrUpdateApplication().catch(console.error);
|
|
58
|
-
//# sourceMappingURL=createOrUpdateApplication.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createOrUpdateApplication.js","sourceRoot":"","sources":["../../samples-dev/createOrUpdateApplication.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAEL,iCAAiC,EAClC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,yBAAyB;;QACtC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,UAAU,CAAC;QACrC,MAAM,uBAAuB,GAAG,mBAAmB,CAAC;QACpD,MAAM,8BAA8B,GAAmC;YACrE,WAAW,EAAE,yCAAyC;YACtD,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE;gBACR;oBACE,IAAI,EAAE,mBAAmB;oBACzB,WAAW,EAAE,gCAAgC;oBAC7C,YAAY,EAAE;wBACZ;4BACE,IAAI,EAAE,gBAAgB;4BACtB,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;4BACrD,KAAK,EAAE,qCAAqC;4BAC5C,SAAS,EAAE,EAAE,QAAQ,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,EAAE;yBACnD;qBACF;oBACD,WAAW,EAAE;wBACX;4BACE,IAAI,EACF,0IAA0I;4BAC5I,YAAY,EAAE,CAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE,CAAC;yBAC/C;qBACF;oBACD,MAAM,EAAE,OAAO;oBACf,YAAY,EAAE,CAAC;iBAChB;aACF;YACD,IAAI,EAAE,EAAE;SACT,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,MAAM,CAC5C,iBAAiB,EACjB,uBAAuB,EACvB,8BAA8B,CAC/B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,yBAAyB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createOrUpdateGateway.d.ts","sourceRoot":"","sources":["../../samples-dev/createOrUpdateGateway.ts"],"names":[],"mappings":""}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
import { __awaiter } from "tslib";
|
|
9
|
-
// Copyright (c) Microsoft Corporation.
|
|
10
|
-
// Licensed under the MIT License.
|
|
11
|
-
/**
|
|
12
|
-
* 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.
|
|
13
|
-
*
|
|
14
|
-
* @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.
|
|
15
|
-
* x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/gateways/create_update.json
|
|
16
|
-
*/
|
|
17
|
-
import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh";
|
|
18
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
-
function createOrUpdateGateway() {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
22
|
-
const resourceGroupName = "sbz_demo";
|
|
23
|
-
const gatewayResourceName = "sampleGateway";
|
|
24
|
-
const gatewayResourceDescription = {
|
|
25
|
-
description: "Service Fabric Mesh sample gateway.",
|
|
26
|
-
destinationNetwork: { name: "helloWorldNetwork" },
|
|
27
|
-
location: "EastUS",
|
|
28
|
-
sourceNetwork: { name: "Open" },
|
|
29
|
-
tags: {},
|
|
30
|
-
tcp: [
|
|
31
|
-
{
|
|
32
|
-
name: "web",
|
|
33
|
-
destination: {
|
|
34
|
-
applicationName: "helloWorldApp",
|
|
35
|
-
endpointName: "helloWorldListener",
|
|
36
|
-
serviceName: "helloWorldService"
|
|
37
|
-
},
|
|
38
|
-
port: 80
|
|
39
|
-
}
|
|
40
|
-
],
|
|
41
|
-
http: [
|
|
42
|
-
{
|
|
43
|
-
name: "contosoWebsite",
|
|
44
|
-
hosts: [
|
|
45
|
-
{
|
|
46
|
-
name: "contoso.com",
|
|
47
|
-
routes: [
|
|
48
|
-
{
|
|
49
|
-
name: "index",
|
|
50
|
-
destination: {
|
|
51
|
-
applicationName: "httpHelloWorldApp",
|
|
52
|
-
endpointName: "indexHttpEndpoint",
|
|
53
|
-
serviceName: "indexService"
|
|
54
|
-
},
|
|
55
|
-
match: {
|
|
56
|
-
path: { type: "prefix", rewrite: "/", value: "/index" },
|
|
57
|
-
headers: [
|
|
58
|
-
{ name: "accept", type: "exact", value: "application/json" }
|
|
59
|
-
]
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
]
|
|
63
|
-
}
|
|
64
|
-
],
|
|
65
|
-
port: 8081
|
|
66
|
-
}
|
|
67
|
-
]
|
|
68
|
-
};
|
|
69
|
-
const credential = new DefaultAzureCredential();
|
|
70
|
-
const client = new ServiceFabricMeshManagementClient(credential, subscriptionId);
|
|
71
|
-
const result = yield client.gateway.create(resourceGroupName, gatewayResourceName, gatewayResourceDescription);
|
|
72
|
-
console.log(result);
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
createOrUpdateGateway().catch(console.error);
|
|
76
|
-
//# sourceMappingURL=createOrUpdateGateway.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createOrUpdateGateway.js","sourceRoot":"","sources":["../../samples-dev/createOrUpdateGateway.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAEL,iCAAiC,EAClC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,qBAAqB;;QAClC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,UAAU,CAAC;QACrC,MAAM,mBAAmB,GAAG,eAAe,CAAC;QAC5C,MAAM,0BAA0B,GAA+B;YAC7D,WAAW,EAAE,qCAAqC;YAClD,kBAAkB,EAAE,EAAE,IAAI,EAAE,mBAAmB,EAAE;YACjD,QAAQ,EAAE,QAAQ;YAClB,aAAa,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;YAC/B,IAAI,EAAE,EAAE;YACR,GAAG,EAAE;gBACH;oBACE,IAAI,EAAE,KAAK;oBACX,WAAW,EAAE;wBACX,eAAe,EAAE,eAAe;wBAChC,YAAY,EAAE,oBAAoB;wBAClC,WAAW,EAAE,mBAAmB;qBACjC;oBACD,IAAI,EAAE,EAAE;iBACT;aACF;YACD,IAAI,EAAE;gBACJ;oBACE,IAAI,EAAE,gBAAgB;oBACtB,KAAK,EAAE;wBACL;4BACE,IAAI,EAAE,aAAa;4BACnB,MAAM,EAAE;gCACN;oCACE,IAAI,EAAE,OAAO;oCACb,WAAW,EAAE;wCACX,eAAe,EAAE,mBAAmB;wCACpC,YAAY,EAAE,mBAAmB;wCACjC,WAAW,EAAE,cAAc;qCAC5B;oCACD,KAAK,EAAE;wCACL,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE;wCACvD,OAAO,EAAE;4CACP,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,kBAAkB,EAAE;yCAC7D;qCACF;iCACF;6BACF;yBACF;qBACF;oBACD,IAAI,EAAE,IAAI;iBACX;aACF;SACF,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,MAAM,CACxC,iBAAiB,EACjB,mBAAmB,EACnB,0BAA0B,CAC3B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,qBAAqB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createOrUpdateNetwork.d.ts","sourceRoot":"","sources":["../../samples-dev/createOrUpdateNetwork.ts"],"names":[],"mappings":""}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
import { __awaiter } from "tslib";
|
|
9
|
-
// Copyright (c) Microsoft Corporation.
|
|
10
|
-
// Licensed under the MIT License.
|
|
11
|
-
/**
|
|
12
|
-
* 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.
|
|
13
|
-
*
|
|
14
|
-
* @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.
|
|
15
|
-
* x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/networks/create_update.json
|
|
16
|
-
*/
|
|
17
|
-
import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh";
|
|
18
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
-
function createOrUpdateNetwork() {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
22
|
-
const resourceGroupName = "sbz_demo";
|
|
23
|
-
const networkResourceName = "sampleNetwork";
|
|
24
|
-
const networkResourceDescription = {
|
|
25
|
-
location: "EastUS",
|
|
26
|
-
properties: {
|
|
27
|
-
description: "Service Fabric Mesh sample network.",
|
|
28
|
-
kind: "Local",
|
|
29
|
-
networkAddressPrefix: "2.0.0.0/16"
|
|
30
|
-
},
|
|
31
|
-
tags: {}
|
|
32
|
-
};
|
|
33
|
-
const credential = new DefaultAzureCredential();
|
|
34
|
-
const client = new ServiceFabricMeshManagementClient(credential, subscriptionId);
|
|
35
|
-
const result = yield client.network.create(resourceGroupName, networkResourceName, networkResourceDescription);
|
|
36
|
-
console.log(result);
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
createOrUpdateNetwork().catch(console.error);
|
|
40
|
-
//# sourceMappingURL=createOrUpdateNetwork.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createOrUpdateNetwork.js","sourceRoot":"","sources":["../../samples-dev/createOrUpdateNetwork.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAEL,iCAAiC,EAClC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,qBAAqB;;QAClC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,UAAU,CAAC;QACrC,MAAM,mBAAmB,GAAG,eAAe,CAAC;QAC5C,MAAM,0BAA0B,GAA+B;YAC7D,QAAQ,EAAE,QAAQ;YAClB,UAAU,EAAE;gBACV,WAAW,EAAE,qCAAqC;gBAClD,IAAI,EAAE,OAAO;gBACb,oBAAoB,EAAE,YAAY;aACnC;YACD,IAAI,EAAE,EAAE;SACT,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,MAAM,CACxC,iBAAiB,EACjB,mBAAmB,EACnB,0BAA0B,CAC3B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,qBAAqB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createOrUpdateSecret.d.ts","sourceRoot":"","sources":["../../samples-dev/createOrUpdateSecret.ts"],"names":[],"mappings":""}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*
|
|
5
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
-
*/
|
|
8
|
-
import { __awaiter } from "tslib";
|
|
9
|
-
// Copyright (c) Microsoft Corporation.
|
|
10
|
-
// Licensed under the MIT License.
|
|
11
|
-
/**
|
|
12
|
-
* 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.
|
|
13
|
-
*
|
|
14
|
-
* @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.
|
|
15
|
-
* x-ms-original-file: specification/servicefabricmesh/resource-manager/Microsoft.ServiceFabricMesh/preview/2018-09-01-preview/examples/secrets/create_update.json
|
|
16
|
-
*/
|
|
17
|
-
import { ServiceFabricMeshManagementClient } from "@azure/arm-servicefabricmesh";
|
|
18
|
-
import { DefaultAzureCredential } from "@azure/identity";
|
|
19
|
-
function createOrUpdateSecret() {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
22
|
-
const resourceGroupName = "sbz_demo";
|
|
23
|
-
const secretResourceName = "dbConnectionString";
|
|
24
|
-
const secretResourceDescription = {
|
|
25
|
-
location: "EastUS",
|
|
26
|
-
properties: {
|
|
27
|
-
description: "Mongo DB connection string for backend database!",
|
|
28
|
-
contentType: "text/plain",
|
|
29
|
-
kind: "inlinedValue"
|
|
30
|
-
},
|
|
31
|
-
tags: {}
|
|
32
|
-
};
|
|
33
|
-
const credential = new DefaultAzureCredential();
|
|
34
|
-
const client = new ServiceFabricMeshManagementClient(credential, subscriptionId);
|
|
35
|
-
const result = yield client.secret.create(resourceGroupName, secretResourceName, secretResourceDescription);
|
|
36
|
-
console.log(result);
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
createOrUpdateSecret().catch(console.error);
|
|
40
|
-
//# sourceMappingURL=createOrUpdateSecret.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createOrUpdateSecret.js","sourceRoot":"","sources":["../../samples-dev/createOrUpdateSecret.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAEL,iCAAiC,EAClC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,oBAAoB;;QACjC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,UAAU,CAAC;QACrC,MAAM,kBAAkB,GAAG,oBAAoB,CAAC;QAChD,MAAM,yBAAyB,GAA8B;YAC3D,QAAQ,EAAE,QAAQ;YAClB,UAAU,EAAE;gBACV,WAAW,EAAE,kDAAkD;gBAC/D,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,cAAc;aACrB;YACD,IAAI,EAAE,EAAE;SACT,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,MAAM,CACvC,iBAAiB,EACjB,kBAAkB,EAClB,yBAAyB,CAC1B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,oBAAoB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createOrUpdateVolume.d.ts","sourceRoot":"","sources":["../../samples-dev/createOrUpdateVolume.ts"],"names":[],"mappings":""}
|