@azure/arm-appinsights 5.0.0-beta.1 → 5.0.0-beta.2

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 (53) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/dist/index.js +222 -231
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.min.js +1 -1
  5. package/dist/index.min.js.map +1 -1
  6. package/dist-esm/src/applicationInsightsManagementClient.d.ts +1 -2
  7. package/dist-esm/src/applicationInsightsManagementClient.d.ts.map +1 -1
  8. package/dist-esm/src/applicationInsightsManagementClient.js +2 -3
  9. package/dist-esm/src/applicationInsightsManagementClient.js.map +1 -1
  10. package/dist-esm/src/models/index.d.ts +66 -39
  11. package/dist-esm/src/models/index.d.ts.map +1 -1
  12. package/dist-esm/src/models/index.js.map +1 -1
  13. package/dist-esm/src/models/mappers.d.ts +5 -3
  14. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  15. package/dist-esm/src/models/mappers.js +168 -94
  16. package/dist-esm/src/models/mappers.js.map +1 -1
  17. package/dist-esm/src/models/parameters.d.ts +1 -1
  18. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  19. package/dist-esm/src/models/parameters.js +12 -12
  20. package/dist-esm/src/models/parameters.js.map +1 -1
  21. package/dist-esm/src/operations/components.js +33 -5
  22. package/dist-esm/src/operations/components.js.map +1 -1
  23. package/dist-esm/src/operations/index.d.ts +0 -1
  24. package/dist-esm/src/operations/index.d.ts.map +1 -1
  25. package/dist-esm/src/operations/index.js +0 -1
  26. package/dist-esm/src/operations/index.js.map +1 -1
  27. package/dist-esm/src/operations/liveToken.js +1 -1
  28. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -1
  29. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  30. package/dist-esm/src/operationsInterfaces/index.js +0 -1
  31. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  32. package/package.json +15 -5
  33. package/review/arm-appinsights.api.md +18 -21
  34. package/src/applicationInsightsManagementClient.ts +1 -5
  35. package/src/models/index.ts +71 -46
  36. package/src/models/mappers.ts +179 -97
  37. package/src/models/parameters.ts +13 -13
  38. package/src/operations/components.ts +33 -5
  39. package/src/operations/index.ts +0 -1
  40. package/src/operations/liveToken.ts +1 -1
  41. package/src/operationsInterfaces/index.ts +0 -1
  42. package/tsconfig.json +12 -4
  43. package/types/arm-appinsights.d.ts +39 -24
  44. package/dist-esm/src/operations/operations.d.ts +0 -32
  45. package/dist-esm/src/operations/operations.d.ts.map +0 -1
  46. package/dist-esm/src/operations/operations.js +0 -116
  47. package/dist-esm/src/operations/operations.js.map +0 -1
  48. package/dist-esm/src/operationsInterfaces/operations.d.ts +0 -11
  49. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +0 -1
  50. package/dist-esm/src/operationsInterfaces/operations.js +0 -9
  51. package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
  52. package/src/operations/operations.ts +0 -133
  53. package/src/operationsInterfaces/operations.ts +0 -22
@@ -1,116 +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 { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
- import * as coreClient from "@azure/core-client";
10
- import * as Mappers from "../models/mappers";
11
- import * as Parameters from "../models/parameters";
12
- /// <reference lib="esnext.asynciterable" />
13
- /** Class containing Operations operations. */
14
- export class OperationsImpl {
15
- /**
16
- * Initialize a new instance of the class Operations class.
17
- * @param client Reference to the service client
18
- */
19
- constructor(client) {
20
- this.client = client;
21
- }
22
- /**
23
- * List the available operations supported by the resource provider.
24
- * @param options The options parameters.
25
- */
26
- list(options) {
27
- const iter = this.listPagingAll(options);
28
- return {
29
- next() {
30
- return iter.next();
31
- },
32
- [Symbol.asyncIterator]() {
33
- return this;
34
- },
35
- byPage: () => {
36
- return this.listPagingPage(options);
37
- }
38
- };
39
- }
40
- listPagingPage(options) {
41
- return __asyncGenerator(this, arguments, function* listPagingPage_1() {
42
- let result = yield __await(this._list(options));
43
- yield yield __await(result.value || []);
44
- let continuationToken = result.nextLink;
45
- while (continuationToken) {
46
- result = yield __await(this._listNext(continuationToken, options));
47
- continuationToken = result.nextLink;
48
- yield yield __await(result.value || []);
49
- }
50
- });
51
- }
52
- listPagingAll(options) {
53
- return __asyncGenerator(this, arguments, function* listPagingAll_1() {
54
- var e_1, _a;
55
- try {
56
- for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
57
- const page = _c.value;
58
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
59
- }
60
- }
61
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
62
- finally {
63
- try {
64
- if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
65
- }
66
- finally { if (e_1) throw e_1.error; }
67
- }
68
- });
69
- }
70
- /**
71
- * List the available operations supported by the resource provider.
72
- * @param options The options parameters.
73
- */
74
- _list(options) {
75
- return this.client.sendOperationRequest({ options }, listOperationSpec);
76
- }
77
- /**
78
- * ListNext
79
- * @param nextLink The nextLink from the previous successful call to the List method.
80
- * @param options The options parameters.
81
- */
82
- _listNext(nextLink, options) {
83
- return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
84
- }
85
- }
86
- // Operation Specifications
87
- const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
88
- const listOperationSpec = {
89
- path: "/providers/microsoft.insights/operations",
90
- httpMethod: "GET",
91
- responses: {
92
- 200: {
93
- bodyMapper: Mappers.OperationsListResult
94
- },
95
- default: {}
96
- },
97
- queryParameters: [Parameters.apiVersion6],
98
- urlParameters: [Parameters.$host],
99
- headerParameters: [Parameters.accept],
100
- serializer
101
- };
102
- const listNextOperationSpec = {
103
- path: "{nextLink}",
104
- httpMethod: "GET",
105
- responses: {
106
- 200: {
107
- bodyMapper: Mappers.OperationsListResult
108
- },
109
- default: {}
110
- },
111
- queryParameters: [Parameters.apiVersion6],
112
- urlParameters: [Parameters.$host, Parameters.nextLink],
113
- headerParameters: [Parameters.accept],
114
- serializer
115
- };
116
- //# sourceMappingURL=operations.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAUnD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAsC;QAEtC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,GAAG,EAAE;gBACX,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;YACtC,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,OAAsC;;YAEtC,IAAI,MAAM,GAAG,cAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA,CAAC;YACvC,oBAAM,MAAM,CAAC,KAAK,IAAI,EAAE,CAAA,CAAC;YACzB,IAAI,iBAAiB,GAAG,MAAM,CAAC,QAAQ,CAAC;YACxC,OAAO,iBAAiB,EAAE;gBACxB,MAAM,GAAG,cAAM,IAAI,CAAC,SAAS,CAAC,iBAAiB,EAAE,OAAO,CAAC,C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UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;QACD,OAAO,EAAE,EAAE;KACZ;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -1,11 +0,0 @@
1
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
- import { OperationLive, OperationsListOptionalParams } from "../models";
3
- /** Interface representing a Operations. */
4
- export interface Operations {
5
- /**
6
- * List the available operations supported by the resource provider.
7
- * @param options The options parameters.
8
- */
9
- list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<OperationLive>;
10
- }
11
- //# sourceMappingURL=operations.d.ts.map
@@ -1 +0,0 @@
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,aAAa,EAAE,4BAA4B,EAAE,MAAM,WAAW,CAAC;AAGxE,2CAA2C;AAC3C,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,aAAa,CAAC,CAAC;CAC9C"}
@@ -1,9 +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
- export {};
9
- //# sourceMappingURL=operations.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -1,133 +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
-
9
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
- import { Operations } from "../operationsInterfaces";
11
- import * as coreClient from "@azure/core-client";
12
- import * as Mappers from "../models/mappers";
13
- import * as Parameters from "../models/parameters";
14
- import { ApplicationInsightsManagementClient } from "../applicationInsightsManagementClient";
15
- import {
16
- OperationLive,
17
- OperationsListNextOptionalParams,
18
- OperationsListOptionalParams,
19
- OperationsListResponse,
20
- OperationsListNextResponse
21
- } from "../models";
22
-
23
- /// <reference lib="esnext.asynciterable" />
24
- /** Class containing Operations operations. */
25
- export class OperationsImpl implements Operations {
26
- private readonly client: ApplicationInsightsManagementClient;
27
-
28
- /**
29
- * Initialize a new instance of the class Operations class.
30
- * @param client Reference to the service client
31
- */
32
- constructor(client: ApplicationInsightsManagementClient) {
33
- this.client = client;
34
- }
35
-
36
- /**
37
- * List the available operations supported by the resource provider.
38
- * @param options The options parameters.
39
- */
40
- public list(
41
- options?: OperationsListOptionalParams
42
- ): PagedAsyncIterableIterator<OperationLive> {
43
- const iter = this.listPagingAll(options);
44
- return {
45
- next() {
46
- return iter.next();
47
- },
48
- [Symbol.asyncIterator]() {
49
- return this;
50
- },
51
- byPage: () => {
52
- return this.listPagingPage(options);
53
- }
54
- };
55
- }
56
-
57
- private async *listPagingPage(
58
- options?: OperationsListOptionalParams
59
- ): AsyncIterableIterator<OperationLive[]> {
60
- let result = await this._list(options);
61
- yield result.value || [];
62
- let continuationToken = result.nextLink;
63
- while (continuationToken) {
64
- result = await this._listNext(continuationToken, options);
65
- continuationToken = result.nextLink;
66
- yield result.value || [];
67
- }
68
- }
69
-
70
- private async *listPagingAll(
71
- options?: OperationsListOptionalParams
72
- ): AsyncIterableIterator<OperationLive> {
73
- for await (const page of this.listPagingPage(options)) {
74
- yield* page;
75
- }
76
- }
77
-
78
- /**
79
- * List the available operations supported by the resource provider.
80
- * @param options The options parameters.
81
- */
82
- private _list(
83
- options?: OperationsListOptionalParams
84
- ): Promise<OperationsListResponse> {
85
- return this.client.sendOperationRequest({ options }, listOperationSpec);
86
- }
87
-
88
- /**
89
- * ListNext
90
- * @param nextLink The nextLink from the previous successful call to the List method.
91
- * @param options The options parameters.
92
- */
93
- private _listNext(
94
- nextLink: string,
95
- options?: OperationsListNextOptionalParams
96
- ): Promise<OperationsListNextResponse> {
97
- return this.client.sendOperationRequest(
98
- { nextLink, options },
99
- listNextOperationSpec
100
- );
101
- }
102
- }
103
- // Operation Specifications
104
- const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
105
-
106
- const listOperationSpec: coreClient.OperationSpec = {
107
- path: "/providers/microsoft.insights/operations",
108
- httpMethod: "GET",
109
- responses: {
110
- 200: {
111
- bodyMapper: Mappers.OperationsListResult
112
- },
113
- default: {}
114
- },
115
- queryParameters: [Parameters.apiVersion6],
116
- urlParameters: [Parameters.$host],
117
- headerParameters: [Parameters.accept],
118
- serializer
119
- };
120
- const listNextOperationSpec: coreClient.OperationSpec = {
121
- path: "{nextLink}",
122
- httpMethod: "GET",
123
- responses: {
124
- 200: {
125
- bodyMapper: Mappers.OperationsListResult
126
- },
127
- default: {}
128
- },
129
- queryParameters: [Parameters.apiVersion6],
130
- urlParameters: [Parameters.$host, Parameters.nextLink],
131
- headerParameters: [Parameters.accept],
132
- serializer
133
- };
@@ -1,22 +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
-
9
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
- import { OperationLive, OperationsListOptionalParams } from "../models";
11
-
12
- /// <reference lib="esnext.asynciterable" />
13
- /** Interface representing a Operations. */
14
- export interface Operations {
15
- /**
16
- * List the available operations supported by the resource provider.
17
- * @param options The options parameters.
18
- */
19
- list(
20
- options?: OperationsListOptionalParams
21
- ): PagedAsyncIterableIterator<OperationLive>;
22
- }