@azure/arm-education 1.0.0-beta.1 → 1.0.0-beta.3
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 +25 -0
- package/LICENSE +1 -1
- package/README.md +4 -3
- package/dist/index.js +233 -79
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/grantsGetSample.js +9 -2
- package/dist-esm/samples-dev/grantsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/grantsListAllSample.js +9 -2
- package/dist-esm/samples-dev/grantsListAllSample.js.map +1 -1
- package/dist-esm/samples-dev/grantsListSample.js +9 -2
- package/dist-esm/samples-dev/grantsListSample.js.map +1 -1
- package/dist-esm/samples-dev/joinRequestsApproveSample.js +8 -1
- package/dist-esm/samples-dev/joinRequestsApproveSample.js.map +1 -1
- package/dist-esm/samples-dev/joinRequestsDenySample.js +8 -1
- package/dist-esm/samples-dev/joinRequestsDenySample.js.map +1 -1
- package/dist-esm/samples-dev/joinRequestsGetSample.js +8 -1
- package/dist-esm/samples-dev/joinRequestsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/joinRequestsListSample.js +8 -1
- package/dist-esm/samples-dev/joinRequestsListSample.js.map +1 -1
- package/dist-esm/samples-dev/labsCreateOrUpdateSample.js +8 -1
- package/dist-esm/samples-dev/labsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/labsDeleteSample.js +8 -1
- package/dist-esm/samples-dev/labsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/labsGenerateInviteCodeSample.js +8 -1
- package/dist-esm/samples-dev/labsGenerateInviteCodeSample.js.map +1 -1
- package/dist-esm/samples-dev/labsGetSample.js +9 -2
- package/dist-esm/samples-dev/labsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/labsListAllSample.js +9 -2
- package/dist-esm/samples-dev/labsListAllSample.js.map +1 -1
- package/dist-esm/samples-dev/labsListSample.js +9 -2
- package/dist-esm/samples-dev/labsListSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +8 -1
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/redeemInvitationCodeSample.js +8 -1
- package/dist-esm/samples-dev/redeemInvitationCodeSample.js.map +1 -1
- package/dist-esm/samples-dev/studentLabsGetSample.js +8 -1
- package/dist-esm/samples-dev/studentLabsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/studentLabsListAllSample.js +8 -1
- package/dist-esm/samples-dev/studentLabsListAllSample.js.map +1 -1
- package/dist-esm/samples-dev/studentsCreateOrUpdateSample.js +8 -1
- package/dist-esm/samples-dev/studentsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/studentsDeleteSample.js +8 -1
- package/dist-esm/samples-dev/studentsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/studentsGetSample.js +8 -1
- package/dist-esm/samples-dev/studentsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/studentsListSample.js +8 -1
- package/dist-esm/samples-dev/studentsListSample.js.map +1 -1
- package/dist-esm/src/educationManagementClient.d.ts +2 -0
- package/dist-esm/src/educationManagementClient.d.ts.map +1 -1
- package/dist-esm/src/educationManagementClient.js +49 -18
- package/dist-esm/src/educationManagementClient.js.map +1 -1
- package/dist-esm/src/index.d.ts +1 -0
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/index.js +1 -0
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +38 -26
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +25 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/operations/grants.d.ts.map +1 -1
- package/dist-esm/src/operations/grants.js +37 -16
- package/dist-esm/src/operations/grants.js.map +1 -1
- package/dist-esm/src/operations/joinRequests.d.ts.map +1 -1
- package/dist-esm/src/operations/joinRequests.js +19 -8
- package/dist-esm/src/operations/joinRequests.js.map +1 -1
- package/dist-esm/src/operations/labs.d.ts.map +1 -1
- package/dist-esm/src/operations/labs.js +37 -20
- package/dist-esm/src/operations/labs.js.map +1 -1
- package/dist-esm/src/operations/studentLabs.d.ts.map +1 -1
- package/dist-esm/src/operations/studentLabs.js +19 -8
- package/dist-esm/src/operations/studentLabs.js.map +1 -1
- package/dist-esm/src/operations/students.d.ts.map +1 -1
- package/dist-esm/src/operations/students.js +19 -8
- package/dist-esm/src/operations/students.js.map +1 -1
- 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/sampleTest.js +11 -13
- package/dist-esm/test/sampleTest.js.map +1 -1
- package/package.json +17 -12
- package/review/arm-education.api.md +35 -61
- package/src/educationManagementClient.ts +60 -20
- package/src/index.ts +1 -0
- package/src/models/index.ts +44 -38
- package/src/operations/grants.ts +46 -22
- package/src/operations/joinRequests.ts +27 -14
- package/src/operations/labs.ts +52 -31
- package/src/operations/studentLabs.ts +21 -9
- package/src/operations/students.ts +27 -14
- package/src/pagingHelper.ts +39 -0
- package/types/arm-education.d.ts +49 -26
- package/types/tsdoc-metadata.json +1 -1
|
@@ -61,14 +61,17 @@ export interface ErrorResponseBody {
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
// @public
|
|
64
|
-
export
|
|
65
|
-
|
|
64
|
+
export function getContinuationToken(page: unknown): string | undefined;
|
|
65
|
+
|
|
66
|
+
// @public
|
|
67
|
+
export interface GrantDetails extends Resource {
|
|
68
|
+
readonly allocatedBudget?: Amount;
|
|
66
69
|
readonly effectiveDate?: Date;
|
|
67
|
-
readonly offerType?: GrantType;
|
|
68
70
|
readonly expirationDate?: Date;
|
|
71
|
+
readonly offerCap?: Amount;
|
|
72
|
+
readonly offerType?: GrantType;
|
|
69
73
|
readonly status?: GrantStatus;
|
|
70
|
-
|
|
71
|
-
};
|
|
74
|
+
}
|
|
72
75
|
|
|
73
76
|
// @public
|
|
74
77
|
export interface GrantListResponse {
|
|
@@ -93,7 +96,6 @@ export type GrantsGetResponse = GrantDetails;
|
|
|
93
96
|
|
|
94
97
|
// @public
|
|
95
98
|
export interface GrantsListAllNextOptionalParams extends coreClient.OperationOptions {
|
|
96
|
-
includeAllocatedBudget?: boolean;
|
|
97
99
|
}
|
|
98
100
|
|
|
99
101
|
// @public
|
|
@@ -109,7 +111,6 @@ export type GrantsListAllResponse = GrantListResponse;
|
|
|
109
111
|
|
|
110
112
|
// @public
|
|
111
113
|
export interface GrantsListNextOptionalParams extends coreClient.OperationOptions {
|
|
112
|
-
includeAllocatedBudget?: boolean;
|
|
113
114
|
}
|
|
114
115
|
|
|
115
116
|
// @public
|
|
@@ -135,12 +136,12 @@ export interface InviteCodeGenerateRequest {
|
|
|
135
136
|
}
|
|
136
137
|
|
|
137
138
|
// @public
|
|
138
|
-
export
|
|
139
|
+
export interface JoinRequestDetails extends Resource {
|
|
140
|
+
email?: string;
|
|
139
141
|
firstName?: string;
|
|
140
142
|
lastName?: string;
|
|
141
|
-
email?: string;
|
|
142
143
|
status?: JoinRequestStatus;
|
|
143
|
-
}
|
|
144
|
+
}
|
|
144
145
|
|
|
145
146
|
// @public
|
|
146
147
|
export interface JoinRequestList {
|
|
@@ -173,7 +174,6 @@ export type JoinRequestsGetResponse = JoinRequestDetails;
|
|
|
173
174
|
|
|
174
175
|
// @public
|
|
175
176
|
export interface JoinRequestsListNextOptionalParams extends coreClient.OperationOptions {
|
|
176
|
-
includeDenied?: boolean;
|
|
177
177
|
}
|
|
178
178
|
|
|
179
179
|
// @public
|
|
@@ -192,101 +192,79 @@ export type JoinRequestStatus = string;
|
|
|
192
192
|
|
|
193
193
|
// @public
|
|
194
194
|
export enum KnownActionType {
|
|
195
|
-
// (undocumented)
|
|
196
195
|
Internal = "Internal"
|
|
197
196
|
}
|
|
198
197
|
|
|
199
198
|
// @public
|
|
200
199
|
export enum KnownCreatedByType {
|
|
201
|
-
// (undocumented)
|
|
202
200
|
Application = "Application",
|
|
203
|
-
// (undocumented)
|
|
204
201
|
Key = "Key",
|
|
205
|
-
// (undocumented)
|
|
206
202
|
ManagedIdentity = "ManagedIdentity",
|
|
207
|
-
// (undocumented)
|
|
208
203
|
User = "User"
|
|
209
204
|
}
|
|
210
205
|
|
|
211
206
|
// @public
|
|
212
207
|
export enum KnownGrantStatus {
|
|
213
|
-
// (undocumented)
|
|
214
208
|
Active = "Active",
|
|
215
|
-
// (undocumented)
|
|
216
209
|
Inactive = "Inactive"
|
|
217
210
|
}
|
|
218
211
|
|
|
219
212
|
// @public
|
|
220
213
|
export enum KnownGrantType {
|
|
221
|
-
// (undocumented)
|
|
222
214
|
Academic = "Academic",
|
|
223
|
-
// (undocumented)
|
|
224
215
|
Student = "Student"
|
|
225
216
|
}
|
|
226
217
|
|
|
227
218
|
// @public
|
|
228
219
|
export enum KnownJoinRequestStatus {
|
|
229
|
-
// (undocumented)
|
|
230
220
|
Denied = "Denied",
|
|
231
|
-
// (undocumented)
|
|
232
221
|
Pending = "Pending"
|
|
233
222
|
}
|
|
234
223
|
|
|
235
224
|
// @public
|
|
236
225
|
export enum KnownLabStatus {
|
|
237
|
-
// (undocumented)
|
|
238
226
|
Active = "Active",
|
|
239
|
-
|
|
240
|
-
|
|
227
|
+
Deleted = "Deleted",
|
|
228
|
+
Pending = "Pending"
|
|
241
229
|
}
|
|
242
230
|
|
|
243
231
|
// @public
|
|
244
232
|
export enum KnownOrigin {
|
|
245
|
-
// (undocumented)
|
|
246
233
|
System = "system",
|
|
247
|
-
// (undocumented)
|
|
248
234
|
User = "user",
|
|
249
|
-
// (undocumented)
|
|
250
235
|
UserSystem = "user,system"
|
|
251
236
|
}
|
|
252
237
|
|
|
253
238
|
// @public
|
|
254
239
|
export enum KnownStudentLabStatus {
|
|
255
|
-
// (undocumented)
|
|
256
240
|
Active = "Active",
|
|
257
|
-
// (undocumented)
|
|
258
241
|
Deleted = "Deleted",
|
|
259
|
-
// (undocumented)
|
|
260
242
|
Disabled = "Disabled",
|
|
261
|
-
// (undocumented)
|
|
262
243
|
Expired = "Expired",
|
|
263
|
-
// (undocumented)
|
|
264
244
|
Pending = "Pending"
|
|
265
245
|
}
|
|
266
246
|
|
|
267
247
|
// @public
|
|
268
248
|
export enum KnownStudentRole {
|
|
269
|
-
// (undocumented)
|
|
270
249
|
Admin = "Admin",
|
|
271
|
-
// (undocumented)
|
|
272
250
|
Student = "Student"
|
|
273
251
|
}
|
|
274
252
|
|
|
275
253
|
// @public
|
|
276
|
-
export
|
|
277
|
-
displayName?: string;
|
|
254
|
+
export interface LabDetails extends Resource {
|
|
278
255
|
budgetPerStudent?: Amount;
|
|
256
|
+
currencyPropertiesTotalAllocatedBudgetCurrency?: string;
|
|
257
|
+
currencyPropertiesTotalBudgetCurrency?: string;
|
|
279
258
|
description?: string;
|
|
280
|
-
|
|
259
|
+
displayName?: string;
|
|
281
260
|
readonly effectiveDate?: Date;
|
|
282
|
-
|
|
283
|
-
readonly maxStudentCount?: number;
|
|
261
|
+
expirationDate?: Date;
|
|
284
262
|
readonly invitationCode?: string;
|
|
285
|
-
|
|
263
|
+
readonly maxStudentCount?: number;
|
|
264
|
+
readonly status?: LabStatus;
|
|
286
265
|
valuePropertiesTotalAllocatedBudgetValue?: number;
|
|
287
|
-
currencyPropertiesTotalBudgetCurrency?: string;
|
|
288
266
|
valuePropertiesTotalBudgetValue?: number;
|
|
289
|
-
}
|
|
267
|
+
}
|
|
290
268
|
|
|
291
269
|
// @public
|
|
292
270
|
export interface LabListResult {
|
|
@@ -333,8 +311,6 @@ export type LabsGetResponse = LabDetails;
|
|
|
333
311
|
|
|
334
312
|
// @public
|
|
335
313
|
export interface LabsListAllNextOptionalParams extends coreClient.OperationOptions {
|
|
336
|
-
includeBudget?: boolean;
|
|
337
|
-
includeDeleted?: boolean;
|
|
338
314
|
}
|
|
339
315
|
|
|
340
316
|
// @public
|
|
@@ -351,7 +327,6 @@ export type LabsListAllResponse = LabListResult;
|
|
|
351
327
|
|
|
352
328
|
// @public
|
|
353
329
|
export interface LabsListNextOptionalParams extends coreClient.OperationOptions {
|
|
354
|
-
includeBudget?: boolean;
|
|
355
330
|
}
|
|
356
331
|
|
|
357
332
|
// @public
|
|
@@ -426,32 +401,32 @@ export interface Resource {
|
|
|
426
401
|
}
|
|
427
402
|
|
|
428
403
|
// @public
|
|
429
|
-
export
|
|
404
|
+
export interface StudentDetails extends Resource {
|
|
405
|
+
budget?: Amount;
|
|
406
|
+
readonly effectiveDate?: Date;
|
|
407
|
+
email?: string;
|
|
408
|
+
expirationDate?: Date;
|
|
430
409
|
firstName?: string;
|
|
431
410
|
lastName?: string;
|
|
432
|
-
email?: string;
|
|
433
411
|
role?: StudentRole;
|
|
434
|
-
budget?: Amount;
|
|
435
|
-
readonly subscriptionId?: string;
|
|
436
|
-
expirationDate?: Date;
|
|
437
412
|
readonly status?: StudentLabStatus;
|
|
438
|
-
readonly effectiveDate?: Date;
|
|
439
413
|
subscriptionAlias?: string;
|
|
414
|
+
readonly subscriptionId?: string;
|
|
440
415
|
subscriptionInviteLastSentDate?: Date;
|
|
441
|
-
}
|
|
416
|
+
}
|
|
442
417
|
|
|
443
418
|
// @public
|
|
444
|
-
export
|
|
445
|
-
readonly
|
|
419
|
+
export interface StudentLabDetails extends Resource {
|
|
420
|
+
readonly budget?: Amount;
|
|
446
421
|
readonly description?: string;
|
|
422
|
+
readonly displayName?: string;
|
|
423
|
+
readonly effectiveDate?: Date;
|
|
447
424
|
readonly expirationDate?: Date;
|
|
425
|
+
readonly labScope?: string;
|
|
448
426
|
readonly role?: StudentRole;
|
|
449
|
-
readonly budget?: Amount;
|
|
450
|
-
readonly subscriptionId?: string;
|
|
451
427
|
readonly status?: StudentLabStatus;
|
|
452
|
-
readonly
|
|
453
|
-
|
|
454
|
-
};
|
|
428
|
+
readonly subscriptionId?: string;
|
|
429
|
+
}
|
|
455
430
|
|
|
456
431
|
// @public
|
|
457
432
|
export interface StudentLabListResult {
|
|
@@ -526,7 +501,6 @@ export type StudentsGetResponse = StudentDetails;
|
|
|
526
501
|
|
|
527
502
|
// @public
|
|
528
503
|
export interface StudentsListNextOptionalParams extends coreClient.OperationOptions {
|
|
529
|
-
includeDeleted?: boolean;
|
|
530
504
|
}
|
|
531
505
|
|
|
532
506
|
// @public
|
|
@@ -8,6 +8,11 @@
|
|
|
8
8
|
|
|
9
9
|
import * as coreClient from "@azure/core-client";
|
|
10
10
|
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
11
|
+
import {
|
|
12
|
+
PipelineRequest,
|
|
13
|
+
PipelineResponse,
|
|
14
|
+
SendRequest
|
|
15
|
+
} from "@azure/core-rest-pipeline";
|
|
11
16
|
import * as coreAuth from "@azure/core-auth";
|
|
12
17
|
import {
|
|
13
18
|
OperationsImpl,
|
|
@@ -59,47 +64,53 @@ export class EducationManagementClient extends coreClient.ServiceClient {
|
|
|
59
64
|
credential: credentials
|
|
60
65
|
};
|
|
61
66
|
|
|
62
|
-
const packageDetails = `azsdk-js-arm-education/1.0.0-beta.
|
|
67
|
+
const packageDetails = `azsdk-js-arm-education/1.0.0-beta.3`;
|
|
63
68
|
const userAgentPrefix =
|
|
64
69
|
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
65
70
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
66
71
|
: `${packageDetails}`;
|
|
67
72
|
|
|
68
|
-
if (!options.credentialScopes) {
|
|
69
|
-
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
70
|
-
}
|
|
71
73
|
const optionsWithDefaults = {
|
|
72
74
|
...defaults,
|
|
73
75
|
...options,
|
|
74
76
|
userAgentOptions: {
|
|
75
77
|
userAgentPrefix
|
|
76
78
|
},
|
|
77
|
-
|
|
79
|
+
endpoint:
|
|
78
80
|
options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
|
79
81
|
};
|
|
80
82
|
super(optionsWithDefaults);
|
|
81
83
|
|
|
84
|
+
let bearerTokenAuthenticationPolicyFound: boolean = false;
|
|
82
85
|
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
83
86
|
const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();
|
|
84
|
-
|
|
87
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
|
|
85
88
|
(pipelinePolicy) =>
|
|
86
89
|
pipelinePolicy.name ===
|
|
87
90
|
coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
88
91
|
);
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
92
|
+
}
|
|
93
|
+
if (
|
|
94
|
+
!options ||
|
|
95
|
+
!options.pipeline ||
|
|
96
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
97
|
+
!bearerTokenAuthenticationPolicyFound
|
|
98
|
+
) {
|
|
99
|
+
this.pipeline.removePolicy({
|
|
100
|
+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
101
|
+
});
|
|
102
|
+
this.pipeline.addPolicy(
|
|
103
|
+
coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
104
|
+
credential: credentials,
|
|
105
|
+
scopes:
|
|
106
|
+
optionsWithDefaults.credentialScopes ??
|
|
107
|
+
`${optionsWithDefaults.endpoint}/.default`,
|
|
108
|
+
challengeCallbacks: {
|
|
109
|
+
authorizeRequestOnChallenge:
|
|
110
|
+
coreClient.authorizeRequestOnClaimChallenge
|
|
111
|
+
}
|
|
112
|
+
})
|
|
113
|
+
);
|
|
103
114
|
}
|
|
104
115
|
|
|
105
116
|
// Assigning values to Constant parameters
|
|
@@ -111,6 +122,35 @@ export class EducationManagementClient extends coreClient.ServiceClient {
|
|
|
111
122
|
this.joinRequests = new JoinRequestsImpl(this);
|
|
112
123
|
this.students = new StudentsImpl(this);
|
|
113
124
|
this.studentLabs = new StudentLabsImpl(this);
|
|
125
|
+
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
129
|
+
private addCustomApiVersionPolicy(apiVersion?: string) {
|
|
130
|
+
if (!apiVersion) {
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
const apiVersionPolicy = {
|
|
134
|
+
name: "CustomApiVersionPolicy",
|
|
135
|
+
async sendRequest(
|
|
136
|
+
request: PipelineRequest,
|
|
137
|
+
next: SendRequest
|
|
138
|
+
): Promise<PipelineResponse> {
|
|
139
|
+
const param = request.url.split("?");
|
|
140
|
+
if (param.length > 1) {
|
|
141
|
+
const newParams = param[1].split("&").map((item) => {
|
|
142
|
+
if (item.indexOf("api-version") > -1) {
|
|
143
|
+
return "api-version=" + apiVersion;
|
|
144
|
+
} else {
|
|
145
|
+
return item;
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
request.url = param[0] + "?" + newParams.join("&");
|
|
149
|
+
}
|
|
150
|
+
return next(request);
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
this.pipeline.addPolicy(apiVersionPolicy);
|
|
114
154
|
}
|
|
115
155
|
|
|
116
156
|
/**
|
package/src/index.ts
CHANGED
package/src/models/index.ts
CHANGED
|
@@ -221,7 +221,7 @@ export interface StudentLabListResult {
|
|
|
221
221
|
}
|
|
222
222
|
|
|
223
223
|
/** Grant details. */
|
|
224
|
-
export
|
|
224
|
+
export interface GrantDetails extends Resource {
|
|
225
225
|
/**
|
|
226
226
|
* Offer Cap
|
|
227
227
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
@@ -252,10 +252,10 @@ export type GrantDetails = Resource & {
|
|
|
252
252
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
253
253
|
*/
|
|
254
254
|
readonly allocatedBudget?: Amount;
|
|
255
|
-
}
|
|
255
|
+
}
|
|
256
256
|
|
|
257
257
|
/** Lab details. */
|
|
258
|
-
export
|
|
258
|
+
export interface LabDetails extends Resource {
|
|
259
259
|
/** Lab Display Name */
|
|
260
260
|
displayName?: string;
|
|
261
261
|
/** Default monetary cap for each student in this lab */
|
|
@@ -292,10 +292,10 @@ export type LabDetails = Resource & {
|
|
|
292
292
|
currencyPropertiesTotalBudgetCurrency?: string;
|
|
293
293
|
/** Amount value. */
|
|
294
294
|
valuePropertiesTotalBudgetValue?: number;
|
|
295
|
-
}
|
|
295
|
+
}
|
|
296
296
|
|
|
297
297
|
/** join requests. */
|
|
298
|
-
export
|
|
298
|
+
export interface JoinRequestDetails extends Resource {
|
|
299
299
|
/** First Name */
|
|
300
300
|
firstName?: string;
|
|
301
301
|
/** Last Name */
|
|
@@ -304,10 +304,10 @@ export type JoinRequestDetails = Resource & {
|
|
|
304
304
|
email?: string;
|
|
305
305
|
/** Join request status */
|
|
306
306
|
status?: JoinRequestStatus;
|
|
307
|
-
}
|
|
307
|
+
}
|
|
308
308
|
|
|
309
309
|
/** Student details. */
|
|
310
|
-
export
|
|
310
|
+
export interface StudentDetails extends Resource {
|
|
311
311
|
/** First Name */
|
|
312
312
|
firstName?: string;
|
|
313
313
|
/** Last Name */
|
|
@@ -339,10 +339,10 @@ export type StudentDetails = Resource & {
|
|
|
339
339
|
subscriptionAlias?: string;
|
|
340
340
|
/** subscription invite last sent date */
|
|
341
341
|
subscriptionInviteLastSentDate?: Date;
|
|
342
|
-
}
|
|
342
|
+
}
|
|
343
343
|
|
|
344
344
|
/** Student lab details. */
|
|
345
|
-
export
|
|
345
|
+
export interface StudentLabDetails extends Resource {
|
|
346
346
|
/**
|
|
347
347
|
* Student lab Display Name
|
|
348
348
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
@@ -388,12 +388,15 @@ export type StudentLabDetails = Resource & {
|
|
|
388
388
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
389
389
|
*/
|
|
390
390
|
readonly labScope?: string;
|
|
391
|
-
}
|
|
391
|
+
}
|
|
392
392
|
|
|
393
393
|
/** Known values of {@link Origin} that the service accepts. */
|
|
394
394
|
export enum KnownOrigin {
|
|
395
|
+
/** User */
|
|
395
396
|
User = "user",
|
|
397
|
+
/** System */
|
|
396
398
|
System = "system",
|
|
399
|
+
/** UserSystem */
|
|
397
400
|
UserSystem = "user,system"
|
|
398
401
|
}
|
|
399
402
|
|
|
@@ -410,6 +413,7 @@ export type Origin = string;
|
|
|
410
413
|
|
|
411
414
|
/** Known values of {@link ActionType} that the service accepts. */
|
|
412
415
|
export enum KnownActionType {
|
|
416
|
+
/** Internal */
|
|
413
417
|
Internal = "Internal"
|
|
414
418
|
}
|
|
415
419
|
|
|
@@ -424,7 +428,9 @@ export type ActionType = string;
|
|
|
424
428
|
|
|
425
429
|
/** Known values of {@link GrantType} that the service accepts. */
|
|
426
430
|
export enum KnownGrantType {
|
|
431
|
+
/** Student */
|
|
427
432
|
Student = "Student",
|
|
433
|
+
/** Academic */
|
|
428
434
|
Academic = "Academic"
|
|
429
435
|
}
|
|
430
436
|
|
|
@@ -440,7 +446,9 @@ export type GrantType = string;
|
|
|
440
446
|
|
|
441
447
|
/** Known values of {@link GrantStatus} that the service accepts. */
|
|
442
448
|
export enum KnownGrantStatus {
|
|
449
|
+
/** Active */
|
|
443
450
|
Active = "Active",
|
|
451
|
+
/** Inactive */
|
|
444
452
|
Inactive = "Inactive"
|
|
445
453
|
}
|
|
446
454
|
|
|
@@ -456,9 +464,13 @@ export type GrantStatus = string;
|
|
|
456
464
|
|
|
457
465
|
/** Known values of {@link CreatedByType} that the service accepts. */
|
|
458
466
|
export enum KnownCreatedByType {
|
|
467
|
+
/** User */
|
|
459
468
|
User = "User",
|
|
469
|
+
/** Application */
|
|
460
470
|
Application = "Application",
|
|
471
|
+
/** ManagedIdentity */
|
|
461
472
|
ManagedIdentity = "ManagedIdentity",
|
|
473
|
+
/** Key */
|
|
462
474
|
Key = "Key"
|
|
463
475
|
}
|
|
464
476
|
|
|
@@ -476,8 +488,12 @@ export type CreatedByType = string;
|
|
|
476
488
|
|
|
477
489
|
/** Known values of {@link LabStatus} that the service accepts. */
|
|
478
490
|
export enum KnownLabStatus {
|
|
491
|
+
/** Active */
|
|
479
492
|
Active = "Active",
|
|
480
|
-
Deleted
|
|
493
|
+
/** Deleted */
|
|
494
|
+
Deleted = "Deleted",
|
|
495
|
+
/** Pending */
|
|
496
|
+
Pending = "Pending"
|
|
481
497
|
}
|
|
482
498
|
|
|
483
499
|
/**
|
|
@@ -486,13 +502,16 @@ export enum KnownLabStatus {
|
|
|
486
502
|
* this enum contains the known values that the service supports.
|
|
487
503
|
* ### Known values supported by the service
|
|
488
504
|
* **Active** \
|
|
489
|
-
* **Deleted**
|
|
505
|
+
* **Deleted** \
|
|
506
|
+
* **Pending**
|
|
490
507
|
*/
|
|
491
508
|
export type LabStatus = string;
|
|
492
509
|
|
|
493
510
|
/** Known values of {@link JoinRequestStatus} that the service accepts. */
|
|
494
511
|
export enum KnownJoinRequestStatus {
|
|
512
|
+
/** Pending */
|
|
495
513
|
Pending = "Pending",
|
|
514
|
+
/** Denied */
|
|
496
515
|
Denied = "Denied"
|
|
497
516
|
}
|
|
498
517
|
|
|
@@ -508,7 +527,9 @@ export type JoinRequestStatus = string;
|
|
|
508
527
|
|
|
509
528
|
/** Known values of {@link StudentRole} that the service accepts. */
|
|
510
529
|
export enum KnownStudentRole {
|
|
530
|
+
/** Student */
|
|
511
531
|
Student = "Student",
|
|
532
|
+
/** Admin */
|
|
512
533
|
Admin = "Admin"
|
|
513
534
|
}
|
|
514
535
|
|
|
@@ -524,10 +545,15 @@ export type StudentRole = string;
|
|
|
524
545
|
|
|
525
546
|
/** Known values of {@link StudentLabStatus} that the service accepts. */
|
|
526
547
|
export enum KnownStudentLabStatus {
|
|
548
|
+
/** Active */
|
|
527
549
|
Active = "Active",
|
|
550
|
+
/** Disabled */
|
|
528
551
|
Disabled = "Disabled",
|
|
552
|
+
/** Expired */
|
|
529
553
|
Expired = "Expired",
|
|
554
|
+
/** Pending */
|
|
530
555
|
Pending = "Pending",
|
|
556
|
+
/** Deleted */
|
|
531
557
|
Deleted = "Deleted"
|
|
532
558
|
}
|
|
533
559
|
|
|
@@ -581,20 +607,14 @@ export type GrantsGetResponse = GrantDetails;
|
|
|
581
607
|
|
|
582
608
|
/** Optional parameters. */
|
|
583
609
|
export interface GrantsListAllNextOptionalParams
|
|
584
|
-
extends coreClient.OperationOptions {
|
|
585
|
-
/** May be used to include information about budget that has been allocated. */
|
|
586
|
-
includeAllocatedBudget?: boolean;
|
|
587
|
-
}
|
|
610
|
+
extends coreClient.OperationOptions {}
|
|
588
611
|
|
|
589
612
|
/** Contains response data for the listAllNext operation. */
|
|
590
613
|
export type GrantsListAllNextResponse = GrantListResponse;
|
|
591
614
|
|
|
592
615
|
/** Optional parameters. */
|
|
593
616
|
export interface GrantsListNextOptionalParams
|
|
594
|
-
extends coreClient.OperationOptions {
|
|
595
|
-
/** May be used to include information about budget that has been allocated. */
|
|
596
|
-
includeAllocatedBudget?: boolean;
|
|
597
|
-
}
|
|
617
|
+
extends coreClient.OperationOptions {}
|
|
598
618
|
|
|
599
619
|
/** Contains response data for the listNext operation. */
|
|
600
620
|
export type GrantsListNextResponse = GrantListResponse;
|
|
@@ -650,22 +670,14 @@ export type LabsGenerateInviteCodeResponse = LabDetails;
|
|
|
650
670
|
|
|
651
671
|
/** Optional parameters. */
|
|
652
672
|
export interface LabsListAllNextOptionalParams
|
|
653
|
-
extends coreClient.OperationOptions {
|
|
654
|
-
/** May be used to include budget information. */
|
|
655
|
-
includeBudget?: boolean;
|
|
656
|
-
/** May be used to show deleted items. */
|
|
657
|
-
includeDeleted?: boolean;
|
|
658
|
-
}
|
|
673
|
+
extends coreClient.OperationOptions {}
|
|
659
674
|
|
|
660
675
|
/** Contains response data for the listAllNext operation. */
|
|
661
676
|
export type LabsListAllNextResponse = LabListResult;
|
|
662
677
|
|
|
663
678
|
/** Optional parameters. */
|
|
664
679
|
export interface LabsListNextOptionalParams
|
|
665
|
-
extends coreClient.OperationOptions {
|
|
666
|
-
/** May be used to include budget information. */
|
|
667
|
-
includeBudget?: boolean;
|
|
668
|
-
}
|
|
680
|
+
extends coreClient.OperationOptions {}
|
|
669
681
|
|
|
670
682
|
/** Contains response data for the listNext operation. */
|
|
671
683
|
export type LabsListNextResponse = LabListResult;
|
|
@@ -697,10 +709,7 @@ export interface JoinRequestsDenyOptionalParams
|
|
|
697
709
|
|
|
698
710
|
/** Optional parameters. */
|
|
699
711
|
export interface JoinRequestsListNextOptionalParams
|
|
700
|
-
extends coreClient.OperationOptions {
|
|
701
|
-
/** Include denied */
|
|
702
|
-
includeDenied?: boolean;
|
|
703
|
-
}
|
|
712
|
+
extends coreClient.OperationOptions {}
|
|
704
713
|
|
|
705
714
|
/** Contains response data for the listNext operation. */
|
|
706
715
|
export type JoinRequestsListNextResponse = JoinRequestList;
|
|
@@ -739,10 +748,7 @@ export type StudentsCreateOrUpdateResponse = StudentDetails;
|
|
|
739
748
|
|
|
740
749
|
/** Optional parameters. */
|
|
741
750
|
export interface StudentsListNextOptionalParams
|
|
742
|
-
extends coreClient.OperationOptions {
|
|
743
|
-
/** May be used to show deleted items. */
|
|
744
|
-
includeDeleted?: boolean;
|
|
745
|
-
}
|
|
751
|
+
extends coreClient.OperationOptions {}
|
|
746
752
|
|
|
747
753
|
/** Contains response data for the listNext operation. */
|
|
748
754
|
export type StudentsListNextResponse = StudentListResult;
|