@azure/arm-storageactions 1.0.0-alpha.20240322.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.
- package/CHANGELOG.md +5 -0
- package/LICENSE +21 -0
- package/README.md +109 -0
- package/dist/index.js +2533 -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/operationsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +53 -0
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
- package/dist-esm/samples-dev/storageTaskAssignmentListSample.d.ts +2 -0
- package/dist-esm/samples-dev/storageTaskAssignmentListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageTaskAssignmentListSample.js +55 -0
- package/dist-esm/samples-dev/storageTaskAssignmentListSample.js.map +1 -0
- package/dist-esm/samples-dev/storageTasksCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/storageTasksCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageTasksCreateSample.js +64 -0
- package/dist-esm/samples-dev/storageTasksCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/storageTasksDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/storageTasksDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageTasksDeleteSample.js +39 -0
- package/dist-esm/samples-dev/storageTasksDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/storageTasksGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/storageTasksGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageTasksGetSample.js +39 -0
- package/dist-esm/samples-dev/storageTasksGetSample.js.map +1 -0
- package/dist-esm/samples-dev/storageTasksListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/storageTasksListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageTasksListByResourceGroupSample.js +54 -0
- package/dist-esm/samples-dev/storageTasksListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/storageTasksListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/storageTasksListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageTasksListBySubscriptionSample.js +53 -0
- package/dist-esm/samples-dev/storageTasksListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/storageTasksPreviewActionsSample.d.ts +2 -0
- package/dist-esm/samples-dev/storageTasksPreviewActionsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageTasksPreviewActionsSample.js +87 -0
- package/dist-esm/samples-dev/storageTasksPreviewActionsSample.js.map +1 -0
- package/dist-esm/samples-dev/storageTasksReportListSample.d.ts +2 -0
- package/dist-esm/samples-dev/storageTasksReportListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageTasksReportListSample.js +55 -0
- package/dist-esm/samples-dev/storageTasksReportListSample.js.map +1 -0
- package/dist-esm/samples-dev/storageTasksUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/storageTasksUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageTasksUpdateSample.js +63 -0
- package/dist-esm/samples-dev/storageTasksUpdateSample.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 +720 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +92 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +37 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +1043 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +16 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +143 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +5 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +12 -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 +133 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/storageTaskAssignmentOperations.d.ts +44 -0
- package/dist-esm/src/operations/storageTaskAssignmentOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/storageTaskAssignmentOperations.js +156 -0
- package/dist-esm/src/operations/storageTaskAssignmentOperations.js.map +1 -0
- package/dist-esm/src/operations/storageTasks.d.ts +135 -0
- package/dist-esm/src/operations/storageTasks.d.ts.map +1 -0
- package/dist-esm/src/operations/storageTasks.js +606 -0
- package/dist-esm/src/operations/storageTasks.js.map +1 -0
- package/dist-esm/src/operations/storageTasksReport.d.ts +44 -0
- package/dist-esm/src/operations/storageTasksReport.d.ts.map +1 -0
- package/dist-esm/src/operations/storageTasksReport.js +160 -0
- package/dist-esm/src/operations/storageTasksReport.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +5 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +12 -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/operationsInterfaces/storageTaskAssignmentOperations.d.ts +15 -0
- package/dist-esm/src/operationsInterfaces/storageTaskAssignmentOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/storageTaskAssignmentOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/storageTaskAssignmentOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/storageTasks.d.ts +99 -0
- package/dist-esm/src/operationsInterfaces/storageTasks.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/storageTasks.js +9 -0
- package/dist-esm/src/operationsInterfaces/storageTasks.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/storageTasksReport.d.ts +15 -0
- package/dist-esm/src/operationsInterfaces/storageTasksReport.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/storageTasksReport.js +9 -0
- package/dist-esm/src/operationsInterfaces/storageTasksReport.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/src/storageActionsManagementClient.d.ts +23 -0
- package/dist-esm/src/storageActionsManagementClient.d.ts.map +1 -0
- package/dist-esm/src/storageActionsManagementClient.js +104 -0
- package/dist-esm/src/storageActionsManagementClient.js.map +1 -0
- package/dist-esm/test/storageactions_operations_test.spec.d.ts +4 -0
- package/dist-esm/test/storageactions_operations_test.spec.d.ts.map +1 -0
- package/dist-esm/test/storageactions_operations_test.spec.js +135 -0
- package/dist-esm/test/storageactions_operations_test.spec.js.map +1 -0
- package/package.json +118 -0
- package/review/arm-storageactions.api.md +521 -0
- package/src/index.ts +13 -0
- package/src/lroImpl.ts +42 -0
- package/src/models/index.ts +818 -0
- package/src/models/mappers.ts +1094 -0
- package/src/models/parameters.ts +166 -0
- package/src/operations/index.ts +12 -0
- package/src/operations/operations.ts +149 -0
- package/src/operations/storageTaskAssignmentOperations.ts +205 -0
- package/src/operations/storageTasks.ts +791 -0
- package/src/operations/storageTasksReport.ts +207 -0
- package/src/operationsInterfaces/index.ts +12 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/storageTaskAssignmentOperations.ts +31 -0
- package/src/operationsInterfaces/storageTasks.ts +180 -0
- package/src/operationsInterfaces/storageTasksReport.ts +31 -0
- package/src/pagingHelper.ts +39 -0
- package/src/storageActionsManagementClient.ts +158 -0
- package/tsconfig.json +33 -0
- package/types/arm-storageactions.d.ts +967 -0
- package/types/tsdoc-metadata.json +11 -0
|
@@ -0,0 +1,521 @@
|
|
|
1
|
+
## API Report File for "@azure/arm-storageactions"
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
|
|
7
|
+
import * as coreAuth from '@azure/core-auth';
|
|
8
|
+
import * as coreClient from '@azure/core-client';
|
|
9
|
+
import { OperationState } from '@azure/core-lro';
|
|
10
|
+
import { PagedAsyncIterableIterator } from '@azure/core-paging';
|
|
11
|
+
import { SimplePollerLike } from '@azure/core-lro';
|
|
12
|
+
|
|
13
|
+
// @public
|
|
14
|
+
export type ActionType = string;
|
|
15
|
+
|
|
16
|
+
// @public
|
|
17
|
+
export type CreatedByType = string;
|
|
18
|
+
|
|
19
|
+
// @public
|
|
20
|
+
export interface ElseCondition {
|
|
21
|
+
operations: StorageTaskOperation[];
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// @public
|
|
25
|
+
export interface ErrorAdditionalInfo {
|
|
26
|
+
readonly info?: Record<string, unknown>;
|
|
27
|
+
readonly type?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// @public
|
|
31
|
+
export interface ErrorDetail {
|
|
32
|
+
readonly additionalInfo?: ErrorAdditionalInfo[];
|
|
33
|
+
readonly code?: string;
|
|
34
|
+
readonly details?: ErrorDetail[];
|
|
35
|
+
readonly message?: string;
|
|
36
|
+
readonly target?: string;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// @public
|
|
40
|
+
export interface ErrorResponse {
|
|
41
|
+
error?: ErrorDetail;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// @public
|
|
45
|
+
export function getContinuationToken(page: unknown): string | undefined;
|
|
46
|
+
|
|
47
|
+
// @public
|
|
48
|
+
export interface IfCondition {
|
|
49
|
+
condition: string;
|
|
50
|
+
operations: StorageTaskOperation[];
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// @public
|
|
54
|
+
export enum KnownActionType {
|
|
55
|
+
Internal = "Internal"
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// @public
|
|
59
|
+
export enum KnownCreatedByType {
|
|
60
|
+
Application = "Application",
|
|
61
|
+
Key = "Key",
|
|
62
|
+
ManagedIdentity = "ManagedIdentity",
|
|
63
|
+
User = "User"
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// @public
|
|
67
|
+
export enum KnownManagedServiceIdentityType {
|
|
68
|
+
None = "None",
|
|
69
|
+
SystemAssigned = "SystemAssigned",
|
|
70
|
+
SystemAssignedUserAssigned = "SystemAssigned,UserAssigned",
|
|
71
|
+
UserAssigned = "UserAssigned"
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
// @public
|
|
75
|
+
export enum KnownMatchedBlockName {
|
|
76
|
+
Else = "Else",
|
|
77
|
+
If = "If",
|
|
78
|
+
None = "None"
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// @public
|
|
82
|
+
export enum KnownOrigin {
|
|
83
|
+
System = "system",
|
|
84
|
+
User = "user",
|
|
85
|
+
UserSystem = "user,system"
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
// @public
|
|
89
|
+
export enum KnownRunResult {
|
|
90
|
+
Failed = "Failed",
|
|
91
|
+
Succeeded = "Succeeded"
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
// @public
|
|
95
|
+
export enum KnownRunStatusEnum {
|
|
96
|
+
Finished = "Finished",
|
|
97
|
+
InProgress = "InProgress"
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
// @public
|
|
101
|
+
export enum KnownStorageTaskOperationName {
|
|
102
|
+
DeleteBlob = "DeleteBlob",
|
|
103
|
+
SetBlobExpiry = "SetBlobExpiry",
|
|
104
|
+
SetBlobImmutabilityPolicy = "SetBlobImmutabilityPolicy",
|
|
105
|
+
SetBlobLegalHold = "SetBlobLegalHold",
|
|
106
|
+
SetBlobTags = "SetBlobTags",
|
|
107
|
+
SetBlobTier = "SetBlobTier",
|
|
108
|
+
UndeleteBlob = "UndeleteBlob"
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
// @public
|
|
112
|
+
export interface ManagedServiceIdentity {
|
|
113
|
+
readonly principalId?: string;
|
|
114
|
+
readonly tenantId?: string;
|
|
115
|
+
type: ManagedServiceIdentityType;
|
|
116
|
+
userAssignedIdentities?: {
|
|
117
|
+
[propertyName: string]: UserAssignedIdentity | null;
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
// @public
|
|
122
|
+
export type ManagedServiceIdentityType = string;
|
|
123
|
+
|
|
124
|
+
// @public
|
|
125
|
+
export type MatchedBlockName = string;
|
|
126
|
+
|
|
127
|
+
// @public
|
|
128
|
+
export interface Operation {
|
|
129
|
+
readonly actionType?: ActionType;
|
|
130
|
+
display?: OperationDisplay;
|
|
131
|
+
readonly isDataAction?: boolean;
|
|
132
|
+
readonly name?: string;
|
|
133
|
+
readonly origin?: Origin;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
// @public
|
|
137
|
+
export interface OperationDisplay {
|
|
138
|
+
readonly description?: string;
|
|
139
|
+
readonly operation?: string;
|
|
140
|
+
readonly provider?: string;
|
|
141
|
+
readonly resource?: string;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
// @public
|
|
145
|
+
export interface OperationListResult {
|
|
146
|
+
readonly nextLink?: string;
|
|
147
|
+
readonly value?: Operation[];
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
// @public
|
|
151
|
+
export interface Operations {
|
|
152
|
+
list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
// @public
|
|
156
|
+
export interface OperationsListNextOptionalParams extends coreClient.OperationOptions {
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
// @public
|
|
160
|
+
export type OperationsListNextResponse = OperationListResult;
|
|
161
|
+
|
|
162
|
+
// @public
|
|
163
|
+
export interface OperationsListOptionalParams extends coreClient.OperationOptions {
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
// @public
|
|
167
|
+
export type OperationsListResponse = OperationListResult;
|
|
168
|
+
|
|
169
|
+
// @public
|
|
170
|
+
export type Origin = string;
|
|
171
|
+
|
|
172
|
+
// @public
|
|
173
|
+
export type ProvisioningState = "ValidateSubscriptionQuotaBegin" | "ValidateSubscriptionQuotaEnd" | "Creating" | "Succeeded" | "Deleting" | "Canceled" | "Failed";
|
|
174
|
+
|
|
175
|
+
// @public
|
|
176
|
+
export interface ProxyResource extends Resource {
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
// @public
|
|
180
|
+
export interface Resource {
|
|
181
|
+
readonly id?: string;
|
|
182
|
+
readonly name?: string;
|
|
183
|
+
readonly systemData?: SystemData;
|
|
184
|
+
readonly type?: string;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
// @public
|
|
188
|
+
export type RunResult = string;
|
|
189
|
+
|
|
190
|
+
// @public
|
|
191
|
+
export type RunStatusEnum = string;
|
|
192
|
+
|
|
193
|
+
// @public (undocumented)
|
|
194
|
+
export class StorageActionsManagementClient extends coreClient.ServiceClient {
|
|
195
|
+
// (undocumented)
|
|
196
|
+
$host: string;
|
|
197
|
+
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: StorageActionsManagementClientOptionalParams);
|
|
198
|
+
// (undocumented)
|
|
199
|
+
apiVersion: string;
|
|
200
|
+
// (undocumented)
|
|
201
|
+
operations: Operations;
|
|
202
|
+
// (undocumented)
|
|
203
|
+
storageTaskAssignmentOperations: StorageTaskAssignmentOperations;
|
|
204
|
+
// (undocumented)
|
|
205
|
+
storageTasks: StorageTasks;
|
|
206
|
+
// (undocumented)
|
|
207
|
+
storageTasksReport: StorageTasksReport;
|
|
208
|
+
// (undocumented)
|
|
209
|
+
subscriptionId: string;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
// @public
|
|
213
|
+
export interface StorageActionsManagementClientOptionalParams extends coreClient.ServiceClientOptions {
|
|
214
|
+
$host?: string;
|
|
215
|
+
apiVersion?: string;
|
|
216
|
+
endpoint?: string;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
// @public
|
|
220
|
+
export interface StorageTask extends TrackedResource {
|
|
221
|
+
identity?: ManagedServiceIdentity;
|
|
222
|
+
properties?: StorageTaskProperties;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
// @public
|
|
226
|
+
export interface StorageTaskAction {
|
|
227
|
+
else?: ElseCondition;
|
|
228
|
+
if: IfCondition;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
// @public
|
|
232
|
+
export interface StorageTaskAssignment {
|
|
233
|
+
readonly id?: string;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
// @public
|
|
237
|
+
export interface StorageTaskAssignmentListNextOptionalParams extends coreClient.OperationOptions {
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
// @public
|
|
241
|
+
export type StorageTaskAssignmentListNextResponse = StorageTaskAssignmentsListResult;
|
|
242
|
+
|
|
243
|
+
// @public
|
|
244
|
+
export interface StorageTaskAssignmentListOptionalParams extends coreClient.OperationOptions {
|
|
245
|
+
maxpagesize?: string;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
// @public
|
|
249
|
+
export type StorageTaskAssignmentListResponse = StorageTaskAssignmentsListResult;
|
|
250
|
+
|
|
251
|
+
// @public
|
|
252
|
+
export interface StorageTaskAssignmentOperations {
|
|
253
|
+
list(resourceGroupName: string, storageTaskName: string, options?: StorageTaskAssignmentListOptionalParams): PagedAsyncIterableIterator<StorageTaskAssignment>;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
// @public
|
|
257
|
+
export interface StorageTaskAssignmentsListResult {
|
|
258
|
+
readonly nextLink?: string;
|
|
259
|
+
readonly value?: StorageTaskAssignment[];
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
// @public
|
|
263
|
+
export interface StorageTaskOperation {
|
|
264
|
+
name: StorageTaskOperationName;
|
|
265
|
+
onFailure?: "break";
|
|
266
|
+
onSuccess?: "continue";
|
|
267
|
+
parameters?: {
|
|
268
|
+
[propertyName: string]: string;
|
|
269
|
+
};
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
// @public
|
|
273
|
+
export type StorageTaskOperationName = string;
|
|
274
|
+
|
|
275
|
+
// @public
|
|
276
|
+
export interface StorageTaskPreviewAction {
|
|
277
|
+
properties: StorageTaskPreviewActionProperties;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
// @public
|
|
281
|
+
export interface StorageTaskPreviewActionCondition {
|
|
282
|
+
elseBlockExists: boolean;
|
|
283
|
+
if: StorageTaskPreviewActionIfCondition;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
// @public
|
|
287
|
+
export interface StorageTaskPreviewActionIfCondition {
|
|
288
|
+
condition?: string;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
// @public
|
|
292
|
+
export interface StorageTaskPreviewActionProperties {
|
|
293
|
+
action: StorageTaskPreviewActionCondition;
|
|
294
|
+
blobs: StorageTaskPreviewBlobProperties[];
|
|
295
|
+
container: StorageTaskPreviewContainerProperties;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
// @public
|
|
299
|
+
export interface StorageTaskPreviewBlobProperties {
|
|
300
|
+
readonly matchedBlock?: MatchedBlockName;
|
|
301
|
+
metadata?: StorageTaskPreviewKeyValueProperties[];
|
|
302
|
+
name?: string;
|
|
303
|
+
properties?: StorageTaskPreviewKeyValueProperties[];
|
|
304
|
+
tags?: StorageTaskPreviewKeyValueProperties[];
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
// @public
|
|
308
|
+
export interface StorageTaskPreviewContainerProperties {
|
|
309
|
+
metadata?: StorageTaskPreviewKeyValueProperties[];
|
|
310
|
+
name?: string;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
// @public
|
|
314
|
+
export interface StorageTaskPreviewKeyValueProperties {
|
|
315
|
+
key?: string;
|
|
316
|
+
value?: string;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
// @public
|
|
320
|
+
export interface StorageTaskProperties {
|
|
321
|
+
action: StorageTaskAction;
|
|
322
|
+
readonly creationTimeInUtc?: Date;
|
|
323
|
+
description: string;
|
|
324
|
+
enabled: boolean;
|
|
325
|
+
readonly provisioningState?: ProvisioningState;
|
|
326
|
+
readonly taskVersion?: number;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
// @public
|
|
330
|
+
export interface StorageTaskReportInstance extends ProxyResource {
|
|
331
|
+
properties?: StorageTaskReportProperties;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
// @public
|
|
335
|
+
export interface StorageTaskReportProperties {
|
|
336
|
+
readonly finishTime?: string;
|
|
337
|
+
readonly objectFailedCount?: string;
|
|
338
|
+
readonly objectsOperatedOnCount?: string;
|
|
339
|
+
readonly objectsSucceededCount?: string;
|
|
340
|
+
readonly objectsTargetedCount?: string;
|
|
341
|
+
readonly runResult?: RunResult;
|
|
342
|
+
readonly runStatusEnum?: RunStatusEnum;
|
|
343
|
+
readonly runStatusError?: string;
|
|
344
|
+
readonly startTime?: string;
|
|
345
|
+
readonly storageAccountId?: string;
|
|
346
|
+
readonly summaryReportPath?: string;
|
|
347
|
+
readonly taskAssignmentId?: string;
|
|
348
|
+
readonly taskId?: string;
|
|
349
|
+
readonly taskVersion?: string;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
// @public
|
|
353
|
+
export interface StorageTaskReportSummary {
|
|
354
|
+
readonly nextLink?: string;
|
|
355
|
+
readonly value?: StorageTaskReportInstance[];
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
// @public
|
|
359
|
+
export interface StorageTasks {
|
|
360
|
+
beginCreate(resourceGroupName: string, storageTaskName: string, parameters: StorageTask, options?: StorageTasksCreateOptionalParams): Promise<SimplePollerLike<OperationState<StorageTasksCreateResponse>, StorageTasksCreateResponse>>;
|
|
361
|
+
beginCreateAndWait(resourceGroupName: string, storageTaskName: string, parameters: StorageTask, options?: StorageTasksCreateOptionalParams): Promise<StorageTasksCreateResponse>;
|
|
362
|
+
beginDelete(resourceGroupName: string, storageTaskName: string, options?: StorageTasksDeleteOptionalParams): Promise<SimplePollerLike<OperationState<StorageTasksDeleteResponse>, StorageTasksDeleteResponse>>;
|
|
363
|
+
beginDeleteAndWait(resourceGroupName: string, storageTaskName: string, options?: StorageTasksDeleteOptionalParams): Promise<StorageTasksDeleteResponse>;
|
|
364
|
+
beginUpdate(resourceGroupName: string, storageTaskName: string, parameters: StorageTaskUpdateParameters, options?: StorageTasksUpdateOptionalParams): Promise<SimplePollerLike<OperationState<StorageTasksUpdateResponse>, StorageTasksUpdateResponse>>;
|
|
365
|
+
beginUpdateAndWait(resourceGroupName: string, storageTaskName: string, parameters: StorageTaskUpdateParameters, options?: StorageTasksUpdateOptionalParams): Promise<StorageTasksUpdateResponse>;
|
|
366
|
+
get(resourceGroupName: string, storageTaskName: string, options?: StorageTasksGetOptionalParams): Promise<StorageTasksGetResponse>;
|
|
367
|
+
listByResourceGroup(resourceGroupName: string, options?: StorageTasksListByResourceGroupOptionalParams): PagedAsyncIterableIterator<StorageTask>;
|
|
368
|
+
listBySubscription(options?: StorageTasksListBySubscriptionOptionalParams): PagedAsyncIterableIterator<StorageTask>;
|
|
369
|
+
previewActions(location: string, parameters: StorageTaskPreviewAction, options?: StorageTasksPreviewActionsOptionalParams): Promise<StorageTasksPreviewActionsResponse>;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
// @public
|
|
373
|
+
export interface StorageTasksCreateHeaders {
|
|
374
|
+
// (undocumented)
|
|
375
|
+
location?: string;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
// @public
|
|
379
|
+
export interface StorageTasksCreateOptionalParams extends coreClient.OperationOptions {
|
|
380
|
+
resumeFrom?: string;
|
|
381
|
+
updateIntervalInMs?: number;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
// @public
|
|
385
|
+
export type StorageTasksCreateResponse = StorageTask;
|
|
386
|
+
|
|
387
|
+
// @public
|
|
388
|
+
export interface StorageTasksDeleteHeaders {
|
|
389
|
+
// (undocumented)
|
|
390
|
+
location?: string;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
// @public
|
|
394
|
+
export interface StorageTasksDeleteOptionalParams extends coreClient.OperationOptions {
|
|
395
|
+
resumeFrom?: string;
|
|
396
|
+
updateIntervalInMs?: number;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
// @public
|
|
400
|
+
export type StorageTasksDeleteResponse = StorageTasksDeleteHeaders;
|
|
401
|
+
|
|
402
|
+
// @public
|
|
403
|
+
export interface StorageTasksGetOptionalParams extends coreClient.OperationOptions {
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
// @public
|
|
407
|
+
export type StorageTasksGetResponse = StorageTask;
|
|
408
|
+
|
|
409
|
+
// @public
|
|
410
|
+
export interface StorageTasksListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
// @public
|
|
414
|
+
export type StorageTasksListByResourceGroupNextResponse = StorageTasksListResult;
|
|
415
|
+
|
|
416
|
+
// @public
|
|
417
|
+
export interface StorageTasksListByResourceGroupOptionalParams extends coreClient.OperationOptions {
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
// @public
|
|
421
|
+
export type StorageTasksListByResourceGroupResponse = StorageTasksListResult;
|
|
422
|
+
|
|
423
|
+
// @public
|
|
424
|
+
export interface StorageTasksListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
// @public
|
|
428
|
+
export type StorageTasksListBySubscriptionNextResponse = StorageTasksListResult;
|
|
429
|
+
|
|
430
|
+
// @public
|
|
431
|
+
export interface StorageTasksListBySubscriptionOptionalParams extends coreClient.OperationOptions {
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
// @public
|
|
435
|
+
export type StorageTasksListBySubscriptionResponse = StorageTasksListResult;
|
|
436
|
+
|
|
437
|
+
// @public
|
|
438
|
+
export interface StorageTasksListResult {
|
|
439
|
+
readonly nextLink?: string;
|
|
440
|
+
readonly value?: StorageTask[];
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
// @public
|
|
444
|
+
export interface StorageTasksPreviewActionsOptionalParams extends coreClient.OperationOptions {
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
// @public
|
|
448
|
+
export type StorageTasksPreviewActionsResponse = StorageTaskPreviewAction;
|
|
449
|
+
|
|
450
|
+
// @public
|
|
451
|
+
export interface StorageTasksReport {
|
|
452
|
+
list(resourceGroupName: string, storageTaskName: string, options?: StorageTasksReportListOptionalParams): PagedAsyncIterableIterator<StorageTaskReportInstance>;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
// @public
|
|
456
|
+
export interface StorageTasksReportListNextOptionalParams extends coreClient.OperationOptions {
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
// @public
|
|
460
|
+
export type StorageTasksReportListNextResponse = StorageTaskReportSummary;
|
|
461
|
+
|
|
462
|
+
// @public
|
|
463
|
+
export interface StorageTasksReportListOptionalParams extends coreClient.OperationOptions {
|
|
464
|
+
filter?: string;
|
|
465
|
+
maxpagesize?: string;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
// @public
|
|
469
|
+
export type StorageTasksReportListResponse = StorageTaskReportSummary;
|
|
470
|
+
|
|
471
|
+
// @public
|
|
472
|
+
export interface StorageTasksUpdateHeaders {
|
|
473
|
+
// (undocumented)
|
|
474
|
+
location?: string;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
// @public
|
|
478
|
+
export interface StorageTasksUpdateOptionalParams extends coreClient.OperationOptions {
|
|
479
|
+
resumeFrom?: string;
|
|
480
|
+
updateIntervalInMs?: number;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
// @public
|
|
484
|
+
export type StorageTasksUpdateResponse = StorageTask;
|
|
485
|
+
|
|
486
|
+
// @public
|
|
487
|
+
export interface StorageTaskUpdateParameters {
|
|
488
|
+
identity?: ManagedServiceIdentity;
|
|
489
|
+
properties?: StorageTaskProperties;
|
|
490
|
+
tags?: {
|
|
491
|
+
[propertyName: string]: string;
|
|
492
|
+
};
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
// @public
|
|
496
|
+
export interface SystemData {
|
|
497
|
+
createdAt?: Date;
|
|
498
|
+
createdBy?: string;
|
|
499
|
+
createdByType?: CreatedByType;
|
|
500
|
+
lastModifiedAt?: Date;
|
|
501
|
+
lastModifiedBy?: string;
|
|
502
|
+
lastModifiedByType?: CreatedByType;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
// @public
|
|
506
|
+
export interface TrackedResource extends Resource {
|
|
507
|
+
location: string;
|
|
508
|
+
tags?: {
|
|
509
|
+
[propertyName: string]: string;
|
|
510
|
+
};
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
// @public
|
|
514
|
+
export interface UserAssignedIdentity {
|
|
515
|
+
readonly clientId?: string;
|
|
516
|
+
readonly principalId?: string;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
// (No @packageDocumentation comment for this package)
|
|
520
|
+
|
|
521
|
+
```
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
/// <reference lib="esnext.asynciterable" />
|
|
10
|
+
export { getContinuationToken } from "./pagingHelper";
|
|
11
|
+
export * from "./models";
|
|
12
|
+
export { StorageActionsManagementClient } from "./storageActionsManagementClient";
|
|
13
|
+
export * from "./operationsInterfaces";
|
package/src/lroImpl.ts
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT license.
|
|
11
|
+
|
|
12
|
+
import { AbortSignalLike } from "@azure/abort-controller";
|
|
13
|
+
import { LongRunningOperation, LroResponse } from "@azure/core-lro";
|
|
14
|
+
|
|
15
|
+
export function createLroSpec<T>(inputs: {
|
|
16
|
+
sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;
|
|
17
|
+
args: Record<string, unknown>;
|
|
18
|
+
spec: {
|
|
19
|
+
readonly requestBody?: unknown;
|
|
20
|
+
readonly path?: string;
|
|
21
|
+
readonly httpMethod: string;
|
|
22
|
+
} & Record<string, any>;
|
|
23
|
+
}): LongRunningOperation<T> {
|
|
24
|
+
const { args, spec, sendOperationFn } = inputs;
|
|
25
|
+
return {
|
|
26
|
+
requestMethod: spec.httpMethod,
|
|
27
|
+
requestPath: spec.path!,
|
|
28
|
+
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
29
|
+
sendPollRequest: (
|
|
30
|
+
path: string,
|
|
31
|
+
options?: { abortSignal?: AbortSignalLike },
|
|
32
|
+
) => {
|
|
33
|
+
const { requestBody, ...restSpec } = spec;
|
|
34
|
+
return sendOperationFn(args, {
|
|
35
|
+
...restSpec,
|
|
36
|
+
httpMethod: "GET",
|
|
37
|
+
path,
|
|
38
|
+
abortSignal: options?.abortSignal,
|
|
39
|
+
});
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
}
|