@azure/arm-apicenter 1.0.0-beta.1

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 (105) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/LICENSE +21 -0
  3. package/README.md +109 -0
  4. package/dist/index.js +1296 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
  9. package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/operationsListSample.js +58 -0
  11. package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
  12. package/dist-esm/samples-dev/servicesCreateOrUpdateSample.d.ts +2 -0
  13. package/dist-esm/samples-dev/servicesCreateOrUpdateSample.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/servicesCreateOrUpdateSample.js +39 -0
  15. package/dist-esm/samples-dev/servicesCreateOrUpdateSample.js.map +1 -0
  16. package/dist-esm/samples-dev/servicesDeleteSample.d.ts +2 -0
  17. package/dist-esm/samples-dev/servicesDeleteSample.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/servicesDeleteSample.js +39 -0
  19. package/dist-esm/samples-dev/servicesDeleteSample.js.map +1 -0
  20. package/dist-esm/samples-dev/servicesGetSample.d.ts +2 -0
  21. package/dist-esm/samples-dev/servicesGetSample.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/servicesGetSample.js +39 -0
  23. package/dist-esm/samples-dev/servicesGetSample.js.map +1 -0
  24. package/dist-esm/samples-dev/servicesListByResourceGroupSample.d.ts +2 -0
  25. package/dist-esm/samples-dev/servicesListByResourceGroupSample.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/servicesListByResourceGroupSample.js +59 -0
  27. package/dist-esm/samples-dev/servicesListByResourceGroupSample.js.map +1 -0
  28. package/dist-esm/samples-dev/servicesListBySubscriptionSample.d.ts +2 -0
  29. package/dist-esm/samples-dev/servicesListBySubscriptionSample.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/servicesListBySubscriptionSample.js +58 -0
  31. package/dist-esm/samples-dev/servicesListBySubscriptionSample.js.map +1 -0
  32. package/dist-esm/samples-dev/servicesUpdateSample.d.ts +2 -0
  33. package/dist-esm/samples-dev/servicesUpdateSample.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/servicesUpdateSample.js +39 -0
  35. package/dist-esm/samples-dev/servicesUpdateSample.js.map +1 -0
  36. package/dist-esm/src/azureAPICenter.d.ts +21 -0
  37. package/dist-esm/src/azureAPICenter.d.ts.map +1 -0
  38. package/dist-esm/src/azureAPICenter.js +101 -0
  39. package/dist-esm/src/azureAPICenter.js.map +1 -0
  40. package/dist-esm/src/index.d.ts +6 -0
  41. package/dist-esm/src/index.d.ts.map +1 -0
  42. package/dist-esm/src/index.js +13 -0
  43. package/dist-esm/src/index.js.map +1 -0
  44. package/dist-esm/src/models/index.d.ts +369 -0
  45. package/dist-esm/src/models/index.d.ts.map +1 -0
  46. package/dist-esm/src/models/index.js +58 -0
  47. package/dist-esm/src/models/index.js.map +1 -0
  48. package/dist-esm/src/models/mappers.d.ts +16 -0
  49. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  50. package/dist-esm/src/models/mappers.js +428 -0
  51. package/dist-esm/src/models/mappers.js.map +1 -0
  52. package/dist-esm/src/models/parameters.d.ts +12 -0
  53. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  54. package/dist-esm/src/models/parameters.js +112 -0
  55. package/dist-esm/src/models/parameters.js.map +1 -0
  56. package/dist-esm/src/operations/index.d.ts +3 -0
  57. package/dist-esm/src/operations/index.d.ts.map +1 -0
  58. package/dist-esm/src/operations/index.js +10 -0
  59. package/dist-esm/src/operations/index.js.map +1 -0
  60. package/dist-esm/src/operations/operations.d.ts +32 -0
  61. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  62. package/dist-esm/src/operations/operations.js +138 -0
  63. package/dist-esm/src/operations/operations.js.map +1 -0
  64. package/dist-esm/src/operations/services.d.ts +81 -0
  65. package/dist-esm/src/operations/services.d.ts.map +1 -0
  66. package/dist-esm/src/operations/services.js +392 -0
  67. package/dist-esm/src/operations/services.js.map +1 -0
  68. package/dist-esm/src/operationsInterfaces/index.d.ts +3 -0
  69. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  70. package/dist-esm/src/operationsInterfaces/index.js +10 -0
  71. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  72. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  73. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  74. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  75. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  76. package/dist-esm/src/operationsInterfaces/services.d.ts +45 -0
  77. package/dist-esm/src/operationsInterfaces/services.d.ts.map +1 -0
  78. package/dist-esm/src/operationsInterfaces/services.js +9 -0
  79. package/dist-esm/src/operationsInterfaces/services.js.map +1 -0
  80. package/dist-esm/src/pagingHelper.d.ts +13 -0
  81. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  82. package/dist-esm/src/pagingHelper.js +32 -0
  83. package/dist-esm/src/pagingHelper.js.map +1 -0
  84. package/dist-esm/test/apicenter_operations_test.spec.d.ts +4 -0
  85. package/dist-esm/test/apicenter_operations_test.spec.d.ts.map +1 -0
  86. package/dist-esm/test/apicenter_operations_test.spec.js +76 -0
  87. package/dist-esm/test/apicenter_operations_test.spec.js.map +1 -0
  88. package/package.json +121 -0
  89. package/review/arm-apicenter.api.md +274 -0
  90. package/rollup.config.js +122 -0
  91. package/src/azureAPICenter.ts +142 -0
  92. package/src/index.ts +13 -0
  93. package/src/models/index.ts +421 -0
  94. package/src/models/mappers.ts +451 -0
  95. package/src/models/parameters.ts +130 -0
  96. package/src/operations/index.ts +10 -0
  97. package/src/operations/operations.ts +149 -0
  98. package/src/operations/services.ts +472 -0
  99. package/src/operationsInterfaces/index.ts +10 -0
  100. package/src/operationsInterfaces/operations.ts +22 -0
  101. package/src/operationsInterfaces/services.ts +86 -0
  102. package/src/pagingHelper.ts +39 -0
  103. package/tsconfig.json +33 -0
  104. package/types/arm-apicenter.d.ts +494 -0
  105. package/types/tsdoc-metadata.json +11 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC"}
@@ -0,0 +1,10 @@
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
+ export * from "./operations";
9
+ export * from "./services";
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Operation, OperationsListOptionalParams } from "../models";
3
+ /** Interface representing a Operations. */
4
+ export interface Operations {
5
+ /**
6
+ * List the operations for the provider
7
+ * @param options The options parameters.
8
+ */
9
+ list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
10
+ }
11
+ //# sourceMappingURL=operations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,4BAA4B,EAAE,MAAM,WAAW,CAAC;AAGpE,2CAA2C;AAC3C,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,SAAS,CAAC,CAAC;CAC1C"}
@@ -0,0 +1,9 @@
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
+ export {};
9
+ //# sourceMappingURL=operations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -0,0 +1,45 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Service, ServicesListBySubscriptionOptionalParams, ServicesListByResourceGroupOptionalParams, ServicesGetOptionalParams, ServicesGetResponse, ServicesCreateOrUpdateOptionalParams, ServicesCreateOrUpdateResponse, ServicesUpdateOptionalParams, ServicesUpdateResponse, ServicesDeleteOptionalParams } from "../models";
3
+ /** Interface representing a Services. */
4
+ export interface Services {
5
+ /**
6
+ * Lists services within an Azure subscription.
7
+ * @param options The options parameters.
8
+ */
9
+ listBySubscription(options?: ServicesListBySubscriptionOptionalParams): PagedAsyncIterableIterator<Service>;
10
+ /**
11
+ * Lists services within a resource group
12
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
13
+ * @param options The options parameters.
14
+ */
15
+ listByResourceGroup(resourceGroupName: string, options?: ServicesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Service>;
16
+ /**
17
+ * Get service
18
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
19
+ * @param serviceName Service name
20
+ * @param options The options parameters.
21
+ */
22
+ get(resourceGroupName: string, serviceName: string, options?: ServicesGetOptionalParams): Promise<ServicesGetResponse>;
23
+ /**
24
+ * Create or update service
25
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
26
+ * @param serviceName Service name
27
+ * @param options The options parameters.
28
+ */
29
+ createOrUpdate(resourceGroupName: string, serviceName: string, options?: ServicesCreateOrUpdateOptionalParams): Promise<ServicesCreateOrUpdateResponse>;
30
+ /**
31
+ * Update service
32
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
33
+ * @param serviceName Service name
34
+ * @param options The options parameters.
35
+ */
36
+ update(resourceGroupName: string, serviceName: string, options?: ServicesUpdateOptionalParams): Promise<ServicesUpdateResponse>;
37
+ /**
38
+ * Delete service
39
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
40
+ * @param serviceName Service name
41
+ * @param options The options parameters.
42
+ */
43
+ delete(resourceGroupName: string, serviceName: string, options?: ServicesDeleteOptionalParams): Promise<void>;
44
+ }
45
+ //# sourceMappingURL=services.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"services.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/services.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,OAAO,EACP,wCAAwC,EACxC,yCAAyC,EACzC,yBAAyB,EACzB,mBAAmB,EACnB,oCAAoC,EACpC,8BAA8B,EAC9B,4BAA4B,EAC5B,sBAAsB,EACtB,4BAA4B,EAC7B,MAAM,WAAW,CAAC;AAGnB,yCAAyC;AACzC,MAAM,WAAW,QAAQ;IACvB;;;OAGG;IACH,kBAAkB,CAChB,OAAO,CAAC,EAAE,wCAAwC,GACjD,0BAA0B,CAAC,OAAO,CAAC,CAAC;IACvC;;;;OAIG;IACH,mBAAmB,CACjB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,yCAAyC,GAClD,0BAA0B,CAAC,OAAO,CAAC,CAAC;IACvC;;;;;OAKG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAChC;;;;;OAKG;IACH,cAAc,CACZ,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,oCAAoC,GAC7C,OAAO,CAAC,8BAA8B,CAAC,CAAC;IAC3C;;;;;OAKG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CAAC,sBAAsB,CAAC,CAAC;IACnC;;;;;OAKG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CAAC,IAAI,CAAC,CAAC;CAClB"}
@@ -0,0 +1,9 @@
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
+ export {};
9
+ //# sourceMappingURL=services.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"services.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/services.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -0,0 +1,13 @@
1
+ export interface PageInfo {
2
+ continuationToken?: string;
3
+ }
4
+ /**
5
+ * Given the last `.value` produced by the `byPage` iterator,
6
+ * returns a continuation token that can be used to begin paging from
7
+ * that point later.
8
+ * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
9
+ * @returns The continuation token that can be passed into byPage() during future calls.
10
+ */
11
+ export declare function getContinuationToken(page: unknown): string | undefined;
12
+ export declare function setContinuationToken(page: unknown, continuationToken: string | undefined): void;
13
+ //# sourceMappingURL=pagingHelper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagingHelper.d.ts","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,QAAQ;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAID;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAKtE;AAED,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,OAAO,EACb,iBAAiB,EAAE,MAAM,GAAG,SAAS,GACpC,IAAI,CAON"}
@@ -0,0 +1,32 @@
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
+ const pageMap = new WeakMap();
9
+ /**
10
+ * Given the last `.value` produced by the `byPage` iterator,
11
+ * returns a continuation token that can be used to begin paging from
12
+ * that point later.
13
+ * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
14
+ * @returns The continuation token that can be passed into byPage() during future calls.
15
+ */
16
+ export function getContinuationToken(page) {
17
+ var _a;
18
+ if (typeof page !== "object" || page === null) {
19
+ return undefined;
20
+ }
21
+ return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
22
+ }
23
+ export function setContinuationToken(page, continuationToken) {
24
+ var _a;
25
+ if (typeof page !== "object" || page === null || !continuationToken) {
26
+ return;
27
+ }
28
+ const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
29
+ pageInfo.continuationToken = continuationToken;
30
+ pageMap.set(page, pageInfo);
31
+ }
32
+ //# sourceMappingURL=pagingHelper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa;;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE;QAC7C,OAAO,SAAS,CAAC;KAClB;IACD,OAAO,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,0CAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,IAAa,EACb,iBAAqC;;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE;QACnE,OAAO;KACR;IACD,MAAM,QAAQ,GAAG,MAAA,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare const testPollingOptions: {
2
+ updateIntervalInMs: number | undefined;
3
+ };
4
+ //# sourceMappingURL=apicenter_operations_test.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apicenter_operations_test.spec.d.ts","sourceRoot":"","sources":["../../test/apicenter_operations_test.spec.ts"],"names":[],"mappings":"AA+BA,eAAO,MAAM,kBAAkB;;CAE9B,CAAC"}
@@ -0,0 +1,76 @@
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 { __asyncValues, __awaiter } from "tslib";
9
+ import { env, Recorder, isPlaybackMode, } from "@azure-tools/test-recorder";
10
+ import { createTestCredential } from "@azure-tools/test-credential";
11
+ import { AzureAPICenter } from "../src/azureAPICenter";
12
+ const replaceableVariables = {
13
+ AZURE_CLIENT_ID: "azure_client_id",
14
+ AZURE_CLIENT_SECRET: "azure_client_secret",
15
+ AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
16
+ SUBSCRIPTION_ID: "azure_subscription_id"
17
+ };
18
+ const recorderOptions = {
19
+ envSetupForPlayback: replaceableVariables
20
+ };
21
+ export const testPollingOptions = {
22
+ updateIntervalInMs: isPlaybackMode() ? 0 : undefined,
23
+ };
24
+ describe("AzureAPICenter test", () => {
25
+ let recorder;
26
+ let subscriptionId;
27
+ let client;
28
+ let location;
29
+ let resourceGroup;
30
+ let resourceName;
31
+ beforeEach(function () {
32
+ return __awaiter(this, void 0, void 0, function* () {
33
+ recorder = new Recorder(this.currentTest);
34
+ yield recorder.start(recorderOptions);
35
+ subscriptionId = env.SUBSCRIPTION_ID || '';
36
+ // This is an example of how the environment variables are used
37
+ const credential = createTestCredential();
38
+ client = new AzureAPICenter(credential, subscriptionId, recorder.configureClientOptions({}));
39
+ location = "eastus";
40
+ resourceGroup = "myjstest";
41
+ resourceName = "testresource";
42
+ });
43
+ });
44
+ afterEach(function () {
45
+ return __awaiter(this, void 0, void 0, function* () {
46
+ yield recorder.stop();
47
+ });
48
+ });
49
+ it("operation list test", function () {
50
+ var _a, e_1, _b, _c;
51
+ return __awaiter(this, void 0, void 0, function* () {
52
+ const resArray = new Array();
53
+ try {
54
+ for (var _d = true, _e = __asyncValues(client.operations.list()), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
55
+ _c = _f.value;
56
+ _d = false;
57
+ try {
58
+ let item = _c;
59
+ resArray.push(item);
60
+ }
61
+ finally {
62
+ _d = true;
63
+ }
64
+ }
65
+ }
66
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
67
+ finally {
68
+ try {
69
+ if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
70
+ }
71
+ finally { if (e_1) throw e_1.error; }
72
+ }
73
+ });
74
+ });
75
+ });
76
+ //# sourceMappingURL=apicenter_operations_test.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apicenter_operations_test.spec.js","sourceRoot":"","sources":["../../test/apicenter_operations_test.spec.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EACL,GAAG,EACH,QAAQ,EAGR,cAAc,GACf,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAGpE,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,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,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,kBAAkB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;CACrD,CAAC;AAEF,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;IACnC,IAAI,QAAkB,CAAC;IACvB,IAAI,cAAsB,CAAC;IAC3B,IAAI,MAAsB,CAAC;IAC3B,IAAI,QAAgB,CAAC;IACrB,IAAI,aAAqB,CAAC;IAC1B,IAAI,YAAoB,CAAC;IAEzB,UAAU,CAAC;;YACT,QAAQ,GAAG,IAAI,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YAC1C,MAAM,QAAQ,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;YACtC,cAAc,GAAG,GAAG,CAAC,eAAe,IAAI,EAAE,CAAC;YAC3C,+DAA+D;YAC/D,MAAM,UAAU,GAAG,oBAAoB,EAAE,CAAC;YAC1C,MAAM,GAAG,IAAI,cAAc,CAAC,UAAU,EAAE,cAAc,EAAE,QAAQ,CAAC,sBAAsB,CAAC,EAAE,CAAC,CAAC,CAAC;YAC7F,QAAQ,GAAG,QAAQ,CAAC;YACpB,aAAa,GAAG,UAAU,CAAC;YAC3B,YAAY,GAAG,cAAc,CAAA;QAC/B,CAAC;KAAA,CAAC,CAAC;IAEH,SAAS,CAAC;;YACR,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QACxB,CAAC;KAAA,CAAC,CAAC;IAEH,EAAE,CAAC,qBAAqB,EAAE;;;YACxB,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;gBAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,CAAA,IAAA;oBAAxB,cAAwB;oBAAxB,WAAwB;;wBAApC,IAAI,IAAI,KAAA,CAAA;wBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;iBACrB;;;;;;;;;;KACF,CAAC,CAAC;AACL,CAAC,CAAC,CAAA"}
package/package.json ADDED
@@ -0,0 +1,121 @@
1
+ {
2
+ "name": "@azure/arm-apicenter",
3
+ "sdk-type": "mgmt",
4
+ "author": "Microsoft Corporation",
5
+ "description": "A generated SDK for AzureAPICenter.",
6
+ "version": "1.0.0-beta.1",
7
+ "engines": {
8
+ "node": ">=14.0.0"
9
+ },
10
+ "dependencies": {
11
+ "@azure/core-paging": "^1.2.0",
12
+ "@azure/core-client": "^1.7.0",
13
+ "@azure/core-auth": "^1.3.0",
14
+ "@azure/core-rest-pipeline": "^1.8.0",
15
+ "tslib": "^2.2.0"
16
+ },
17
+ "keywords": [
18
+ "node",
19
+ "azure",
20
+ "typescript",
21
+ "browser",
22
+ "isomorphic"
23
+ ],
24
+ "license": "MIT",
25
+ "main": "./dist/index.js",
26
+ "module": "./dist-esm/src/index.js",
27
+ "types": "./types/arm-apicenter.d.ts",
28
+ "devDependencies": {
29
+ "@microsoft/api-extractor": "^7.31.1",
30
+ "@rollup/plugin-commonjs": "^24.0.0",
31
+ "@rollup/plugin-json": "^6.0.0",
32
+ "@rollup/plugin-multi-entry": "^6.0.0",
33
+ "@rollup/plugin-node-resolve": "^13.1.3",
34
+ "mkdirp": "^2.1.2",
35
+ "rollup": "^2.66.1",
36
+ "rollup-plugin-sourcemaps": "^0.6.3",
37
+ "typescript": "~5.0.0",
38
+ "uglify-js": "^3.4.9",
39
+ "rimraf": "^3.0.0",
40
+ "dotenv": "^16.0.0",
41
+ "@azure/identity": "^2.0.1",
42
+ "@azure-tools/test-recorder": "^3.0.0",
43
+ "@azure-tools/test-credential": "^1.0.0",
44
+ "mocha": "^7.1.1",
45
+ "@types/chai": "^4.2.8",
46
+ "chai": "^4.2.0",
47
+ "cross-env": "^7.0.2",
48
+ "@types/node": "^14.0.0",
49
+ "@azure/dev-tool": "^1.0.0"
50
+ },
51
+ "repository": {
52
+ "type": "git",
53
+ "url": "https://github.com/Azure/azure-sdk-for-js.git"
54
+ },
55
+ "bugs": {
56
+ "url": "https://github.com/Azure/azure-sdk-for-js/issues"
57
+ },
58
+ "files": [
59
+ "dist/**/*.js",
60
+ "dist/**/*.js.map",
61
+ "dist/**/*.d.ts",
62
+ "dist/**/*.d.ts.map",
63
+ "dist-esm/**/*.js",
64
+ "dist-esm/**/*.js.map",
65
+ "dist-esm/**/*.d.ts",
66
+ "dist-esm/**/*.d.ts.map",
67
+ "src/**/*.ts",
68
+ "README.md",
69
+ "LICENSE",
70
+ "rollup.config.js",
71
+ "tsconfig.json",
72
+ "review/*",
73
+ "CHANGELOG.md",
74
+ "types/*"
75
+ ],
76
+ "scripts": {
77
+ "build": "npm run clean && tsc && rollup -c 2>&1 && npm run minify && mkdirp ./review && npm run extract-api",
78
+ "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
79
+ "prepack": "npm run build",
80
+ "pack": "npm pack 2>&1",
81
+ "extract-api": "api-extractor run --local",
82
+ "lint": "echo skipped",
83
+ "audit": "echo skipped",
84
+ "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log",
85
+ "build:node": "echo skipped",
86
+ "build:browser": "echo skipped",
87
+ "build:test": "echo skipped",
88
+ "build:samples": "echo skipped.",
89
+ "check-format": "echo skipped",
90
+ "execute:samples": "echo skipped",
91
+ "format": "echo skipped",
92
+ "test": "npm run integration-test",
93
+ "test:node": "echo skipped",
94
+ "test:browser": "echo skipped",
95
+ "unit-test": "npm run unit-test:node && npm run unit-test:browser",
96
+ "unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
97
+ "unit-test:browser": "echo skipped",
98
+ "integration-test": "npm run integration-test:node && npm run integration-test:browser",
99
+ "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
100
+ "integration-test:browser": "echo skipped"
101
+ },
102
+ "sideEffects": false,
103
+ "//metadata": {
104
+ "constantPaths": [
105
+ {
106
+ "path": "src/azureAPICenter.ts",
107
+ "prefix": "packageDetails"
108
+ }
109
+ ]
110
+ },
111
+ "autoPublish": true,
112
+ "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/apicenter/arm-apicenter",
113
+ "//sampleConfiguration": {
114
+ "productName": "",
115
+ "productSlugs": [
116
+ "azure"
117
+ ],
118
+ "disableDocsMs": true,
119
+ "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-apicenter?view=azure-node-preview"
120
+ }
121
+ }
@@ -0,0 +1,274 @@
1
+ ## API Report File for "@azure/arm-apicenter"
2
+
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ ```ts
6
+
7
+ import * as coreAuth from '@azure/core-auth';
8
+ import * as coreClient from '@azure/core-client';
9
+ import { PagedAsyncIterableIterator } from '@azure/core-paging';
10
+
11
+ // @public
12
+ export type ActionType = string;
13
+
14
+ // @public (undocumented)
15
+ export class AzureAPICenter extends coreClient.ServiceClient {
16
+ // (undocumented)
17
+ $host: string;
18
+ constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: AzureAPICenterOptionalParams);
19
+ // (undocumented)
20
+ apiVersion: string;
21
+ // (undocumented)
22
+ operations: Operations;
23
+ // (undocumented)
24
+ services: Services;
25
+ // (undocumented)
26
+ subscriptionId: string;
27
+ }
28
+
29
+ // @public
30
+ export interface AzureAPICenterOptionalParams extends coreClient.ServiceClientOptions {
31
+ $host?: string;
32
+ apiVersion?: string;
33
+ endpoint?: string;
34
+ }
35
+
36
+ // @public
37
+ export type CreatedByType = string;
38
+
39
+ // @public
40
+ export interface ErrorAdditionalInfo {
41
+ readonly info?: Record<string, unknown>;
42
+ readonly type?: string;
43
+ }
44
+
45
+ // @public
46
+ export interface ErrorDetail {
47
+ readonly additionalInfo?: ErrorAdditionalInfo[];
48
+ readonly code?: string;
49
+ readonly details?: ErrorDetail[];
50
+ readonly message?: string;
51
+ readonly target?: string;
52
+ }
53
+
54
+ // @public
55
+ export interface ErrorResponse {
56
+ error?: ErrorDetail;
57
+ }
58
+
59
+ // @public
60
+ export function getContinuationToken(page: unknown): string | undefined;
61
+
62
+ // @public
63
+ export enum KnownActionType {
64
+ Internal = "Internal"
65
+ }
66
+
67
+ // @public
68
+ export enum KnownCreatedByType {
69
+ Application = "Application",
70
+ Key = "Key",
71
+ ManagedIdentity = "ManagedIdentity",
72
+ User = "User"
73
+ }
74
+
75
+ // @public
76
+ export enum KnownManagedServiceIdentityType {
77
+ None = "None",
78
+ SystemAssigned = "SystemAssigned",
79
+ SystemAssignedUserAssigned = "SystemAssigned,UserAssigned",
80
+ UserAssigned = "UserAssigned"
81
+ }
82
+
83
+ // @public
84
+ export enum KnownOrigin {
85
+ System = "system",
86
+ User = "user",
87
+ UserSystem = "user,system"
88
+ }
89
+
90
+ // @public
91
+ export enum KnownProvisioningState {
92
+ Canceled = "Canceled",
93
+ Failed = "Failed",
94
+ Succeeded = "Succeeded"
95
+ }
96
+
97
+ // @public
98
+ export interface ManagedServiceIdentity {
99
+ readonly principalId?: string;
100
+ readonly tenantId?: string;
101
+ type: ManagedServiceIdentityType;
102
+ userAssignedIdentities?: {
103
+ [propertyName: string]: UserAssignedIdentity | null;
104
+ };
105
+ }
106
+
107
+ // @public
108
+ export type ManagedServiceIdentityType = string;
109
+
110
+ // @public
111
+ export interface Operation {
112
+ readonly actionType?: ActionType;
113
+ display?: OperationDisplay;
114
+ readonly isDataAction?: boolean;
115
+ readonly name?: string;
116
+ readonly origin?: Origin;
117
+ }
118
+
119
+ // @public
120
+ export interface OperationDisplay {
121
+ readonly description?: string;
122
+ readonly operation?: string;
123
+ readonly provider?: string;
124
+ readonly resource?: string;
125
+ }
126
+
127
+ // @public
128
+ export interface OperationListResult {
129
+ readonly nextLink?: string;
130
+ readonly value?: Operation[];
131
+ }
132
+
133
+ // @public
134
+ export interface Operations {
135
+ list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
136
+ }
137
+
138
+ // @public
139
+ export interface OperationsListNextOptionalParams extends coreClient.OperationOptions {
140
+ }
141
+
142
+ // @public
143
+ export type OperationsListNextResponse = OperationListResult;
144
+
145
+ // @public
146
+ export interface OperationsListOptionalParams extends coreClient.OperationOptions {
147
+ }
148
+
149
+ // @public
150
+ export type OperationsListResponse = OperationListResult;
151
+
152
+ // @public
153
+ export type Origin = string;
154
+
155
+ // @public
156
+ export type ProvisioningState = string;
157
+
158
+ // @public
159
+ export interface Resource {
160
+ readonly id?: string;
161
+ readonly name?: string;
162
+ readonly systemData?: SystemData;
163
+ readonly type?: string;
164
+ }
165
+
166
+ // @public
167
+ export interface Service extends TrackedResource {
168
+ identity?: ManagedServiceIdentity;
169
+ readonly provisioningState?: ProvisioningState;
170
+ }
171
+
172
+ // @public
173
+ export interface ServiceCollection {
174
+ nextLink?: string;
175
+ value: Service[];
176
+ }
177
+
178
+ // @public
179
+ export interface Services {
180
+ createOrUpdate(resourceGroupName: string, serviceName: string, options?: ServicesCreateOrUpdateOptionalParams): Promise<ServicesCreateOrUpdateResponse>;
181
+ delete(resourceGroupName: string, serviceName: string, options?: ServicesDeleteOptionalParams): Promise<void>;
182
+ get(resourceGroupName: string, serviceName: string, options?: ServicesGetOptionalParams): Promise<ServicesGetResponse>;
183
+ listByResourceGroup(resourceGroupName: string, options?: ServicesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Service>;
184
+ listBySubscription(options?: ServicesListBySubscriptionOptionalParams): PagedAsyncIterableIterator<Service>;
185
+ update(resourceGroupName: string, serviceName: string, options?: ServicesUpdateOptionalParams): Promise<ServicesUpdateResponse>;
186
+ }
187
+
188
+ // @public
189
+ export interface ServicesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
190
+ resource?: Service;
191
+ }
192
+
193
+ // @public
194
+ export type ServicesCreateOrUpdateResponse = Service;
195
+
196
+ // @public
197
+ export interface ServicesDeleteOptionalParams extends coreClient.OperationOptions {
198
+ }
199
+
200
+ // @public
201
+ export interface ServicesGetOptionalParams extends coreClient.OperationOptions {
202
+ }
203
+
204
+ // @public
205
+ export type ServicesGetResponse = Service;
206
+
207
+ // @public
208
+ export interface ServicesListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
209
+ }
210
+
211
+ // @public
212
+ export type ServicesListByResourceGroupNextResponse = ServiceCollection;
213
+
214
+ // @public
215
+ export interface ServicesListByResourceGroupOptionalParams extends coreClient.OperationOptions {
216
+ }
217
+
218
+ // @public
219
+ export type ServicesListByResourceGroupResponse = ServiceCollection;
220
+
221
+ // @public
222
+ export interface ServicesListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {
223
+ }
224
+
225
+ // @public
226
+ export type ServicesListBySubscriptionNextResponse = ServiceCollection;
227
+
228
+ // @public
229
+ export interface ServicesListBySubscriptionOptionalParams extends coreClient.OperationOptions {
230
+ }
231
+
232
+ // @public
233
+ export type ServicesListBySubscriptionResponse = ServiceCollection;
234
+
235
+ // @public
236
+ export interface ServicesUpdateOptionalParams extends coreClient.OperationOptions {
237
+ parameters?: ServiceUpdate;
238
+ }
239
+
240
+ // @public
241
+ export type ServicesUpdateResponse = Service;
242
+
243
+ // @public
244
+ export interface ServiceUpdate {
245
+ readonly provisioningState?: ProvisioningState;
246
+ }
247
+
248
+ // @public
249
+ export interface SystemData {
250
+ createdAt?: Date;
251
+ createdBy?: string;
252
+ createdByType?: CreatedByType;
253
+ lastModifiedAt?: Date;
254
+ lastModifiedBy?: string;
255
+ lastModifiedByType?: CreatedByType;
256
+ }
257
+
258
+ // @public
259
+ export interface TrackedResource extends Resource {
260
+ location: string;
261
+ tags?: {
262
+ [propertyName: string]: string;
263
+ };
264
+ }
265
+
266
+ // @public
267
+ export interface UserAssignedIdentity {
268
+ readonly clientId?: string;
269
+ readonly principalId?: string;
270
+ }
271
+
272
+ // (No @packageDocumentation comment for this package)
273
+
274
+ ```