@azure/arm-portal 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 (92) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/LICENSE +21 -0
  3. package/README.md +98 -0
  4. package/dist/index.js +1627 -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/src/index.d.ts +5 -0
  9. package/dist-esm/src/index.d.ts.map +1 -0
  10. package/dist-esm/src/index.js +12 -0
  11. package/dist-esm/src/index.js.map +1 -0
  12. package/dist-esm/src/models/index.d.ts +334 -0
  13. package/dist-esm/src/models/index.d.ts.map +1 -0
  14. package/dist-esm/src/models/index.js +13 -0
  15. package/dist-esm/src/models/index.js.map +1 -0
  16. package/dist-esm/src/models/mappers.d.ts +28 -0
  17. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  18. package/dist-esm/src/models/mappers.js +624 -0
  19. package/dist-esm/src/models/mappers.js.map +1 -0
  20. package/dist-esm/src/models/parameters.d.ts +14 -0
  21. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  22. package/dist-esm/src/models/parameters.js +120 -0
  23. package/dist-esm/src/models/parameters.js.map +1 -0
  24. package/dist-esm/src/operations/dashboards.d.ts +83 -0
  25. package/dist-esm/src/operations/dashboards.d.ts.map +1 -0
  26. package/dist-esm/src/operations/dashboards.js +361 -0
  27. package/dist-esm/src/operations/dashboards.js.map +1 -0
  28. package/dist-esm/src/operations/index.d.ts +5 -0
  29. package/dist-esm/src/operations/index.d.ts.map +1 -0
  30. package/dist-esm/src/operations/index.js +12 -0
  31. package/dist-esm/src/operations/index.js.map +1 -0
  32. package/dist-esm/src/operations/listTenantConfigurationViolations.d.ts +32 -0
  33. package/dist-esm/src/operations/listTenantConfigurationViolations.d.ts.map +1 -0
  34. package/dist-esm/src/operations/listTenantConfigurationViolations.js +120 -0
  35. package/dist-esm/src/operations/listTenantConfigurationViolations.js.map +1 -0
  36. package/dist-esm/src/operations/operations.d.ts +32 -0
  37. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  38. package/dist-esm/src/operations/operations.js +120 -0
  39. package/dist-esm/src/operations/operations.js.map +1 -0
  40. package/dist-esm/src/operations/tenantConfigurations.d.ts +52 -0
  41. package/dist-esm/src/operations/tenantConfigurations.d.ts.map +1 -0
  42. package/dist-esm/src/operations/tenantConfigurations.js +199 -0
  43. package/dist-esm/src/operations/tenantConfigurations.js.map +1 -0
  44. package/dist-esm/src/operationsInterfaces/dashboards.d.ts +47 -0
  45. package/dist-esm/src/operationsInterfaces/dashboards.d.ts.map +1 -0
  46. package/dist-esm/src/operationsInterfaces/dashboards.js +9 -0
  47. package/dist-esm/src/operationsInterfaces/dashboards.js.map +1 -0
  48. package/dist-esm/src/operationsInterfaces/index.d.ts +5 -0
  49. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  50. package/dist-esm/src/operationsInterfaces/index.js +12 -0
  51. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  52. package/dist-esm/src/operationsInterfaces/listTenantConfigurationViolations.d.ts +11 -0
  53. package/dist-esm/src/operationsInterfaces/listTenantConfigurationViolations.d.ts.map +1 -0
  54. package/dist-esm/src/operationsInterfaces/listTenantConfigurationViolations.js +9 -0
  55. package/dist-esm/src/operationsInterfaces/listTenantConfigurationViolations.js.map +1 -0
  56. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  57. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  58. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  59. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  60. package/dist-esm/src/operationsInterfaces/tenantConfigurations.d.ts +31 -0
  61. package/dist-esm/src/operationsInterfaces/tenantConfigurations.d.ts.map +1 -0
  62. package/dist-esm/src/operationsInterfaces/tenantConfigurations.js +9 -0
  63. package/dist-esm/src/operationsInterfaces/tenantConfigurations.js.map +1 -0
  64. package/dist-esm/src/portal.d.ts +22 -0
  65. package/dist-esm/src/portal.d.ts.map +1 -0
  66. package/dist-esm/src/portal.js +55 -0
  67. package/dist-esm/src/portal.js.map +1 -0
  68. package/dist-esm/test/sampleTest.d.ts +2 -0
  69. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  70. package/dist-esm/test/sampleTest.js +40 -0
  71. package/dist-esm/test/sampleTest.js.map +1 -0
  72. package/package.json +90 -0
  73. package/review/arm-portal.api.md +349 -0
  74. package/rollup.config.js +188 -0
  75. package/src/index.ts +12 -0
  76. package/src/models/index.ts +389 -0
  77. package/src/models/mappers.ts +658 -0
  78. package/src/models/parameters.ts +141 -0
  79. package/src/operations/dashboards.ts +451 -0
  80. package/src/operations/index.ts +12 -0
  81. package/src/operations/listTenantConfigurationViolations.ts +138 -0
  82. package/src/operations/operations.ts +137 -0
  83. package/src/operations/tenantConfigurations.ts +244 -0
  84. package/src/operationsInterfaces/dashboards.ts +91 -0
  85. package/src/operationsInterfaces/index.ts +12 -0
  86. package/src/operationsInterfaces/listTenantConfigurationViolations.ts +25 -0
  87. package/src/operationsInterfaces/operations.ts +25 -0
  88. package/src/operationsInterfaces/tenantConfigurations.ts +61 -0
  89. package/src/portal.ts +94 -0
  90. package/tsconfig.json +19 -0
  91. package/types/arm-portal.d.ts +505 -0
  92. package/types/tsdoc-metadata.json +11 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listTenantConfigurationViolations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/listTenantConfigurationViolations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,SAAS,EACT,mDAAmD,EACpD,MAAM,WAAW,CAAC;AAGnB,kEAAkE;AAClE,MAAM,WAAW,iCAAiC;IAChD;;;OAGG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,mDAAmD,GAC5D,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=listTenantConfigurationViolations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listTenantConfigurationViolations.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/listTenantConfigurationViolations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -0,0 +1,11 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { ResourceProviderOperation, OperationsListOptionalParams } from "../models";
3
+ /** Interface representing a Operations. */
4
+ export interface Operations {
5
+ /**
6
+ * The Microsoft Portal operations API.
7
+ * @param options The options parameters.
8
+ */
9
+ list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<ResourceProviderOperation>;
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,EACL,yBAAyB,EACzB,4BAA4B,EAC7B,MAAM,WAAW,CAAC;AAGnB,2CAA2C;AAC3C,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,yBAAyB,CAAC,CAAC;CAC1D"}
@@ -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,31 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Configuration, TenantConfigurationsListOptionalParams, ConfigurationName, TenantConfigurationsGetOptionalParams, TenantConfigurationsGetResponse, TenantConfigurationsCreateOptionalParams, TenantConfigurationsCreateResponse, TenantConfigurationsDeleteOptionalParams } from "../models";
3
+ /** Interface representing a TenantConfigurations. */
4
+ export interface TenantConfigurations {
5
+ /**
6
+ * Gets list of the tenant configurations.
7
+ * @param options The options parameters.
8
+ */
9
+ list(options?: TenantConfigurationsListOptionalParams): PagedAsyncIterableIterator<Configuration>;
10
+ /**
11
+ * Gets the tenant configuration.
12
+ * @param configurationName The configuration name. Value must be 'default'
13
+ * @param options The options parameters.
14
+ */
15
+ get(configurationName: ConfigurationName, options?: TenantConfigurationsGetOptionalParams): Promise<TenantConfigurationsGetResponse>;
16
+ /**
17
+ * Create the tenant configuration. If configuration already exists - update it. User has to be a
18
+ * Tenant Admin for this operation.
19
+ * @param configurationName The configuration name. Value must be 'default'
20
+ * @param tenantConfiguration The parameters required to create or update tenant configuration.
21
+ * @param options The options parameters.
22
+ */
23
+ create(configurationName: ConfigurationName, tenantConfiguration: Configuration, options?: TenantConfigurationsCreateOptionalParams): Promise<TenantConfigurationsCreateResponse>;
24
+ /**
25
+ * Delete the tenant configuration. User has to be a Tenant Admin for this operation.
26
+ * @param configurationName The configuration name. Value must be 'default'
27
+ * @param options The options parameters.
28
+ */
29
+ delete(configurationName: ConfigurationName, options?: TenantConfigurationsDeleteOptionalParams): Promise<void>;
30
+ }
31
+ //# sourceMappingURL=tenantConfigurations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tenantConfigurations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/tenantConfigurations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,aAAa,EACb,sCAAsC,EACtC,iBAAiB,EACjB,qCAAqC,EACrC,+BAA+B,EAC/B,wCAAwC,EACxC,kCAAkC,EAClC,wCAAwC,EACzC,MAAM,WAAW,CAAC;AAGnB,qDAAqD;AACrD,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,sCAAsC,GAC/C,0BAA0B,CAAC,aAAa,CAAC,CAAC;IAC7C;;;;OAIG;IACH,GAAG,CACD,iBAAiB,EAAE,iBAAiB,EACpC,OAAO,CAAC,EAAE,qCAAqC,GAC9C,OAAO,CAAC,+BAA+B,CAAC,CAAC;IAC5C;;;;;;OAMG;IACH,MAAM,CACJ,iBAAiB,EAAE,iBAAiB,EACpC,mBAAmB,EAAE,aAAa,EAClC,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CAAC,kCAAkC,CAAC,CAAC;IAC/C;;;;OAIG;IACH,MAAM,CACJ,iBAAiB,EAAE,iBAAiB,EACpC,OAAO,CAAC,EAAE,wCAAwC,GACjD,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=tenantConfigurations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tenantConfigurations.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/tenantConfigurations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -0,0 +1,22 @@
1
+ import * as coreClient from "@azure/core-client";
2
+ import * as coreAuth from "@azure/core-auth";
3
+ import { Operations, Dashboards, TenantConfigurations, ListTenantConfigurationViolations } from "./operationsInterfaces";
4
+ import { PortalOptionalParams } from "./models";
5
+ export declare class Portal extends coreClient.ServiceClient {
6
+ $host: string;
7
+ apiVersion: string;
8
+ subscriptionId: string;
9
+ /**
10
+ * Initializes a new instance of the Portal class.
11
+ * @param credentials Subscription credentials which uniquely identify client subscription.
12
+ * @param subscriptionId The Azure subscription ID. This is a GUID-formatted string (e.g.
13
+ * 00000000-0000-0000-0000-000000000000)
14
+ * @param options The parameter options
15
+ */
16
+ constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: PortalOptionalParams);
17
+ operations: Operations;
18
+ dashboards: Dashboards;
19
+ tenantConfigurations: TenantConfigurations;
20
+ listTenantConfigurationViolations: ListTenantConfigurationViolations;
21
+ }
22
+ //# sourceMappingURL=portal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"portal.d.ts","sourceRoot":"","sources":["../../src/portal.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAO7C,OAAO,EACL,UAAU,EACV,UAAU,EACV,oBAAoB,EACpB,iCAAiC,EAClC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAEhD,qBAAa,MAAO,SAAQ,UAAU,CAAC,aAAa;IAClD,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;;OAMG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,oBAAoB;IAkDhC,UAAU,EAAE,UAAU,CAAC;IACvB,UAAU,EAAE,UAAU,CAAC;IACvB,oBAAoB,EAAE,oBAAoB,CAAC;IAC3C,iCAAiC,EAAE,iCAAiC,CAAC;CACtE"}
@@ -0,0 +1,55 @@
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 * as coreClient from "@azure/core-client";
9
+ import { OperationsImpl, DashboardsImpl, TenantConfigurationsImpl, ListTenantConfigurationViolationsImpl } from "./operations";
10
+ export class Portal extends coreClient.ServiceClient {
11
+ /**
12
+ * Initializes a new instance of the Portal class.
13
+ * @param credentials Subscription credentials which uniquely identify client subscription.
14
+ * @param subscriptionId The Azure subscription ID. This is a GUID-formatted string (e.g.
15
+ * 00000000-0000-0000-0000-000000000000)
16
+ * @param options The parameter options
17
+ */
18
+ constructor(credentials, subscriptionId, options) {
19
+ if (credentials === undefined) {
20
+ throw new Error("'credentials' cannot be null");
21
+ }
22
+ if (subscriptionId === undefined) {
23
+ throw new Error("'subscriptionId' cannot be null");
24
+ }
25
+ // Initializing default values for options
26
+ if (!options) {
27
+ options = {};
28
+ }
29
+ const defaults = {
30
+ requestContentType: "application/json; charset=utf-8",
31
+ credential: credentials
32
+ };
33
+ const packageDetails = `azsdk-js-arm-portal/1.0.0-beta.1`;
34
+ const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
35
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
36
+ : `${packageDetails}`;
37
+ if (!options.credentialScopes) {
38
+ options.credentialScopes = ["https://management.azure.com/.default"];
39
+ }
40
+ const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
41
+ userAgentPrefix
42
+ }, baseUri: options.endpoint || "https://management.azure.com" });
43
+ super(optionsWithDefaults);
44
+ // Parameter assignments
45
+ this.subscriptionId = subscriptionId;
46
+ // Assigning values to Constant parameters
47
+ this.$host = options.$host || "https://management.azure.com";
48
+ this.apiVersion = options.apiVersion || "2020-09-01-preview";
49
+ this.operations = new OperationsImpl(this);
50
+ this.dashboards = new DashboardsImpl(this);
51
+ this.tenantConfigurations = new TenantConfigurationsImpl(this);
52
+ this.listTenantConfigurationViolations = new ListTenantConfigurationViolationsImpl(this);
53
+ }
54
+ }
55
+ //# sourceMappingURL=portal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"portal.js","sourceRoot":"","sources":["../../src/portal.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,OAAO,EACL,cAAc,EACd,cAAc,EACd,wBAAwB,EACxB,qCAAqC,EACtC,MAAM,cAAc,CAAC;AAStB,MAAM,OAAO,MAAO,SAAQ,UAAU,CAAC,aAAa;IAKlD;;;;;;OAMG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAA8B;QAE9B,IAAI,WAAW,KAAK,SAAS,EAAE;YAC7B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;SACjD;QACD,IAAI,cAAc,KAAK,SAAS,EAAE;YAChC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;SACpD;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,EAAE,CAAC;SACd;QACD,MAAM,QAAQ,GAAyB;YACrC,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,kCAAkC,CAAC;QAC1D,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;YACjE,CAAC,CAAC,GAAG,cAAc,EAAE,CAAC;QAE1B,IAAI,CAAC,OAAO,CAAC,gBAAgB,EAAE;YAC7B,OAAO,CAAC,gBAAgB,GAAG,CAAC,uCAAuC,CAAC,CAAC;SACtE;QACD,MAAM,mBAAmB,iDACpB,QAAQ,GACR,OAAO,KACV,gBAAgB,EAAE;gBAChB,eAAe;aAChB,EACD,OAAO,EAAE,OAAO,CAAC,QAAQ,IAAI,8BAA8B,GAC5D,CAAC;QACF,KAAK,CAAC,mBAAmB,CAAC,CAAC;QAC3B,wBAAwB;QACxB,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QAErC,0CAA0C;QAC1C,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,8BAA8B,CAAC;QAC7D,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,oBAAoB,CAAC;QAC7D,IAAI,CAAC,UAAU,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;QAC3C,IAAI,CAAC,UAAU,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;QAC3C,IAAI,CAAC,oBAAoB,GAAG,IAAI,wBAAwB,CAAC,IAAI,CAAC,CAAC;QAC/D,IAAI,CAAC,iCAAiC,GAAG,IAAI,qCAAqC,CAChF,IAAI,CACL,CAAC;IACJ,CAAC;CAMF"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=sampleTest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sampleTest.d.ts","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":""}
@@ -0,0 +1,40 @@
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
+ 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: []
21
+ };
22
+ describe("My test", () => {
23
+ let recorder;
24
+ beforeEach(function () {
25
+ return __awaiter(this, void 0, void 0, function* () {
26
+ recorder = record(this, recorderEnvSetup);
27
+ });
28
+ });
29
+ afterEach(function () {
30
+ return __awaiter(this, void 0, void 0, function* () {
31
+ yield recorder.stop();
32
+ });
33
+ });
34
+ it("sample test", function () {
35
+ return __awaiter(this, void 0, void 0, function* () {
36
+ console.log("Hi, I'm a test!");
37
+ });
38
+ });
39
+ });
40
+ //# sourceMappingURL=sampleTest.js.map
@@ -0,0 +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"}
package/package.json ADDED
@@ -0,0 +1,90 @@
1
+ {
2
+ "name": "@azure/arm-portal",
3
+ "sdk-type": "mgmt",
4
+ "author": "Microsoft Corporation",
5
+ "description": "A generated SDK for Portal.",
6
+ "version": "1.0.0-beta.1",
7
+ "engines": { "node": ">=12.0.0" },
8
+ "dependencies": {
9
+ "@azure/core-paging": "^1.2.0",
10
+ "@azure/core-client": "^1.0.0",
11
+ "@azure/core-auth": "^1.3.0",
12
+ "@azure/core-rest-pipeline": "^1.1.0",
13
+ "tslib": "^2.2.0"
14
+ },
15
+ "keywords": ["node", "azure", "typescript", "browser", "isomorphic"],
16
+ "license": "MIT",
17
+ "main": "./dist/index.js",
18
+ "module": "./dist-esm/src/index.js",
19
+ "types": "./types/arm-portal.d.ts",
20
+ "devDependencies": {
21
+ "@microsoft/api-extractor": "^7.18.11",
22
+ "@rollup/plugin-commonjs": "11.0.2",
23
+ "@rollup/plugin-json": "^4.0.0",
24
+ "@rollup/plugin-multi-entry": "^3.0.0",
25
+ "@rollup/plugin-node-resolve": "^8.0.0",
26
+ "mkdirp": "^1.0.4",
27
+ "rollup": "^1.16.3",
28
+ "rollup-plugin-sourcemaps": "^0.4.2",
29
+ "typescript": "~4.2.0",
30
+ "uglify-js": "^3.4.9",
31
+ "rimraf": "^3.0.0",
32
+ "@azure/identity": "^2.0.1",
33
+ "@azure-tools/test-recorder": "^1.0.0",
34
+ "mocha": "^7.1.1",
35
+ "cross-env": "^7.0.2"
36
+ },
37
+ "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/portal/arm-portal",
38
+ "repository": {
39
+ "type": "git",
40
+ "url": "https://github.com/Azure/azure-sdk-for-js.git"
41
+ },
42
+ "bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
43
+ "files": [
44
+ "dist/**/*.js",
45
+ "dist/**/*.js.map",
46
+ "dist/**/*.d.ts",
47
+ "dist/**/*.d.ts.map",
48
+ "dist-esm/**/*.js",
49
+ "dist-esm/**/*.js.map",
50
+ "dist-esm/**/*.d.ts",
51
+ "dist-esm/**/*.d.ts.map",
52
+ "src/**/*.ts",
53
+ "README.md",
54
+ "LICENSE",
55
+ "rollup.config.js",
56
+ "tsconfig.json",
57
+ "review/*",
58
+ "CHANGELOG.md",
59
+ "types/*"
60
+ ],
61
+ "scripts": {
62
+ "build": "npm run clean && tsc && rollup -c 2>&1 && npm run minify && mkdirp ./review && npm run extract-api",
63
+ "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
64
+ "prepack": "npm run build",
65
+ "pack": "npm pack 2>&1",
66
+ "extract-api": "api-extractor run --local",
67
+ "lint": "echo skipped",
68
+ "audit": "echo skipped",
69
+ "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log",
70
+ "build:node": "echo skipped",
71
+ "build:browser": "echo skipped",
72
+ "build:test": "echo skipped",
73
+ "build:samples": "echo skipped.",
74
+ "check-format": "echo skipped",
75
+ "execute:samples": "echo skipped",
76
+ "format": "echo skipped",
77
+ "test": "npm run integration-test",
78
+ "test:node": "echo skipped",
79
+ "test:browser": "echo skipped",
80
+ "unit-test": "npm run unit-test:node && npm run unit-test:browser",
81
+ "unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
82
+ "unit-test:browser": "echo skipped",
83
+ "integration-test": "npm run integration-test:node && npm run integration-test:browser",
84
+ "integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js",
85
+ "integration-test:browser": "echo skipped",
86
+ "docs": "echo skipped"
87
+ },
88
+ "sideEffects": false,
89
+ "autoPublish": true
90
+ }