@azure/arm-extendedlocation 1.0.0-beta.1 → 1.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.
Files changed (134) hide show
  1. package/CHANGELOG.md +51 -0
  2. package/LICENSE +1 -1
  3. package/README.md +24 -9
  4. package/dist/index.js +921 -113
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.js +1 -1
  7. package/dist/index.min.js.map +1 -1
  8. package/dist-esm/samples-dev/customLocationsCreateOrUpdateSample.d.ts +2 -0
  9. package/dist-esm/samples-dev/customLocationsCreateOrUpdateSample.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/customLocationsCreateOrUpdateSample.js +50 -0
  11. package/dist-esm/samples-dev/customLocationsCreateOrUpdateSample.js.map +1 -0
  12. package/dist-esm/samples-dev/customLocationsDeleteSample.d.ts +2 -0
  13. package/dist-esm/samples-dev/customLocationsDeleteSample.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/customLocationsDeleteSample.js +39 -0
  15. package/dist-esm/samples-dev/customLocationsDeleteSample.js.map +1 -0
  16. package/dist-esm/samples-dev/customLocationsFindTargetResourceGroupSample.d.ts +2 -0
  17. package/dist-esm/samples-dev/customLocationsFindTargetResourceGroupSample.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/customLocationsFindTargetResourceGroupSample.js +42 -0
  19. package/dist-esm/samples-dev/customLocationsFindTargetResourceGroupSample.js.map +1 -0
  20. package/dist-esm/samples-dev/customLocationsGetSample.d.ts +2 -0
  21. package/dist-esm/samples-dev/customLocationsGetSample.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/customLocationsGetSample.js +39 -0
  23. package/dist-esm/samples-dev/customLocationsGetSample.js.map +1 -0
  24. package/dist-esm/samples-dev/customLocationsListByResourceGroupSample.d.ts +2 -0
  25. package/dist-esm/samples-dev/customLocationsListByResourceGroupSample.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/customLocationsListByResourceGroupSample.js +52 -0
  27. package/dist-esm/samples-dev/customLocationsListByResourceGroupSample.js.map +1 -0
  28. package/dist-esm/samples-dev/customLocationsListBySubscriptionSample.d.ts +2 -0
  29. package/dist-esm/samples-dev/customLocationsListBySubscriptionSample.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/customLocationsListBySubscriptionSample.js +51 -0
  31. package/dist-esm/samples-dev/customLocationsListBySubscriptionSample.js.map +1 -0
  32. package/dist-esm/samples-dev/customLocationsListEnabledResourceTypesSample.d.ts +2 -0
  33. package/dist-esm/samples-dev/customLocationsListEnabledResourceTypesSample.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/customLocationsListEnabledResourceTypesSample.js +53 -0
  35. package/dist-esm/samples-dev/customLocationsListEnabledResourceTypesSample.js.map +1 -0
  36. package/dist-esm/samples-dev/customLocationsListOperationsSample.d.ts +2 -0
  37. package/dist-esm/samples-dev/customLocationsListOperationsSample.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/customLocationsListOperationsSample.js +51 -0
  39. package/dist-esm/samples-dev/customLocationsListOperationsSample.js.map +1 -0
  40. package/dist-esm/samples-dev/customLocationsUpdateSample.d.ts +2 -0
  41. package/dist-esm/samples-dev/customLocationsUpdateSample.d.ts.map +1 -0
  42. package/dist-esm/samples-dev/customLocationsUpdateSample.js +42 -0
  43. package/dist-esm/samples-dev/customLocationsUpdateSample.js.map +1 -0
  44. package/dist-esm/samples-dev/resourceSyncRulesCreateOrUpdateSample.d.ts +2 -0
  45. package/dist-esm/samples-dev/resourceSyncRulesCreateOrUpdateSample.d.ts.map +1 -0
  46. package/dist-esm/samples-dev/resourceSyncRulesCreateOrUpdateSample.js +49 -0
  47. package/dist-esm/samples-dev/resourceSyncRulesCreateOrUpdateSample.js.map +1 -0
  48. package/dist-esm/samples-dev/resourceSyncRulesDeleteSample.d.ts +2 -0
  49. package/dist-esm/samples-dev/resourceSyncRulesDeleteSample.d.ts.map +1 -0
  50. package/dist-esm/samples-dev/resourceSyncRulesDeleteSample.js +40 -0
  51. package/dist-esm/samples-dev/resourceSyncRulesDeleteSample.js.map +1 -0
  52. package/dist-esm/samples-dev/resourceSyncRulesGetSample.d.ts +2 -0
  53. package/dist-esm/samples-dev/resourceSyncRulesGetSample.d.ts.map +1 -0
  54. package/dist-esm/samples-dev/resourceSyncRulesGetSample.js +40 -0
  55. package/dist-esm/samples-dev/resourceSyncRulesGetSample.js.map +1 -0
  56. package/dist-esm/samples-dev/resourceSyncRulesListByCustomLocationIdSample.d.ts +2 -0
  57. package/dist-esm/samples-dev/resourceSyncRulesListByCustomLocationIdSample.d.ts.map +1 -0
  58. package/dist-esm/samples-dev/resourceSyncRulesListByCustomLocationIdSample.js +53 -0
  59. package/dist-esm/samples-dev/resourceSyncRulesListByCustomLocationIdSample.js.map +1 -0
  60. package/dist-esm/samples-dev/resourceSyncRulesUpdateSample.d.ts +2 -0
  61. package/dist-esm/samples-dev/resourceSyncRulesUpdateSample.d.ts.map +1 -0
  62. package/dist-esm/samples-dev/resourceSyncRulesUpdateSample.js +42 -0
  63. package/dist-esm/samples-dev/resourceSyncRulesUpdateSample.js.map +1 -0
  64. package/dist-esm/src/customLocationsManagementClient.d.ts +9 -3
  65. package/dist-esm/src/customLocationsManagementClient.d.ts.map +1 -1
  66. package/dist-esm/src/customLocationsManagementClient.js +83 -4
  67. package/dist-esm/src/customLocationsManagementClient.js.map +1 -1
  68. package/dist-esm/src/index.d.ts +1 -1
  69. package/dist-esm/src/index.d.ts.map +1 -1
  70. package/dist-esm/src/index.js +1 -1
  71. package/dist-esm/src/index.js.map +1 -1
  72. package/dist-esm/src/models/index.d.ts +172 -25
  73. package/dist-esm/src/models/index.d.ts.map +1 -1
  74. package/dist-esm/src/models/index.js +7 -0
  75. package/dist-esm/src/models/index.js.map +1 -1
  76. package/dist-esm/src/models/mappers.d.ts +8 -1
  77. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  78. package/dist-esm/src/models/mappers.js +228 -29
  79. package/dist-esm/src/models/mappers.js.map +1 -1
  80. package/dist-esm/src/models/parameters.d.ts +7 -0
  81. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  82. package/dist-esm/src/models/parameters.js +41 -2
  83. package/dist-esm/src/models/parameters.js.map +1 -1
  84. package/dist-esm/src/operations/customLocations.d.ts +12 -3
  85. package/dist-esm/src/operations/customLocations.d.ts.map +1 -1
  86. package/dist-esm/src/operations/customLocations.js +114 -34
  87. package/dist-esm/src/operations/customLocations.js.map +1 -1
  88. package/dist-esm/src/operations/index.d.ts +1 -0
  89. package/dist-esm/src/operations/index.d.ts.map +1 -1
  90. package/dist-esm/src/operations/index.js +1 -0
  91. package/dist-esm/src/operations/index.js.map +1 -1
  92. package/dist-esm/src/operations/resourceSyncRules.d.ts +97 -0
  93. package/dist-esm/src/operations/resourceSyncRules.d.ts.map +1 -0
  94. package/dist-esm/src/operations/resourceSyncRules.js +411 -0
  95. package/dist-esm/src/operations/resourceSyncRules.js.map +1 -0
  96. package/dist-esm/src/operationsInterfaces/customLocations.d.ts +10 -1
  97. package/dist-esm/src/operationsInterfaces/customLocations.d.ts.map +1 -1
  98. package/dist-esm/src/operationsInterfaces/index.d.ts +1 -0
  99. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  100. package/dist-esm/src/operationsInterfaces/index.js +1 -0
  101. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  102. package/dist-esm/src/operationsInterfaces/resourceSyncRules.d.ts +71 -0
  103. package/dist-esm/src/operationsInterfaces/resourceSyncRules.d.ts.map +1 -0
  104. package/dist-esm/src/operationsInterfaces/resourceSyncRules.js +9 -0
  105. package/dist-esm/src/operationsInterfaces/resourceSyncRules.js.map +1 -0
  106. package/dist-esm/src/pagingHelper.d.ts +13 -0
  107. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  108. package/dist-esm/src/pagingHelper.js +32 -0
  109. package/dist-esm/src/pagingHelper.js.map +1 -0
  110. package/dist-esm/test/sampleTest.js +11 -13
  111. package/dist-esm/test/sampleTest.js.map +1 -1
  112. package/package.json +58 -27
  113. package/review/arm-extendedlocation.api.md +142 -27
  114. package/rollup.config.js +6 -72
  115. package/src/customLocationsManagementClient.ts +115 -5
  116. package/src/index.ts +1 -1
  117. package/src/models/index.ts +186 -26
  118. package/src/models/mappers.ts +243 -30
  119. package/src/models/parameters.ts +53 -2
  120. package/src/operations/customLocations.ts +148 -46
  121. package/src/operations/index.ts +1 -0
  122. package/src/operations/resourceSyncRules.ts +575 -0
  123. package/src/operationsInterfaces/customLocations.ts +18 -1
  124. package/src/operationsInterfaces/index.ts +1 -0
  125. package/src/operationsInterfaces/resourceSyncRules.ts +136 -0
  126. package/src/pagingHelper.ts +39 -0
  127. package/tsconfig.json +19 -5
  128. package/types/arm-extendedlocation.d.ts +266 -20
  129. package/types/tsdoc-metadata.json +1 -1
  130. package/dist-esm/src/customLocationsManagementClientContext.d.ts +0 -16
  131. package/dist-esm/src/customLocationsManagementClientContext.d.ts.map +0 -1
  132. package/dist-esm/src/customLocationsManagementClientContext.js +0 -49
  133. package/dist-esm/src/customLocationsManagementClientContext.js.map +0 -1
  134. package/src/customLocationsManagementClientContext.ts +0 -70
@@ -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 { record } from "@azure-tools/test-recorder";
10
- const recorderEnvSetup = {
11
- replaceableVariables: {
12
- AZURE_CLIENT_ID: "azure_client_id",
13
- AZURE_CLIENT_SECRET: "azure_client_secret",
14
- AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
15
- SUBSCRIPTION_ID: "azure_subscription_id"
16
- },
17
- customizationsOnRecordings: [
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 = record(this, recorderEnvSetup);
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,EAEL,MAAM,EAGP,MAAM,4BAA4B,CAAC;AAGpC,MAAM,gBAAgB,GAA6B;IACjD,oBAAoB,EAAE;QACpB,eAAe,EAAE,iBAAiB;QAClC,mBAAmB,EAAE,qBAAqB;QAC1C,eAAe,EAAE,sCAAsC;QACvD,eAAe,EAAE,uBAAuB;KACzC;IACD,0BAA0B,EAAE;QAC1B,CAAC,SAAc,EAAO,EAAE,CACtB,SAAS,CAAC,OAAO,CACf,yBAAyB,EACzB,+BAA+B,CAChC;KACJ;IACD,qBAAqB,EAAE,EAAE;CAC1B,CAAC;AAEF,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;IACvB,IAAI,QAAkB,CAAC;IAEvB,UAAU,CAAC;;YACT,QAAQ,GAAG,MAAM,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC;QAC5C,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"}
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,44 +3,60 @@
3
3
  "sdk-type": "mgmt",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "A generated SDK for CustomLocationsManagementClient.",
6
- "version": "1.0.0-beta.1",
7
- "engines": { "node": ">=12.0.0" },
6
+ "version": "1.0.0-beta.3",
7
+ "engines": {
8
+ "node": ">=14.0.0"
9
+ },
8
10
  "dependencies": {
9
11
  "@azure/core-lro": "^2.2.0",
10
12
  "@azure/abort-controller": "^1.0.0",
11
- "@azure/core-paging": "^1.1.1",
12
- "@azure/core-client": "^1.0.0",
13
+ "@azure/core-paging": "^1.2.0",
14
+ "@azure/core-client": "^1.6.1",
13
15
  "@azure/core-auth": "^1.3.0",
14
- "@azure/core-rest-pipeline": "^1.1.0",
16
+ "@azure/core-rest-pipeline": "^1.8.0",
15
17
  "tslib": "^2.2.0"
16
18
  },
17
- "keywords": ["node", "azure", "typescript", "browser", "isomorphic"],
19
+ "keywords": [
20
+ "node",
21
+ "azure",
22
+ "typescript",
23
+ "browser",
24
+ "isomorphic"
25
+ ],
18
26
  "license": "MIT",
19
27
  "main": "./dist/index.js",
20
28
  "module": "./dist-esm/src/index.js",
21
29
  "types": "./types/arm-extendedlocation.d.ts",
22
30
  "devDependencies": {
23
- "@microsoft/api-extractor": "7.7.11",
24
- "@rollup/plugin-commonjs": "11.0.2",
25
- "@rollup/plugin-json": "^4.0.0",
26
- "@rollup/plugin-multi-entry": "^3.0.0",
27
- "@rollup/plugin-node-resolve": "^8.0.0",
31
+ "@microsoft/api-extractor": "^7.31.1",
32
+ "@rollup/plugin-commonjs": "^21.0.1",
33
+ "@rollup/plugin-json": "^4.1.0",
34
+ "@rollup/plugin-multi-entry": "^4.1.0",
35
+ "@rollup/plugin-node-resolve": "^13.1.3",
28
36
  "mkdirp": "^1.0.4",
29
- "rollup": "^1.16.3",
30
- "rollup-plugin-sourcemaps": "^0.4.2",
31
- "typescript": "~4.2.0",
37
+ "rollup": "^2.66.1",
38
+ "rollup-plugin-sourcemaps": "^0.6.3",
39
+ "typescript": "~4.8.0",
32
40
  "uglify-js": "^3.4.9",
33
- "@azure/identity": "2.0.0-beta.6",
34
- "@azure-tools/test-recorder": "^1.0.0",
41
+ "rimraf": "^3.0.0",
42
+ "dotenv": "^8.2.0",
43
+ "@azure/identity": "^2.0.1",
44
+ "@azure-tools/test-recorder": "^2.0.0",
45
+ "@azure-tools/test-credential": "^1.0.0",
35
46
  "mocha": "^7.1.1",
36
- "cross-env": "^7.0.2"
47
+ "@types/chai": "^4.2.8",
48
+ "chai": "^4.2.0",
49
+ "cross-env": "^7.0.2",
50
+ "@types/node": "^14.0.0",
51
+ "@azure/dev-tool": "^1.0.0"
37
52
  },
38
- "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/extendedlocation/arm-extendedlocation",
39
53
  "repository": {
40
54
  "type": "git",
41
55
  "url": "https://github.com/Azure/azure-sdk-for-js.git"
42
56
  },
43
- "bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
57
+ "bugs": {
58
+ "url": "https://github.com/Azure/azure-sdk-for-js/issues"
59
+ },
44
60
  "files": [
45
61
  "dist/**/*.js",
46
62
  "dist/**/*.js.map",
@@ -60,14 +76,14 @@
60
76
  "types/*"
61
77
  ],
62
78
  "scripts": {
63
- "build": "tsc && rollup -c 2>&1 && npm run minify && mkdirp ./review && npm run extract-api",
79
+ "build": "npm run clean && tsc && rollup -c 2>&1 && npm run minify && mkdirp ./review && npm run extract-api",
64
80
  "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
65
81
  "prepack": "npm run build",
66
82
  "pack": "npm pack 2>&1",
67
83
  "extract-api": "api-extractor run --local",
68
84
  "lint": "echo skipped",
69
85
  "audit": "echo skipped",
70
- "clean": "echo skipped",
86
+ "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log",
71
87
  "build:node": "echo skipped",
72
88
  "build:browser": "echo skipped",
73
89
  "build:test": "echo skipped",
@@ -76,17 +92,32 @@
76
92
  "execute:samples": "echo skipped",
77
93
  "format": "echo skipped",
78
94
  "test": "npm run integration-test",
79
- "prebuild": "echo skipped",
80
95
  "test:node": "echo skipped",
81
96
  "test:browser": "echo skipped",
82
97
  "unit-test": "npm run unit-test:node && npm run unit-test:browser",
83
98
  "unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
84
99
  "unit-test:browser": "echo skipped",
85
100
  "integration-test": "npm run integration-test:node && npm run integration-test:browser",
86
- "integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts",
87
- "integration-test:browser": "echo skipped",
88
- "docs": "echo skipped"
101
+ "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
102
+ "integration-test:browser": "echo skipped"
89
103
  },
90
104
  "sideEffects": false,
91
- "autoPublish": true
92
- }
105
+ "//metadata": {
106
+ "constantPaths": [
107
+ {
108
+ "path": "src/customLocationsManagementClient.ts",
109
+ "prefix": "packageDetails"
110
+ }
111
+ ]
112
+ },
113
+ "autoPublish": true,
114
+ "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/extendedlocation/arm-extendedlocation",
115
+ "//sampleConfiguration": {
116
+ "productName": "",
117
+ "productSlugs": [
118
+ "azure"
119
+ ],
120
+ "disableDocsMs": true,
121
+ "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-extendedlocation?view=azure-node-preview"
122
+ }
123
+ }
@@ -14,17 +14,30 @@ import { PollOperationState } from '@azure/core-lro';
14
14
  export type CreatedByType = string;
15
15
 
16
16
  // @public
17
- export type CustomLocation = TrackedResource & {
18
- identity?: Identity;
19
- readonly systemData?: SystemData;
17
+ export interface CustomLocation extends TrackedResource {
20
18
  authentication?: CustomLocationPropertiesAuthentication;
21
19
  clusterExtensionIds?: string[];
22
20
  displayName?: string;
23
21
  hostResourceId?: string;
24
22
  hostType?: HostType;
23
+ identity?: Identity;
25
24
  namespace?: string;
26
25
  provisioningState?: string;
27
- };
26
+ readonly systemData?: SystemData;
27
+ }
28
+
29
+ // @public
30
+ export interface CustomLocationFindTargetResourceGroupProperties {
31
+ labels?: {
32
+ [propertyName: string]: string;
33
+ };
34
+ }
35
+
36
+ // @public
37
+ export interface CustomLocationFindTargetResourceGroupResult {
38
+ readonly matchedResourceSyncRule?: string;
39
+ readonly targetResourceGroup?: string;
40
+ }
28
41
 
29
42
  // @public
30
43
  export interface CustomLocationListResult {
@@ -61,6 +74,7 @@ export interface CustomLocations {
61
74
  beginCreateOrUpdateAndWait(resourceGroupName: string, resourceName: string, parameters: CustomLocation, options?: CustomLocationsCreateOrUpdateOptionalParams): Promise<CustomLocationsCreateOrUpdateResponse>;
62
75
  beginDelete(resourceGroupName: string, resourceName: string, options?: CustomLocationsDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
63
76
  beginDeleteAndWait(resourceGroupName: string, resourceName: string, options?: CustomLocationsDeleteOptionalParams): Promise<void>;
77
+ findTargetResourceGroup(resourceGroupName: string, resourceName: string, parameters: CustomLocationFindTargetResourceGroupProperties, options?: CustomLocationsFindTargetResourceGroupOptionalParams): Promise<CustomLocationsFindTargetResourceGroupResponse>;
64
78
  get(resourceGroupName: string, resourceName: string, options?: CustomLocationsGetOptionalParams): Promise<CustomLocationsGetResponse>;
65
79
  listByResourceGroup(resourceGroupName: string, options?: CustomLocationsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<CustomLocation>;
66
80
  listBySubscription(options?: CustomLocationsListBySubscriptionOptionalParams): PagedAsyncIterableIterator<CustomLocation>;
@@ -84,6 +98,13 @@ export interface CustomLocationsDeleteOptionalParams extends coreClient.Operatio
84
98
  updateIntervalInMs?: number;
85
99
  }
86
100
 
101
+ // @public
102
+ export interface CustomLocationsFindTargetResourceGroupOptionalParams extends coreClient.OperationOptions {
103
+ }
104
+
105
+ // @public
106
+ export type CustomLocationsFindTargetResourceGroupResponse = CustomLocationFindTargetResourceGroupResult;
107
+
87
108
  // @public
88
109
  export interface CustomLocationsGetOptionalParams extends coreClient.OperationOptions {
89
110
  }
@@ -148,20 +169,17 @@ export interface CustomLocationsListOperationsOptionalParams extends coreClient.
148
169
  export type CustomLocationsListOperationsResponse = CustomLocationOperationsList;
149
170
 
150
171
  // @public (undocumented)
151
- export class CustomLocationsManagementClient extends CustomLocationsManagementClientContext {
152
- constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: CustomLocationsManagementClientOptionalParams);
153
- // (undocumented)
154
- customLocations: CustomLocations;
155
- }
156
-
157
- // @public (undocumented)
158
- export class CustomLocationsManagementClientContext extends coreClient.ServiceClient {
172
+ export class CustomLocationsManagementClient extends coreClient.ServiceClient {
159
173
  // (undocumented)
160
174
  $host: string;
161
175
  constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: CustomLocationsManagementClientOptionalParams);
162
176
  // (undocumented)
163
177
  apiVersion: string;
164
178
  // (undocumented)
179
+ customLocations: CustomLocations;
180
+ // (undocumented)
181
+ resourceSyncRules: ResourceSyncRules;
182
+ // (undocumented)
165
183
  subscriptionId: string;
166
184
  }
167
185
 
@@ -191,12 +209,12 @@ export interface CustomLocationsUpdateOptionalParams extends coreClient.Operatio
191
209
  export type CustomLocationsUpdateResponse = CustomLocation;
192
210
 
193
211
  // @public
194
- export type EnabledResourceType = ProxyResource & {
195
- readonly systemData?: SystemData;
212
+ export interface EnabledResourceType extends ProxyResource {
196
213
  clusterExtensionId?: string;
197
214
  extensionType?: string;
215
+ readonly systemData?: SystemData;
198
216
  typesMetadata?: EnabledResourceTypePropertiesTypesMetadataItem[];
199
- };
217
+ }
200
218
 
201
219
  // @public
202
220
  export interface EnabledResourceTypePropertiesTypesMetadataItem {
@@ -231,6 +249,9 @@ export interface ErrorResponse {
231
249
  error?: ErrorDetail;
232
250
  }
233
251
 
252
+ // @public
253
+ export function getContinuationToken(page: unknown): string | undefined;
254
+
234
255
  // @public
235
256
  export type HostType = string;
236
257
 
@@ -243,30 +264,30 @@ export interface Identity {
243
264
 
244
265
  // @public
245
266
  export enum KnownCreatedByType {
246
- // (undocumented)
247
267
  Application = "Application",
248
- // (undocumented)
249
268
  Key = "Key",
250
- // (undocumented)
251
269
  ManagedIdentity = "ManagedIdentity",
252
- // (undocumented)
253
270
  User = "User"
254
271
  }
255
272
 
256
273
  // @public
257
274
  export enum KnownHostType {
258
- // (undocumented)
259
275
  Kubernetes = "Kubernetes"
260
276
  }
261
277
 
262
278
  // @public
263
279
  export enum KnownResourceIdentityType {
264
- // (undocumented)
265
280
  None = "None",
266
- // (undocumented)
267
281
  SystemAssigned = "SystemAssigned"
268
282
  }
269
283
 
284
+ // @public
285
+ export interface MatchExpressionsProperties {
286
+ key?: string;
287
+ operator?: string;
288
+ values?: string[];
289
+ }
290
+
270
291
  // @public
271
292
  export interface PatchableCustomLocations {
272
293
  authentication?: CustomLocationPropertiesAuthentication;
@@ -283,7 +304,19 @@ export interface PatchableCustomLocations {
283
304
  }
284
305
 
285
306
  // @public
286
- export type ProxyResource = Resource & {};
307
+ export interface PatchableResourceSyncRule {
308
+ priority?: number;
309
+ readonly provisioningState?: string;
310
+ selector?: ResourceSyncRulePropertiesSelector;
311
+ tags?: {
312
+ [propertyName: string]: string;
313
+ };
314
+ targetResourceGroup?: string;
315
+ }
316
+
317
+ // @public
318
+ export interface ProxyResource extends Resource {
319
+ }
287
320
 
288
321
  // @public
289
322
  export interface Resource {
@@ -295,6 +328,89 @@ export interface Resource {
295
328
  // @public
296
329
  export type ResourceIdentityType = string;
297
330
 
331
+ // @public
332
+ export interface ResourceSyncRule extends TrackedResource {
333
+ priority?: number;
334
+ readonly provisioningState?: string;
335
+ selector?: ResourceSyncRulePropertiesSelector;
336
+ readonly systemData?: SystemData;
337
+ targetResourceGroup?: string;
338
+ }
339
+
340
+ // @public
341
+ export interface ResourceSyncRuleListResult {
342
+ readonly nextLink?: string;
343
+ readonly value?: ResourceSyncRule[];
344
+ }
345
+
346
+ // @public
347
+ export interface ResourceSyncRulePropertiesSelector {
348
+ matchExpressions?: MatchExpressionsProperties[];
349
+ matchLabels?: {
350
+ [propertyName: string]: string;
351
+ };
352
+ }
353
+
354
+ // @public
355
+ export interface ResourceSyncRules {
356
+ beginCreateOrUpdate(resourceGroupName: string, resourceName: string, childResourceName: string, parameters: ResourceSyncRule, options?: ResourceSyncRulesCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<ResourceSyncRulesCreateOrUpdateResponse>, ResourceSyncRulesCreateOrUpdateResponse>>;
357
+ beginCreateOrUpdateAndWait(resourceGroupName: string, resourceName: string, childResourceName: string, parameters: ResourceSyncRule, options?: ResourceSyncRulesCreateOrUpdateOptionalParams): Promise<ResourceSyncRulesCreateOrUpdateResponse>;
358
+ beginUpdate(resourceGroupName: string, resourceName: string, childResourceName: string, options?: ResourceSyncRulesUpdateOptionalParams): Promise<PollerLike<PollOperationState<ResourceSyncRulesUpdateResponse>, ResourceSyncRulesUpdateResponse>>;
359
+ beginUpdateAndWait(resourceGroupName: string, resourceName: string, childResourceName: string, options?: ResourceSyncRulesUpdateOptionalParams): Promise<ResourceSyncRulesUpdateResponse>;
360
+ delete(resourceGroupName: string, resourceName: string, childResourceName: string, options?: ResourceSyncRulesDeleteOptionalParams): Promise<void>;
361
+ get(resourceGroupName: string, resourceName: string, childResourceName: string, options?: ResourceSyncRulesGetOptionalParams): Promise<ResourceSyncRulesGetResponse>;
362
+ listByCustomLocationID(resourceGroupName: string, resourceName: string, options?: ResourceSyncRulesListByCustomLocationIDOptionalParams): PagedAsyncIterableIterator<ResourceSyncRule>;
363
+ }
364
+
365
+ // @public
366
+ export interface ResourceSyncRulesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
367
+ resumeFrom?: string;
368
+ updateIntervalInMs?: number;
369
+ }
370
+
371
+ // @public
372
+ export type ResourceSyncRulesCreateOrUpdateResponse = ResourceSyncRule;
373
+
374
+ // @public
375
+ export interface ResourceSyncRulesDeleteOptionalParams extends coreClient.OperationOptions {
376
+ }
377
+
378
+ // @public
379
+ export interface ResourceSyncRulesGetOptionalParams extends coreClient.OperationOptions {
380
+ }
381
+
382
+ // @public
383
+ export type ResourceSyncRulesGetResponse = ResourceSyncRule;
384
+
385
+ // @public
386
+ export interface ResourceSyncRulesListByCustomLocationIDNextOptionalParams extends coreClient.OperationOptions {
387
+ }
388
+
389
+ // @public
390
+ export type ResourceSyncRulesListByCustomLocationIDNextResponse = ResourceSyncRuleListResult;
391
+
392
+ // @public
393
+ export interface ResourceSyncRulesListByCustomLocationIDOptionalParams extends coreClient.OperationOptions {
394
+ }
395
+
396
+ // @public
397
+ export type ResourceSyncRulesListByCustomLocationIDResponse = ResourceSyncRuleListResult;
398
+
399
+ // @public
400
+ export interface ResourceSyncRulesUpdateOptionalParams extends coreClient.OperationOptions {
401
+ priority?: number;
402
+ resumeFrom?: string;
403
+ selector?: ResourceSyncRulePropertiesSelector;
404
+ tags?: {
405
+ [propertyName: string]: string;
406
+ };
407
+ targetResourceGroup?: string;
408
+ updateIntervalInMs?: number;
409
+ }
410
+
411
+ // @public
412
+ export type ResourceSyncRulesUpdateResponse = ResourceSyncRule;
413
+
298
414
  // @public
299
415
  export interface SystemData {
300
416
  createdAt?: Date;
@@ -306,13 +422,12 @@ export interface SystemData {
306
422
  }
307
423
 
308
424
  // @public
309
- export type TrackedResource = Resource & {
425
+ export interface TrackedResource extends Resource {
426
+ location: string;
310
427
  tags?: {
311
428
  [propertyName: string]: string;
312
429
  };
313
- location: string;
314
- };
315
-
430
+ }
316
431
 
317
432
  // (No @packageDocumentation comment for this package)
318
433
 
package/rollup.config.js CHANGED
@@ -14,62 +14,14 @@ import json from "@rollup/plugin-json";
14
14
 
15
15
  import nodeBuiltins from "builtin-modules";
16
16
 
17
- /**
18
- * Gets the proper configuration needed for rollup's commonJS plugin for @opentelemetry/api.
19
- *
20
- * NOTE: this manual configuration is only needed because OpenTelemetry uses an
21
- * __exportStar downleveled helper function to declare its exports which confuses
22
- * rollup's automatic discovery mechanism.
23
- *
24
- * @returns an object reference that can be `...`'d into your cjs() configuration.
25
- */
26
- export function openTelemetryCommonJs() {
27
- const namedExports = {};
28
-
29
- for (const key of [
30
- "@opentelemetry/api",
31
- "@azure/core-tracing/node_modules/@opentelemetry/api"
32
- ]) {
33
- namedExports[key] = [
34
- "SpanKind",
35
- "TraceFlags",
36
- "getSpan",
37
- "setSpan",
38
- "SpanStatusCode",
39
- "getSpanContext",
40
- "setSpanContext"
41
- ];
42
- }
43
-
44
- const releasedOpenTelemetryVersions = ["0.10.2", "1.0.0-rc.0"];
45
-
46
- for (const version of releasedOpenTelemetryVersions) {
47
- namedExports[
48
- // working around a limitation in the rollup common.js plugin - it's not able to resolve these modules so the named exports listed above will not get applied. We have to drill down to the actual path.
49
- `../../../common/temp/node_modules/.pnpm/@opentelemetry/api@${version}/node_modules/@opentelemetry/api/build/src/index.js`
50
- ] = [
51
- "SpanKind",
52
- "TraceFlags",
53
- "getSpan",
54
- "setSpan",
55
- "StatusCode",
56
- "CanonicalCode",
57
- "getSpanContext",
58
- "setSpanContext"
59
- ];
60
- }
61
-
62
- return namedExports;
63
- }
64
-
65
17
  // #region Warning Handler
66
18
 
67
19
  /**
68
- * A function that can determine whether a rollupwarning should be ignored. If
20
+ * A function that can determine whether a rollup warning should be ignored. If
69
21
  * the function returns `true`, then the warning will not be displayed.
70
22
  */
71
23
 
72
- function ignoreNiseSinonEvalWarnings(warning) {
24
+ function ignoreNiseSinonEval(warning) {
73
25
  return (
74
26
  warning.code === "EVAL" &&
75
27
  warning.id &&
@@ -78,17 +30,14 @@ function ignoreNiseSinonEvalWarnings(warning) {
78
30
  );
79
31
  }
80
32
 
81
- function ignoreChaiCircularDependencyWarnings(warning) {
33
+ function ignoreChaiCircularDependency(warning) {
82
34
  return (
83
35
  warning.code === "CIRCULAR_DEPENDENCY" &&
84
36
  warning.importer && warning.importer.includes("node_modules/chai") === true
85
37
  );
86
38
  }
87
39
 
88
- const warningInhibitors = [
89
- ignoreChaiCircularDependencyWarnings,
90
- ignoreNiseSinonEvalWarnings
91
- ];
40
+ const warningInhibitors = [ignoreChaiCircularDependency, ignoreNiseSinonEval];
92
41
 
93
42
  /**
94
43
  * Construct a warning handler for the shared rollup configuration
@@ -122,22 +71,7 @@ function makeBrowserTestConfig() {
122
71
  nodeResolve({
123
72
  mainFields: ["module", "browser"]
124
73
  }),
125
- cjs({
126
- namedExports: {
127
- // Chai's strange internal architecture makes it impossible to statically
128
- // analyze its exports.
129
- chai: [
130
- "version",
131
- "use",
132
- "util",
133
- "config",
134
- "expect",
135
- "should",
136
- "assert"
137
- ],
138
- ...openTelemetryCommonJs()
139
- }
140
- }),
74
+ cjs(),
141
75
  json(),
142
76
  sourcemaps()
143
77
  //viz({ filename: "dist-test/browser-stats.html", sourcemap: true })
@@ -173,7 +107,7 @@ export function makeConfig(pkg, options) {
173
107
  ],
174
108
  output: { file: "dist/index.js", format: "cjs", sourcemap: true },
175
109
  preserveSymlinks: false,
176
- plugins: [sourcemaps(), nodeResolve(), cjs()]
110
+ plugins: [sourcemaps(), nodeResolve()]
177
111
  };
178
112
 
179
113
  const config = [baseConfig];