@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.
- package/CHANGELOG.md +5 -0
- package/LICENSE +21 -0
- package/README.md +108 -0
- package/dist/index.js +1434 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/samples-dev/diagnosticsCheckNameAvailabilitySample.d.ts +2 -0
- package/dist-esm/samples-dev/diagnosticsCheckNameAvailabilitySample.d.ts.map +1 -0
- package/dist-esm/samples-dev/diagnosticsCheckNameAvailabilitySample.js +66 -0
- package/dist-esm/samples-dev/diagnosticsCheckNameAvailabilitySample.js.map +1 -0
- package/dist-esm/samples-dev/diagnosticsCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/diagnosticsCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/diagnosticsCreateSample.js +37 -0
- package/dist-esm/samples-dev/diagnosticsCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/diagnosticsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/diagnosticsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/diagnosticsGetSample.js +37 -0
- package/dist-esm/samples-dev/diagnosticsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/discoverySolutionListSample.d.ts +2 -0
- package/dist-esm/samples-dev/discoverySolutionListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/discoverySolutionListSample.js +57 -0
- package/dist-esm/samples-dev/discoverySolutionListSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +56 -0
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
- package/dist-esm/src/helpRP.d.ts +20 -0
- package/dist-esm/src/helpRP.d.ts.map +1 -0
- package/dist-esm/src/helpRP.js +96 -0
- package/dist-esm/src/helpRP.js.map +1 -0
- package/dist-esm/src/index.d.ts +6 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +13 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +11 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +21 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +435 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +72 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +20 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +585 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +13 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +117 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/diagnostics.d.ts +53 -0
- package/dist-esm/src/operations/diagnostics.d.ts.map +1 -0
- package/dist-esm/src/operations/diagnostics.js +180 -0
- package/dist-esm/src/operations/diagnostics.js.map +1 -0
- package/dist-esm/src/operations/discoverySolution.d.ts +50 -0
- package/dist-esm/src/operations/discoverySolution.d.ts.map +1 -0
- package/dist-esm/src/operations/discoverySolution.js +160 -0
- package/dist-esm/src/operations/discoverySolution.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +4 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +11 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +138 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/diagnostics.d.ts +45 -0
- package/dist-esm/src/operationsInterfaces/diagnostics.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/diagnostics.js +9 -0
- package/dist-esm/src/operationsInterfaces/diagnostics.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/discoverySolution.d.ts +19 -0
- package/dist-esm/src/operationsInterfaces/discoverySolution.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/discoverySolution.js +9 -0
- package/dist-esm/src/operationsInterfaces/discoverySolution.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +4 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +11 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/dist-esm/test/selfhelp_operations_test.spec.d.ts +4 -0
- package/dist-esm/test/selfhelp_operations_test.spec.d.ts.map +1 -0
- package/dist-esm/test/selfhelp_operations_test.spec.js +62 -0
- package/dist-esm/test/selfhelp_operations_test.spec.js.map +1 -0
- package/package.json +123 -0
- package/review/arm-selfhelp.api.md +310 -0
- package/rollup.config.js +122 -0
- package/src/helpRP.ts +144 -0
- package/src/index.ts +13 -0
- package/src/lroImpl.ts +42 -0
- package/src/models/index.ts +485 -0
- package/src/models/mappers.ts +619 -0
- package/src/models/parameters.ts +136 -0
- package/src/operations/diagnostics.ts +249 -0
- package/src/operations/discoverySolution.ts +179 -0
- package/src/operations/index.ts +11 -0
- package/src/operations/operations.ts +149 -0
- package/src/operationsInterfaces/diagnostics.ts +80 -0
- package/src/operationsInterfaces/discoverySolution.ts +34 -0
- package/src/operationsInterfaces/index.ts +11 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/pagingHelper.ts +39 -0
- package/tsconfig.json +33 -0
- package/types/arm-selfhelp.d.ts +579 -0
- package/types/tsdoc-metadata.json +11 -0
|
@@ -0,0 +1,579 @@
|
|
|
1
|
+
import * as coreAuth from '@azure/core-auth';
|
|
2
|
+
import * as coreClient from '@azure/core-client';
|
|
3
|
+
import { OperationState } from '@azure/core-lro';
|
|
4
|
+
import { PagedAsyncIterableIterator } from '@azure/core-paging';
|
|
5
|
+
import { SimplePollerLike } from '@azure/core-lro';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Defines values for ActionType. \
|
|
9
|
+
* {@link KnownActionType} can be used interchangeably with ActionType,
|
|
10
|
+
* this enum contains the known values that the service supports.
|
|
11
|
+
* ### Known values supported by the service
|
|
12
|
+
* **Internal**
|
|
13
|
+
*/
|
|
14
|
+
export declare type ActionType = string;
|
|
15
|
+
|
|
16
|
+
/** The check availability request body. */
|
|
17
|
+
export declare interface CheckNameAvailabilityRequest {
|
|
18
|
+
/** The name of the resource for which availability needs to be checked. */
|
|
19
|
+
name?: string;
|
|
20
|
+
/** The resource type. */
|
|
21
|
+
type?: string;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/** Response for whether the requested resource name is available or not. */
|
|
25
|
+
export declare interface CheckNameAvailabilityResponse {
|
|
26
|
+
/** Returns true or false depending on the availability of the name */
|
|
27
|
+
nameAvailable?: boolean;
|
|
28
|
+
/** Reason for why value is not available. This field is returned if nameAvailable is false. */
|
|
29
|
+
reason?: string;
|
|
30
|
+
/** Gets an error message explaining the 'reason' value with more details. This field is returned iif nameAvailable is false. */
|
|
31
|
+
message?: string;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Defines values for CreatedByType. \
|
|
36
|
+
* {@link KnownCreatedByType} can be used interchangeably with CreatedByType,
|
|
37
|
+
* this enum contains the known values that the service supports.
|
|
38
|
+
* ### Known values supported by the service
|
|
39
|
+
* **User** \
|
|
40
|
+
* **Application** \
|
|
41
|
+
* **ManagedIdentity** \
|
|
42
|
+
* **Key**
|
|
43
|
+
*/
|
|
44
|
+
export declare type CreatedByType = string;
|
|
45
|
+
|
|
46
|
+
/** Properties returned with in an insight. */
|
|
47
|
+
export declare interface Diagnostic {
|
|
48
|
+
/** Solution Id */
|
|
49
|
+
solutionId?: string;
|
|
50
|
+
/** Denotes the status of the diagnostic resource. */
|
|
51
|
+
status?: Status;
|
|
52
|
+
/** The problems (if any) detected by this insight. */
|
|
53
|
+
insights?: Insight[];
|
|
54
|
+
/** Error definition. */
|
|
55
|
+
error?: ErrorModel;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/** Solution Invocation with additional params needed for invocation. */
|
|
59
|
+
export declare interface DiagnosticInvocation {
|
|
60
|
+
/** Solution Id to invoke. */
|
|
61
|
+
solutionId?: string;
|
|
62
|
+
/** Additional parameters required to invoke the solutionId. */
|
|
63
|
+
additionalParameters?: {
|
|
64
|
+
[propertyName: string]: string;
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/** Diagnostic resource */
|
|
69
|
+
export declare interface DiagnosticResource extends ProxyResource {
|
|
70
|
+
/** Global parameters that can be passed to all solutionIds. */
|
|
71
|
+
globalParameters?: {
|
|
72
|
+
[propertyName: string]: string;
|
|
73
|
+
};
|
|
74
|
+
/** SolutionIds that are needed to be invoked. */
|
|
75
|
+
insights?: DiagnosticInvocation[];
|
|
76
|
+
/**
|
|
77
|
+
* Diagnostic Request Accepted time.
|
|
78
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
79
|
+
*/
|
|
80
|
+
readonly acceptedAt?: string;
|
|
81
|
+
/**
|
|
82
|
+
* Status of diagnostic provisioning.
|
|
83
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
84
|
+
*/
|
|
85
|
+
readonly provisioningState?: ProvisioningState;
|
|
86
|
+
/**
|
|
87
|
+
* Array of Diagnostics.
|
|
88
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
89
|
+
*/
|
|
90
|
+
readonly diagnostics?: Diagnostic[];
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/** Interface representing a Diagnostics. */
|
|
94
|
+
export declare interface Diagnostics {
|
|
95
|
+
/**
|
|
96
|
+
* This API is used to check the uniqueness of a resource name used for a diagnostic check.
|
|
97
|
+
* @param scope This is an extension resource provider and only resource level extension is supported
|
|
98
|
+
* at the moment.
|
|
99
|
+
* @param options The options parameters.
|
|
100
|
+
*/
|
|
101
|
+
checkNameAvailability(scope: string, options?: DiagnosticsCheckNameAvailabilityOptionalParams): Promise<DiagnosticsCheckNameAvailabilityResponse>;
|
|
102
|
+
/**
|
|
103
|
+
* Diagnostics tells you precisely the root cause of the issue and how to address it. You can get
|
|
104
|
+
* diagnostics once you discover and identify the relevant solution for your Azure issue.<br/><br/> You
|
|
105
|
+
* can create diagnostics using the ‘solutionId’ from Solution Discovery API response and
|
|
106
|
+
* ‘additionalParameters’ <br/><br/> <b>Note: </b>‘requiredParameterSets’ from Solutions Discovery API
|
|
107
|
+
* response must be passed via ‘additionalParameters’ as an input to Diagnostics API
|
|
108
|
+
* @param scope This is an extension resource provider and only resource level extension is supported
|
|
109
|
+
* at the moment.
|
|
110
|
+
* @param diagnosticsResourceName Unique resource name for insight resources
|
|
111
|
+
* @param options The options parameters.
|
|
112
|
+
*/
|
|
113
|
+
beginCreate(scope: string, diagnosticsResourceName: string, options?: DiagnosticsCreateOptionalParams): Promise<SimplePollerLike<OperationState<DiagnosticsCreateResponse>, DiagnosticsCreateResponse>>;
|
|
114
|
+
/**
|
|
115
|
+
* Diagnostics tells you precisely the root cause of the issue and how to address it. You can get
|
|
116
|
+
* diagnostics once you discover and identify the relevant solution for your Azure issue.<br/><br/> You
|
|
117
|
+
* can create diagnostics using the ‘solutionId’ from Solution Discovery API response and
|
|
118
|
+
* ‘additionalParameters’ <br/><br/> <b>Note: </b>‘requiredParameterSets’ from Solutions Discovery API
|
|
119
|
+
* response must be passed via ‘additionalParameters’ as an input to Diagnostics API
|
|
120
|
+
* @param scope This is an extension resource provider and only resource level extension is supported
|
|
121
|
+
* at the moment.
|
|
122
|
+
* @param diagnosticsResourceName Unique resource name for insight resources
|
|
123
|
+
* @param options The options parameters.
|
|
124
|
+
*/
|
|
125
|
+
beginCreateAndWait(scope: string, diagnosticsResourceName: string, options?: DiagnosticsCreateOptionalParams): Promise<DiagnosticsCreateResponse>;
|
|
126
|
+
/**
|
|
127
|
+
* Get the diagnostics using the 'diagnosticsResourceName' you chose while creating the diagnostic.
|
|
128
|
+
* @param scope This is an extension resource provider and only resource level extension is supported
|
|
129
|
+
* at the moment.
|
|
130
|
+
* @param diagnosticsResourceName Unique resource name for insight resources
|
|
131
|
+
* @param options The options parameters.
|
|
132
|
+
*/
|
|
133
|
+
get(scope: string, diagnosticsResourceName: string, options?: DiagnosticsGetOptionalParams): Promise<DiagnosticsGetResponse>;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/** Optional parameters. */
|
|
137
|
+
export declare interface DiagnosticsCheckNameAvailabilityOptionalParams extends coreClient.OperationOptions {
|
|
138
|
+
/** The required parameters for availability check. */
|
|
139
|
+
checkNameAvailabilityRequest?: CheckNameAvailabilityRequest;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/** Contains response data for the checkNameAvailability operation. */
|
|
143
|
+
export declare type DiagnosticsCheckNameAvailabilityResponse = CheckNameAvailabilityResponse;
|
|
144
|
+
|
|
145
|
+
/** Optional parameters. */
|
|
146
|
+
export declare interface DiagnosticsCreateOptionalParams extends coreClient.OperationOptions {
|
|
147
|
+
/** The required request body for this insightResource invocation. */
|
|
148
|
+
diagnosticResourceRequest?: DiagnosticResource;
|
|
149
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
150
|
+
updateIntervalInMs?: number;
|
|
151
|
+
/** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
|
|
152
|
+
resumeFrom?: string;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/** Contains response data for the create operation. */
|
|
156
|
+
export declare type DiagnosticsCreateResponse = DiagnosticResource;
|
|
157
|
+
|
|
158
|
+
/** Optional parameters. */
|
|
159
|
+
export declare interface DiagnosticsGetOptionalParams extends coreClient.OperationOptions {
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/** Contains response data for the get operation. */
|
|
163
|
+
export declare type DiagnosticsGetResponse = DiagnosticResource;
|
|
164
|
+
|
|
165
|
+
/** Discovery response. */
|
|
166
|
+
export declare interface DiscoveryResponse {
|
|
167
|
+
/** The list of solution metadata. */
|
|
168
|
+
value?: SolutionMetadataResource[];
|
|
169
|
+
/** The link used to get the next page of solution metadata. */
|
|
170
|
+
nextLink?: string;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/** Interface representing a DiscoverySolution. */
|
|
174
|
+
export declare interface DiscoverySolution {
|
|
175
|
+
/**
|
|
176
|
+
* Solutions Discovery is the initial point of entry within Help API, which helps you identify the
|
|
177
|
+
* relevant solutions for your Azure issue.<br/><br/> You can discover solutions using resourceUri OR
|
|
178
|
+
* resourceUri + problemClassificationId.<br/><br/>We will do our best in returning relevant
|
|
179
|
+
* diagnostics for your Azure issue.<br/><br/> Get the problemClassificationId(s) using this
|
|
180
|
+
* [reference](https://learn.microsoft.com/rest/api/support/problem-classifications/list?tabs=HTTP).<br/><br/>
|
|
181
|
+
* <b>Note: </b> ‘requiredParameterSets’ from Solutions Discovery API response must be passed via
|
|
182
|
+
* ‘additionalParameters’ as an input to Diagnostics API.
|
|
183
|
+
* @param scope This is an extension resource provider and only resource level extension is supported
|
|
184
|
+
* at the moment.
|
|
185
|
+
* @param options The options parameters.
|
|
186
|
+
*/
|
|
187
|
+
list(scope: string, options?: DiscoverySolutionListOptionalParams): PagedAsyncIterableIterator<SolutionMetadataResource>;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/** Optional parameters. */
|
|
191
|
+
export declare interface DiscoverySolutionListNextOptionalParams extends coreClient.OperationOptions {
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
/** Contains response data for the listNext operation. */
|
|
195
|
+
export declare type DiscoverySolutionListNextResponse = DiscoveryResponse;
|
|
196
|
+
|
|
197
|
+
/** Optional parameters. */
|
|
198
|
+
export declare interface DiscoverySolutionListOptionalParams extends coreClient.OperationOptions {
|
|
199
|
+
/** Can be used to filter solutionIds by 'ProblemClassificationId'. The filter supports only 'and' and 'eq' operators. Example: $filter=ProblemClassificationId eq '1ddda5b4-cf6c-4d4f-91ad-bc38ab0e811e' and ProblemClassificationId eq '0a9673c2-7af6-4e19-90d3-4ee2461076d9'. */
|
|
200
|
+
filter?: string;
|
|
201
|
+
/** Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. */
|
|
202
|
+
skiptoken?: string;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/** Contains response data for the list operation. */
|
|
206
|
+
export declare type DiscoverySolutionListResponse = DiscoveryResponse;
|
|
207
|
+
|
|
208
|
+
/** The resource management error additional info. */
|
|
209
|
+
export declare interface ErrorAdditionalInfo {
|
|
210
|
+
/**
|
|
211
|
+
* The additional info type.
|
|
212
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
213
|
+
*/
|
|
214
|
+
readonly type?: string;
|
|
215
|
+
/**
|
|
216
|
+
* The additional info.
|
|
217
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
218
|
+
*/
|
|
219
|
+
readonly info?: Record<string, unknown>;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
/** The error detail. */
|
|
223
|
+
export declare interface ErrorDetail {
|
|
224
|
+
/**
|
|
225
|
+
* The error code.
|
|
226
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
227
|
+
*/
|
|
228
|
+
readonly code?: string;
|
|
229
|
+
/**
|
|
230
|
+
* The error message.
|
|
231
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
232
|
+
*/
|
|
233
|
+
readonly message?: string;
|
|
234
|
+
/**
|
|
235
|
+
* The error target.
|
|
236
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
237
|
+
*/
|
|
238
|
+
readonly target?: string;
|
|
239
|
+
/**
|
|
240
|
+
* The error details.
|
|
241
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
242
|
+
*/
|
|
243
|
+
readonly details?: ErrorDetail[];
|
|
244
|
+
/**
|
|
245
|
+
* The error additional info.
|
|
246
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
247
|
+
*/
|
|
248
|
+
readonly additionalInfo?: ErrorAdditionalInfo[];
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/** Error definition. */
|
|
252
|
+
export declare interface ErrorModel {
|
|
253
|
+
/**
|
|
254
|
+
* Service specific error code which serves as the substatus for the HTTP error code.
|
|
255
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
256
|
+
*/
|
|
257
|
+
readonly code?: string;
|
|
258
|
+
/**
|
|
259
|
+
* Service specific error type which serves as additional context for the error herein.
|
|
260
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
261
|
+
*/
|
|
262
|
+
readonly type?: string;
|
|
263
|
+
/**
|
|
264
|
+
* Description of the error.
|
|
265
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
266
|
+
*/
|
|
267
|
+
readonly message?: string;
|
|
268
|
+
/** An array of additional nested error response info objects, as described by this contract. */
|
|
269
|
+
details?: ErrorModel[];
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */
|
|
273
|
+
export declare interface ErrorResponse {
|
|
274
|
+
/** The error object. */
|
|
275
|
+
error?: ErrorDetail;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* Given the last `.value` produced by the `byPage` iterator,
|
|
280
|
+
* returns a continuation token that can be used to begin paging from
|
|
281
|
+
* that point later.
|
|
282
|
+
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
|
283
|
+
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
284
|
+
*/
|
|
285
|
+
export declare function getContinuationToken(page: unknown): string | undefined;
|
|
286
|
+
|
|
287
|
+
export declare class HelpRP extends coreClient.ServiceClient {
|
|
288
|
+
$host: string;
|
|
289
|
+
apiVersion: string;
|
|
290
|
+
/**
|
|
291
|
+
* Initializes a new instance of the HelpRP class.
|
|
292
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
293
|
+
* @param options The parameter options
|
|
294
|
+
*/
|
|
295
|
+
constructor(credentials: coreAuth.TokenCredential, options?: HelpRPOptionalParams);
|
|
296
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
297
|
+
private addCustomApiVersionPolicy;
|
|
298
|
+
operations: Operations;
|
|
299
|
+
diagnostics: Diagnostics;
|
|
300
|
+
discoverySolution: DiscoverySolution;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
/** Optional parameters. */
|
|
304
|
+
export declare interface HelpRPOptionalParams extends coreClient.ServiceClientOptions {
|
|
305
|
+
/** server parameter */
|
|
306
|
+
$host?: string;
|
|
307
|
+
/** Api Version */
|
|
308
|
+
apiVersion?: string;
|
|
309
|
+
/** Overrides client endpoint. */
|
|
310
|
+
endpoint?: string;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* Defines values for ImportanceLevel. \
|
|
315
|
+
* {@link KnownImportanceLevel} can be used interchangeably with ImportanceLevel,
|
|
316
|
+
* this enum contains the known values that the service supports.
|
|
317
|
+
* ### Known values supported by the service
|
|
318
|
+
* **Critical**: A critical insight has been found after running the diagnostic. \
|
|
319
|
+
* **Warning**: A warning insight has been found after running the diagnostic. \
|
|
320
|
+
* **Information**: An information insight has been found after running the diagnostic.
|
|
321
|
+
*/
|
|
322
|
+
export declare type ImportanceLevel = string;
|
|
323
|
+
|
|
324
|
+
/** Detailed insights(s) obtained via the invocation of an insight diagnostic troubleshooter. */
|
|
325
|
+
export declare interface Insight {
|
|
326
|
+
/** Article id. */
|
|
327
|
+
id?: string;
|
|
328
|
+
/** This insight's title. */
|
|
329
|
+
title?: string;
|
|
330
|
+
/** Detailed result content. */
|
|
331
|
+
results?: string;
|
|
332
|
+
/** Importance level of the insight. */
|
|
333
|
+
importanceLevel?: ImportanceLevel;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
/** Known values of {@link ActionType} that the service accepts. */
|
|
337
|
+
export declare enum KnownActionType {
|
|
338
|
+
/** Internal */
|
|
339
|
+
Internal = "Internal"
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
/** Known values of {@link CreatedByType} that the service accepts. */
|
|
343
|
+
export declare enum KnownCreatedByType {
|
|
344
|
+
/** User */
|
|
345
|
+
User = "User",
|
|
346
|
+
/** Application */
|
|
347
|
+
Application = "Application",
|
|
348
|
+
/** ManagedIdentity */
|
|
349
|
+
ManagedIdentity = "ManagedIdentity",
|
|
350
|
+
/** Key */
|
|
351
|
+
Key = "Key"
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
/** Known values of {@link ImportanceLevel} that the service accepts. */
|
|
355
|
+
export declare enum KnownImportanceLevel {
|
|
356
|
+
/** A critical insight has been found after running the diagnostic. */
|
|
357
|
+
Critical = "Critical",
|
|
358
|
+
/** A warning insight has been found after running the diagnostic. */
|
|
359
|
+
Warning = "Warning",
|
|
360
|
+
/** An information insight has been found after running the diagnostic. */
|
|
361
|
+
Information = "Information"
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
/** Known values of {@link Origin} that the service accepts. */
|
|
365
|
+
export declare enum KnownOrigin {
|
|
366
|
+
/** User */
|
|
367
|
+
User = "user",
|
|
368
|
+
/** System */
|
|
369
|
+
System = "system",
|
|
370
|
+
/** UserSystem */
|
|
371
|
+
UserSystem = "user,system"
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
/** Known values of {@link ProvisioningState} that the service accepts. */
|
|
375
|
+
export declare enum KnownProvisioningState {
|
|
376
|
+
/** All Diagnostics in the Batch succeeded. */
|
|
377
|
+
Succeeded = "Succeeded",
|
|
378
|
+
/** Some Diagnostics are still running or failed. */
|
|
379
|
+
PartialComplete = "PartialComplete",
|
|
380
|
+
/** All Diagnostics failed to run. */
|
|
381
|
+
Failed = "Failed",
|
|
382
|
+
/** When Diagnostic request gets canceled. */
|
|
383
|
+
Canceled = "Canceled"
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
/** Known values of {@link Status} that the service accepts. */
|
|
387
|
+
export declare enum KnownStatus {
|
|
388
|
+
/** Diagnostic creation failed. */
|
|
389
|
+
Failed = "Failed",
|
|
390
|
+
/** Request is missing required inputs to run. */
|
|
391
|
+
MissingInputs = "MissingInputs",
|
|
392
|
+
/** Diagnostic is still running. */
|
|
393
|
+
Running = "Running",
|
|
394
|
+
/** Diagnostic creation succeeded. */
|
|
395
|
+
Succeeded = "Succeeded",
|
|
396
|
+
/** Diagnostic was timed out. */
|
|
397
|
+
Timeout = "Timeout"
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
/** Details of a REST API operation, returned from the Resource Provider Operations API */
|
|
401
|
+
export declare interface Operation {
|
|
402
|
+
/**
|
|
403
|
+
* The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action"
|
|
404
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
405
|
+
*/
|
|
406
|
+
readonly name?: string;
|
|
407
|
+
/**
|
|
408
|
+
* Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane operations.
|
|
409
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
410
|
+
*/
|
|
411
|
+
readonly isDataAction?: boolean;
|
|
412
|
+
/** Localized display information for this particular operation. */
|
|
413
|
+
display?: OperationDisplay;
|
|
414
|
+
/**
|
|
415
|
+
* The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system"
|
|
416
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
417
|
+
*/
|
|
418
|
+
readonly origin?: Origin;
|
|
419
|
+
/**
|
|
420
|
+
* Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
|
|
421
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
422
|
+
*/
|
|
423
|
+
readonly actionType?: ActionType;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
/** Localized display information for this particular operation. */
|
|
427
|
+
export declare interface OperationDisplay {
|
|
428
|
+
/**
|
|
429
|
+
* The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute".
|
|
430
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
431
|
+
*/
|
|
432
|
+
readonly provider?: string;
|
|
433
|
+
/**
|
|
434
|
+
* The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections".
|
|
435
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
436
|
+
*/
|
|
437
|
+
readonly resource?: string;
|
|
438
|
+
/**
|
|
439
|
+
* The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine".
|
|
440
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
441
|
+
*/
|
|
442
|
+
readonly operation?: string;
|
|
443
|
+
/**
|
|
444
|
+
* The short, localized friendly description of the operation; suitable for tool tips and detailed views.
|
|
445
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
446
|
+
*/
|
|
447
|
+
readonly description?: string;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */
|
|
451
|
+
export declare interface OperationListResult {
|
|
452
|
+
/**
|
|
453
|
+
* List of operations supported by the resource provider
|
|
454
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
455
|
+
*/
|
|
456
|
+
readonly value?: Operation[];
|
|
457
|
+
/**
|
|
458
|
+
* URL to get the next set of operation list results (if there are any).
|
|
459
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
460
|
+
*/
|
|
461
|
+
readonly nextLink?: string;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
/** Interface representing a Operations. */
|
|
465
|
+
export declare interface Operations {
|
|
466
|
+
/**
|
|
467
|
+
* Returns list of operations.
|
|
468
|
+
* @param options The options parameters.
|
|
469
|
+
*/
|
|
470
|
+
list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
/** Optional parameters. */
|
|
474
|
+
export declare interface OperationsListNextOptionalParams extends coreClient.OperationOptions {
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
/** Contains response data for the listNext operation. */
|
|
478
|
+
export declare type OperationsListNextResponse = OperationListResult;
|
|
479
|
+
|
|
480
|
+
/** Optional parameters. */
|
|
481
|
+
export declare interface OperationsListOptionalParams extends coreClient.OperationOptions {
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
/** Contains response data for the list operation. */
|
|
485
|
+
export declare type OperationsListResponse = OperationListResult;
|
|
486
|
+
|
|
487
|
+
/**
|
|
488
|
+
* Defines values for Origin. \
|
|
489
|
+
* {@link KnownOrigin} can be used interchangeably with Origin,
|
|
490
|
+
* this enum contains the known values that the service supports.
|
|
491
|
+
* ### Known values supported by the service
|
|
492
|
+
* **user** \
|
|
493
|
+
* **system** \
|
|
494
|
+
* **user,system**
|
|
495
|
+
*/
|
|
496
|
+
export declare type Origin = string;
|
|
497
|
+
|
|
498
|
+
/**
|
|
499
|
+
* Defines values for ProvisioningState. \
|
|
500
|
+
* {@link KnownProvisioningState} can be used interchangeably with ProvisioningState,
|
|
501
|
+
* this enum contains the known values that the service supports.
|
|
502
|
+
* ### Known values supported by the service
|
|
503
|
+
* **Succeeded**: All Diagnostics in the Batch succeeded. \
|
|
504
|
+
* **PartialComplete**: Some Diagnostics are still running or failed. \
|
|
505
|
+
* **Failed**: All Diagnostics failed to run. \
|
|
506
|
+
* **Canceled**: When Diagnostic request gets canceled.
|
|
507
|
+
*/
|
|
508
|
+
export declare type ProvisioningState = string;
|
|
509
|
+
|
|
510
|
+
/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */
|
|
511
|
+
export declare interface ProxyResource extends Resource {
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
/** Common fields that are returned in the response for all Azure Resource Manager resources */
|
|
515
|
+
export declare interface Resource {
|
|
516
|
+
/**
|
|
517
|
+
* Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
|
|
518
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
519
|
+
*/
|
|
520
|
+
readonly id?: string;
|
|
521
|
+
/**
|
|
522
|
+
* The name of the resource
|
|
523
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
524
|
+
*/
|
|
525
|
+
readonly name?: string;
|
|
526
|
+
/**
|
|
527
|
+
* The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
|
|
528
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
529
|
+
*/
|
|
530
|
+
readonly type?: string;
|
|
531
|
+
/**
|
|
532
|
+
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
|
|
533
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
534
|
+
*/
|
|
535
|
+
readonly systemData?: SystemData;
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
/** Solution Metadata resource */
|
|
539
|
+
export declare interface SolutionMetadataResource extends ProxyResource {
|
|
540
|
+
/** Solution Id. */
|
|
541
|
+
solutionId?: string;
|
|
542
|
+
/** Solution Type. */
|
|
543
|
+
solutionType?: string;
|
|
544
|
+
/** A detailed description of solution. */
|
|
545
|
+
description?: string;
|
|
546
|
+
/** Required parameters for invoking this particular solution. */
|
|
547
|
+
requiredParameterSets?: string[][];
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
/**
|
|
551
|
+
* Defines values for Status. \
|
|
552
|
+
* {@link KnownStatus} can be used interchangeably with Status,
|
|
553
|
+
* this enum contains the known values that the service supports.
|
|
554
|
+
* ### Known values supported by the service
|
|
555
|
+
* **Failed**: Diagnostic creation failed. \
|
|
556
|
+
* **MissingInputs**: Request is missing required inputs to run. \
|
|
557
|
+
* **Running**: Diagnostic is still running. \
|
|
558
|
+
* **Succeeded**: Diagnostic creation succeeded. \
|
|
559
|
+
* **Timeout**: Diagnostic was timed out.
|
|
560
|
+
*/
|
|
561
|
+
export declare type Status = string;
|
|
562
|
+
|
|
563
|
+
/** Metadata pertaining to creation and last modification of the resource. */
|
|
564
|
+
export declare interface SystemData {
|
|
565
|
+
/** The identity that created the resource. */
|
|
566
|
+
createdBy?: string;
|
|
567
|
+
/** The type of identity that created the resource. */
|
|
568
|
+
createdByType?: CreatedByType;
|
|
569
|
+
/** The timestamp of resource creation (UTC). */
|
|
570
|
+
createdAt?: Date;
|
|
571
|
+
/** The identity that last modified the resource. */
|
|
572
|
+
lastModifiedBy?: string;
|
|
573
|
+
/** The type of identity that last modified the resource. */
|
|
574
|
+
lastModifiedByType?: CreatedByType;
|
|
575
|
+
/** The timestamp of resource last modification (UTC) */
|
|
576
|
+
lastModifiedAt?: Date;
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
export { }
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// This file is read by tools that parse documentation comments conforming to the TSDoc standard.
|
|
2
|
+
// It should be published with your NPM package. It should not be tracked by Git.
|
|
3
|
+
{
|
|
4
|
+
"tsdocVersion": "0.12",
|
|
5
|
+
"toolPackages": [
|
|
6
|
+
{
|
|
7
|
+
"packageName": "@microsoft/api-extractor",
|
|
8
|
+
"packageVersion": "7.34.4"
|
|
9
|
+
}
|
|
10
|
+
]
|
|
11
|
+
}
|