@azure/arm-selfhelp 1.0.0-alpha.20230428.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 (112) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/LICENSE +21 -0
  3. package/README.md +108 -0
  4. package/dist/index.js +1434 -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/diagnosticsCheckNameAvailabilitySample.d.ts +2 -0
  9. package/dist-esm/samples-dev/diagnosticsCheckNameAvailabilitySample.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/diagnosticsCheckNameAvailabilitySample.js +66 -0
  11. package/dist-esm/samples-dev/diagnosticsCheckNameAvailabilitySample.js.map +1 -0
  12. package/dist-esm/samples-dev/diagnosticsCreateSample.d.ts +2 -0
  13. package/dist-esm/samples-dev/diagnosticsCreateSample.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/diagnosticsCreateSample.js +37 -0
  15. package/dist-esm/samples-dev/diagnosticsCreateSample.js.map +1 -0
  16. package/dist-esm/samples-dev/diagnosticsGetSample.d.ts +2 -0
  17. package/dist-esm/samples-dev/diagnosticsGetSample.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/diagnosticsGetSample.js +37 -0
  19. package/dist-esm/samples-dev/diagnosticsGetSample.js.map +1 -0
  20. package/dist-esm/samples-dev/discoverySolutionListSample.d.ts +2 -0
  21. package/dist-esm/samples-dev/discoverySolutionListSample.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/discoverySolutionListSample.js +57 -0
  23. package/dist-esm/samples-dev/discoverySolutionListSample.js.map +1 -0
  24. package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
  25. package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/operationsListSample.js +56 -0
  27. package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
  28. package/dist-esm/src/helpRP.d.ts +20 -0
  29. package/dist-esm/src/helpRP.d.ts.map +1 -0
  30. package/dist-esm/src/helpRP.js +96 -0
  31. package/dist-esm/src/helpRP.js.map +1 -0
  32. package/dist-esm/src/index.d.ts +6 -0
  33. package/dist-esm/src/index.d.ts.map +1 -0
  34. package/dist-esm/src/index.js +13 -0
  35. package/dist-esm/src/index.js.map +1 -0
  36. package/dist-esm/src/lroImpl.d.ts +11 -0
  37. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  38. package/dist-esm/src/lroImpl.js +21 -0
  39. package/dist-esm/src/lroImpl.js.map +1 -0
  40. package/dist-esm/src/models/index.d.ts +435 -0
  41. package/dist-esm/src/models/index.d.ts.map +1 -0
  42. package/dist-esm/src/models/index.js +72 -0
  43. package/dist-esm/src/models/index.js.map +1 -0
  44. package/dist-esm/src/models/mappers.d.ts +20 -0
  45. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  46. package/dist-esm/src/models/mappers.js +585 -0
  47. package/dist-esm/src/models/mappers.js.map +1 -0
  48. package/dist-esm/src/models/parameters.d.ts +13 -0
  49. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  50. package/dist-esm/src/models/parameters.js +117 -0
  51. package/dist-esm/src/models/parameters.js.map +1 -0
  52. package/dist-esm/src/operations/diagnostics.d.ts +53 -0
  53. package/dist-esm/src/operations/diagnostics.d.ts.map +1 -0
  54. package/dist-esm/src/operations/diagnostics.js +180 -0
  55. package/dist-esm/src/operations/diagnostics.js.map +1 -0
  56. package/dist-esm/src/operations/discoverySolution.d.ts +50 -0
  57. package/dist-esm/src/operations/discoverySolution.d.ts.map +1 -0
  58. package/dist-esm/src/operations/discoverySolution.js +160 -0
  59. package/dist-esm/src/operations/discoverySolution.js.map +1 -0
  60. package/dist-esm/src/operations/index.d.ts +4 -0
  61. package/dist-esm/src/operations/index.d.ts.map +1 -0
  62. package/dist-esm/src/operations/index.js +11 -0
  63. package/dist-esm/src/operations/index.js.map +1 -0
  64. package/dist-esm/src/operations/operations.d.ts +32 -0
  65. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  66. package/dist-esm/src/operations/operations.js +138 -0
  67. package/dist-esm/src/operations/operations.js.map +1 -0
  68. package/dist-esm/src/operationsInterfaces/diagnostics.d.ts +45 -0
  69. package/dist-esm/src/operationsInterfaces/diagnostics.d.ts.map +1 -0
  70. package/dist-esm/src/operationsInterfaces/diagnostics.js +9 -0
  71. package/dist-esm/src/operationsInterfaces/diagnostics.js.map +1 -0
  72. package/dist-esm/src/operationsInterfaces/discoverySolution.d.ts +19 -0
  73. package/dist-esm/src/operationsInterfaces/discoverySolution.d.ts.map +1 -0
  74. package/dist-esm/src/operationsInterfaces/discoverySolution.js +9 -0
  75. package/dist-esm/src/operationsInterfaces/discoverySolution.js.map +1 -0
  76. package/dist-esm/src/operationsInterfaces/index.d.ts +4 -0
  77. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  78. package/dist-esm/src/operationsInterfaces/index.js +11 -0
  79. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  80. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  81. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  82. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  83. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  84. package/dist-esm/src/pagingHelper.d.ts +13 -0
  85. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  86. package/dist-esm/src/pagingHelper.js +32 -0
  87. package/dist-esm/src/pagingHelper.js.map +1 -0
  88. package/dist-esm/test/selfhelp_operations_test.spec.d.ts +4 -0
  89. package/dist-esm/test/selfhelp_operations_test.spec.d.ts.map +1 -0
  90. package/dist-esm/test/selfhelp_operations_test.spec.js +62 -0
  91. package/dist-esm/test/selfhelp_operations_test.spec.js.map +1 -0
  92. package/package.json +123 -0
  93. package/review/arm-selfhelp.api.md +310 -0
  94. package/rollup.config.js +122 -0
  95. package/src/helpRP.ts +144 -0
  96. package/src/index.ts +13 -0
  97. package/src/lroImpl.ts +42 -0
  98. package/src/models/index.ts +485 -0
  99. package/src/models/mappers.ts +619 -0
  100. package/src/models/parameters.ts +136 -0
  101. package/src/operations/diagnostics.ts +249 -0
  102. package/src/operations/discoverySolution.ts +179 -0
  103. package/src/operations/index.ts +11 -0
  104. package/src/operations/operations.ts +149 -0
  105. package/src/operationsInterfaces/diagnostics.ts +80 -0
  106. package/src/operationsInterfaces/discoverySolution.ts +34 -0
  107. package/src/operationsInterfaces/index.ts +11 -0
  108. package/src/operationsInterfaces/operations.ts +22 -0
  109. package/src/pagingHelper.ts +39 -0
  110. package/tsconfig.json +33 -0
  111. package/types/arm-selfhelp.d.ts +579 -0
  112. package/types/tsdoc-metadata.json +11 -0
@@ -0,0 +1,138 @@
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 { setContinuationToken } from "../pagingHelper";
10
+ import * as coreClient from "@azure/core-client";
11
+ import * as Mappers from "../models/mappers";
12
+ import * as Parameters from "../models/parameters";
13
+ /// <reference lib="esnext.asynciterable" />
14
+ /** Class containing Operations operations. */
15
+ export class OperationsImpl {
16
+ /**
17
+ * Initialize a new instance of the class Operations class.
18
+ * @param client Reference to the service client
19
+ */
20
+ constructor(client) {
21
+ this.client = client;
22
+ }
23
+ /**
24
+ * Returns list of operations.
25
+ * @param options The options parameters.
26
+ */
27
+ list(options) {
28
+ const iter = this.listPagingAll(options);
29
+ return {
30
+ next() {
31
+ return iter.next();
32
+ },
33
+ [Symbol.asyncIterator]() {
34
+ return this;
35
+ },
36
+ byPage: (settings) => {
37
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
38
+ throw new Error("maxPageSize is not supported by this operation.");
39
+ }
40
+ return this.listPagingPage(options, settings);
41
+ }
42
+ };
43
+ }
44
+ listPagingPage(options, settings) {
45
+ return __asyncGenerator(this, arguments, function* listPagingPage_1() {
46
+ let result;
47
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
48
+ if (!continuationToken) {
49
+ result = yield __await(this._list(options));
50
+ let page = result.value || [];
51
+ continuationToken = result.nextLink;
52
+ setContinuationToken(page, continuationToken);
53
+ yield yield __await(page);
54
+ }
55
+ while (continuationToken) {
56
+ result = yield __await(this._listNext(continuationToken, options));
57
+ continuationToken = result.nextLink;
58
+ let page = result.value || [];
59
+ setContinuationToken(page, continuationToken);
60
+ yield yield __await(page);
61
+ }
62
+ });
63
+ }
64
+ listPagingAll(options) {
65
+ return __asyncGenerator(this, arguments, function* listPagingAll_1() {
66
+ var _a, e_1, _b, _c;
67
+ try {
68
+ for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
69
+ _c = _f.value;
70
+ _d = false;
71
+ try {
72
+ const page = _c;
73
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
74
+ }
75
+ finally {
76
+ _d = true;
77
+ }
78
+ }
79
+ }
80
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
81
+ finally {
82
+ try {
83
+ if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
84
+ }
85
+ finally { if (e_1) throw e_1.error; }
86
+ }
87
+ });
88
+ }
89
+ /**
90
+ * Returns list of operations.
91
+ * @param options The options parameters.
92
+ */
93
+ _list(options) {
94
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
95
+ }
96
+ /**
97
+ * ListNext
98
+ * @param nextLink The nextLink from the previous successful call to the List method.
99
+ * @param options The options parameters.
100
+ */
101
+ _listNext(nextLink, options) {
102
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
103
+ }
104
+ }
105
+ // Operation Specifications
106
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
107
+ const listOperationSpec = {
108
+ path: "/providers/Microsoft.Help/operations",
109
+ httpMethod: "GET",
110
+ responses: {
111
+ 200: {
112
+ bodyMapper: Mappers.OperationListResult
113
+ },
114
+ default: {
115
+ bodyMapper: Mappers.ErrorResponse
116
+ }
117
+ },
118
+ queryParameters: [Parameters.apiVersion],
119
+ urlParameters: [Parameters.$host],
120
+ headerParameters: [Parameters.accept],
121
+ serializer
122
+ };
123
+ const listNextOperationSpec = {
124
+ path: "{nextLink}",
125
+ httpMethod: "GET",
126
+ responses: {
127
+ 200: {
128
+ bodyMapper: Mappers.OperationListResult
129
+ },
130
+ default: {
131
+ bodyMapper: Mappers.ErrorResponse
132
+ }
133
+ },
134
+ urlParameters: [Parameters.$host, Parameters.nextLink],
135
+ headerParameters: [Parameters.accept],
136
+ serializer
137
+ };
138
+ //# sourceMappingURL=operations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAEvD,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,MAAc;QACxB,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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AAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,45 @@
1
+ import { SimplePollerLike, OperationState } from "@azure/core-lro";
2
+ import { DiagnosticsCheckNameAvailabilityOptionalParams, DiagnosticsCheckNameAvailabilityResponse, DiagnosticsCreateOptionalParams, DiagnosticsCreateResponse, DiagnosticsGetOptionalParams, DiagnosticsGetResponse } from "../models";
3
+ /** Interface representing a Diagnostics. */
4
+ export interface Diagnostics {
5
+ /**
6
+ * This API is used to check the uniqueness of a resource name used for a diagnostic check.
7
+ * @param scope This is an extension resource provider and only resource level extension is supported
8
+ * at the moment.
9
+ * @param options The options parameters.
10
+ */
11
+ checkNameAvailability(scope: string, options?: DiagnosticsCheckNameAvailabilityOptionalParams): Promise<DiagnosticsCheckNameAvailabilityResponse>;
12
+ /**
13
+ * Diagnostics tells you precisely the root cause of the issue and how to address it. You can get
14
+ * diagnostics once you discover and identify the relevant solution for your Azure issue.<br/><br/> You
15
+ * can create diagnostics using the ‘solutionId’ from Solution Discovery API response and
16
+ * ‘additionalParameters’ <br/><br/> <b>Note: </b>‘requiredParameterSets’ from Solutions Discovery API
17
+ * response must be passed via ‘additionalParameters’ as an input to Diagnostics API
18
+ * @param scope This is an extension resource provider and only resource level extension is supported
19
+ * at the moment.
20
+ * @param diagnosticsResourceName Unique resource name for insight resources
21
+ * @param options The options parameters.
22
+ */
23
+ beginCreate(scope: string, diagnosticsResourceName: string, options?: DiagnosticsCreateOptionalParams): Promise<SimplePollerLike<OperationState<DiagnosticsCreateResponse>, DiagnosticsCreateResponse>>;
24
+ /**
25
+ * Diagnostics tells you precisely the root cause of the issue and how to address it. You can get
26
+ * diagnostics once you discover and identify the relevant solution for your Azure issue.<br/><br/> You
27
+ * can create diagnostics using the ‘solutionId’ from Solution Discovery API response and
28
+ * ‘additionalParameters’ <br/><br/> <b>Note: </b>‘requiredParameterSets’ from Solutions Discovery API
29
+ * response must be passed via ‘additionalParameters’ as an input to Diagnostics API
30
+ * @param scope This is an extension resource provider and only resource level extension is supported
31
+ * at the moment.
32
+ * @param diagnosticsResourceName Unique resource name for insight resources
33
+ * @param options The options parameters.
34
+ */
35
+ beginCreateAndWait(scope: string, diagnosticsResourceName: string, options?: DiagnosticsCreateOptionalParams): Promise<DiagnosticsCreateResponse>;
36
+ /**
37
+ * Get the diagnostics using the 'diagnosticsResourceName' you chose while creating the diagnostic.
38
+ * @param scope This is an extension resource provider and only resource level extension is supported
39
+ * at the moment.
40
+ * @param diagnosticsResourceName Unique resource name for insight resources
41
+ * @param options The options parameters.
42
+ */
43
+ get(scope: string, diagnosticsResourceName: string, options?: DiagnosticsGetOptionalParams): Promise<DiagnosticsGetResponse>;
44
+ }
45
+ //# sourceMappingURL=diagnostics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"diagnostics.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/diagnostics.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EACL,8CAA8C,EAC9C,wCAAwC,EACxC,+BAA+B,EAC/B,yBAAyB,EACzB,4BAA4B,EAC5B,sBAAsB,EACvB,MAAM,WAAW,CAAC;AAEnB,4CAA4C;AAC5C,MAAM,WAAW,WAAW;IAC1B;;;;;OAKG;IACH,qBAAqB,CACnB,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,8CAA8C,GACvD,OAAO,CAAC,wCAAwC,CAAC,CAAC;IACrD;;;;;;;;;;OAUG;IACH,WAAW,CACT,KAAK,EAAE,MAAM,EACb,uBAAuB,EAAE,MAAM,EAC/B,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CACR,gBAAgB,CACd,cAAc,CAAC,yBAAyB,CAAC,EACzC,yBAAyB,CAC1B,CACF,CAAC;IACF;;;;;;;;;;OAUG;IACH,kBAAkB,CAChB,KAAK,EAAE,MAAM,EACb,uBAAuB,EAAE,MAAM,EAC/B,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CAAC,yBAAyB,CAAC,CAAC;IACtC;;;;;;OAMG;IACH,GAAG,CACD,KAAK,EAAE,MAAM,EACb,uBAAuB,EAAE,MAAM,EAC/B,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CAAC,sBAAsB,CAAC,CAAC;CACpC"}
@@ -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=diagnostics.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"diagnostics.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/diagnostics.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -0,0 +1,19 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { SolutionMetadataResource, DiscoverySolutionListOptionalParams } from "../models";
3
+ /** Interface representing a DiscoverySolution. */
4
+ export interface DiscoverySolution {
5
+ /**
6
+ * Solutions Discovery is the initial point of entry within Help API, which helps you identify the
7
+ * relevant solutions for your Azure issue.<br/><br/> You can discover solutions using resourceUri OR
8
+ * resourceUri + problemClassificationId.<br/><br/>We will do our best in returning relevant
9
+ * diagnostics for your Azure issue.<br/><br/> Get the problemClassificationId(s) using this
10
+ * [reference](https://learn.microsoft.com/rest/api/support/problem-classifications/list?tabs=HTTP).<br/><br/>
11
+ * <b>Note: </b> ‘requiredParameterSets’ from Solutions Discovery API response must be passed via
12
+ * ‘additionalParameters’ as an input to Diagnostics API.
13
+ * @param scope This is an extension resource provider and only resource level extension is supported
14
+ * at the moment.
15
+ * @param options The options parameters.
16
+ */
17
+ list(scope: string, options?: DiscoverySolutionListOptionalParams): PagedAsyncIterableIterator<SolutionMetadataResource>;
18
+ }
19
+ //# sourceMappingURL=discoverySolution.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"discoverySolution.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/discoverySolution.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,wBAAwB,EACxB,mCAAmC,EACpC,MAAM,WAAW,CAAC;AAGnB,kDAAkD;AAClD,MAAM,WAAW,iBAAiB;IAChC;;;;;;;;;;;OAWG;IACH,IAAI,CACF,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,mCAAmC,GAC5C,0BAA0B,CAAC,wBAAwB,CAAC,CAAC;CACzD"}
@@ -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=discoverySolution.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"discoverySolution.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/discoverySolution.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -0,0 +1,4 @@
1
+ export * from "./operations";
2
+ export * from "./diagnostics";
3
+ export * from "./discoverySolution";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,11 @@
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 "./diagnostics";
10
+ export * from "./discoverySolution";
11
+ //# 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,eAAe,CAAC;AAC9B,cAAc,qBAAqB,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
+ * Returns list of operations.
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,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=selfhelp_operations_test.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"selfhelp_operations_test.spec.d.ts","sourceRoot":"","sources":["../../test/selfhelp_operations_test.spec.ts"],"names":[],"mappings":"AA+BA,eAAO,MAAM,kBAAkB;;CAE9B,CAAC"}
@@ -0,0 +1,62 @@
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 { env, Recorder, isPlaybackMode, } from "@azure-tools/test-recorder";
10
+ import { createTestCredential } from "@azure-tools/test-credential";
11
+ import { HelpRP } from "../src/helpRP";
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("help test", () => {
25
+ let recorder;
26
+ let subscriptionId;
27
+ let client;
28
+ let location;
29
+ let resourceGroup;
30
+ let resourcename;
31
+ let scope;
32
+ beforeEach(function () {
33
+ return __awaiter(this, void 0, void 0, function* () {
34
+ recorder = new Recorder(this.currentTest);
35
+ yield recorder.start(recorderOptions);
36
+ subscriptionId = env.SUBSCRIPTION_ID || '';
37
+ // This is an example of how the environment variables are used
38
+ const credential = createTestCredential();
39
+ client = new HelpRP(credential, recorder.configureClientOptions({}));
40
+ location = "eastus";
41
+ resourceGroup = "czwjstest";
42
+ resourcename = "resourcetest";
43
+ scope = "subscriptions/" + subscriptionId;
44
+ });
45
+ });
46
+ afterEach(function () {
47
+ return __awaiter(this, void 0, void 0, function* () {
48
+ yield recorder.stop();
49
+ });
50
+ });
51
+ it("selfhelp checkname test", function () {
52
+ return __awaiter(this, void 0, void 0, function* () {
53
+ const res = yield client.diagnostics.checkNameAvailability(scope, {
54
+ checkNameAvailabilityRequest: {
55
+ name: "sampleName",
56
+ type: "Microsoft.Help/diagnostics"
57
+ }
58
+ });
59
+ });
60
+ });
61
+ });
62
+ //# sourceMappingURL=selfhelp_operations_test.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"selfhelp_operations_test.spec.js","sourceRoot":"","sources":["../../test/selfhelp_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,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvC,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,WAAW,EAAE,GAAG,EAAE;IACzB,IAAI,QAAkB,CAAC;IACvB,IAAI,cAAsB,CAAC;IAC3B,IAAI,MAAc,CAAC;IACnB,IAAI,QAAgB,CAAC;IACrB,IAAI,aAAqB,CAAC;IAC1B,IAAI,YAAoB,CAAC;IACzB,IAAI,KAAa,CAAC;IAElB,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,MAAM,CAAC,UAAU,EAAE,QAAQ,CAAC,sBAAsB,CAAC,EAAE,CAAC,CAAC,CAAC;YACrE,QAAQ,GAAG,QAAQ,CAAC;YACpB,aAAa,GAAG,WAAW,CAAC;YAC5B,YAAY,GAAG,cAAc,CAAC;YAC9B,KAAK,GAAG,gBAAgB,GAAG,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,yBAAyB,EAAE;;YAC5B,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,qBAAqB,CACxD,KAAK,EACL;gBACE,4BAA4B,EAAE;oBAC5B,IAAI,EAAE,YAAY;oBAClB,IAAI,EAAE,4BAA4B;iBACnC;aACF,CAAC,CAAC;QACP,CAAC;KAAA,CAAC,CAAC;AAEL,CAAC,CAAC,CAAA"}
package/package.json ADDED
@@ -0,0 +1,123 @@
1
+ {
2
+ "name": "@azure/arm-selfhelp",
3
+ "sdk-type": "mgmt",
4
+ "author": "Microsoft Corporation",
5
+ "description": "A generated SDK for HelpRP.",
6
+ "version": "1.0.0-alpha.20230428.1",
7
+ "engines": {
8
+ "node": ">=14.0.0"
9
+ },
10
+ "dependencies": {
11
+ "@azure/core-lro": "^2.5.0",
12
+ "@azure/abort-controller": "^1.0.0",
13
+ "@azure/core-paging": "^1.2.0",
14
+ "@azure/core-client": "^1.7.0",
15
+ "@azure/core-auth": "^1.3.0",
16
+ "@azure/core-rest-pipeline": "^1.8.0",
17
+ "tslib": "^2.2.0"
18
+ },
19
+ "keywords": [
20
+ "node",
21
+ "azure",
22
+ "typescript",
23
+ "browser",
24
+ "isomorphic"
25
+ ],
26
+ "license": "MIT",
27
+ "main": "./dist/index.js",
28
+ "module": "./dist-esm/src/index.js",
29
+ "types": "./types/arm-selfhelp.d.ts",
30
+ "devDependencies": {
31
+ "@microsoft/api-extractor": "^7.31.1",
32
+ "@rollup/plugin-commonjs": "^24.0.0",
33
+ "@rollup/plugin-json": "^6.0.0",
34
+ "@rollup/plugin-multi-entry": "^6.0.0",
35
+ "@rollup/plugin-node-resolve": "^13.1.3",
36
+ "mkdirp": "^2.1.2",
37
+ "rollup": "^2.66.1",
38
+ "rollup-plugin-sourcemaps": "^0.6.3",
39
+ "typescript": "~5.0.0",
40
+ "uglify-js": "^3.4.9",
41
+ "rimraf": "^3.0.0",
42
+ "dotenv": "^16.0.0",
43
+ "@azure/identity": "^2.0.1",
44
+ "@azure-tools/test-recorder": "^3.0.0",
45
+ "@azure-tools/test-credential": "^1.0.0",
46
+ "mocha": "^7.1.1",
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-alpha <1.0.0-alphb"
52
+ },
53
+ "repository": {
54
+ "type": "git",
55
+ "url": "https://github.com/Azure/azure-sdk-for-js.git"
56
+ },
57
+ "bugs": {
58
+ "url": "https://github.com/Azure/azure-sdk-for-js/issues"
59
+ },
60
+ "files": [
61
+ "dist/**/*.js",
62
+ "dist/**/*.js.map",
63
+ "dist/**/*.d.ts",
64
+ "dist/**/*.d.ts.map",
65
+ "dist-esm/**/*.js",
66
+ "dist-esm/**/*.js.map",
67
+ "dist-esm/**/*.d.ts",
68
+ "dist-esm/**/*.d.ts.map",
69
+ "src/**/*.ts",
70
+ "README.md",
71
+ "LICENSE",
72
+ "rollup.config.js",
73
+ "tsconfig.json",
74
+ "review/*",
75
+ "CHANGELOG.md",
76
+ "types/*"
77
+ ],
78
+ "scripts": {
79
+ "build": "npm run clean && tsc && rollup -c 2>&1 && npm run minify && mkdirp ./review && npm run extract-api",
80
+ "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
81
+ "prepack": "npm run build",
82
+ "pack": "npm pack 2>&1",
83
+ "extract-api": "api-extractor run --local",
84
+ "lint": "echo skipped",
85
+ "audit": "echo skipped",
86
+ "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log",
87
+ "build:node": "echo skipped",
88
+ "build:browser": "echo skipped",
89
+ "build:test": "echo skipped",
90
+ "build:samples": "echo skipped.",
91
+ "check-format": "echo skipped",
92
+ "execute:samples": "echo skipped",
93
+ "format": "echo skipped",
94
+ "test": "npm run integration-test",
95
+ "test:node": "echo skipped",
96
+ "test:browser": "echo skipped",
97
+ "unit-test": "npm run unit-test:node && npm run unit-test:browser",
98
+ "unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
99
+ "unit-test:browser": "echo skipped",
100
+ "integration-test": "npm run integration-test:node && npm run integration-test:browser",
101
+ "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
102
+ "integration-test:browser": "echo skipped"
103
+ },
104
+ "sideEffects": false,
105
+ "//metadata": {
106
+ "constantPaths": [
107
+ {
108
+ "path": "src/helpRP.ts",
109
+ "prefix": "packageDetails"
110
+ }
111
+ ]
112
+ },
113
+ "autoPublish": true,
114
+ "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/selfhelp/arm-selfhelp",
115
+ "//sampleConfiguration": {
116
+ "productName": "",
117
+ "productSlugs": [
118
+ "azure"
119
+ ],
120
+ "disableDocsMs": true,
121
+ "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-selfhelp?view=azure-node-preview"
122
+ }
123
+ }