@azure-rest/synapse-access-control 1.0.0-alpha.20241126.1 → 1.0.0-alpha.20241127.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/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"homepage": "https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/synapse/synapse-access-control/README.md",
|
|
6
6
|
"repository": "github:Azure/azure-sdk-for-js",
|
|
7
7
|
"sdk-type": "client",
|
|
8
|
-
"version": "1.0.0-alpha.
|
|
8
|
+
"version": "1.0.0-alpha.20241127.1",
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@azure-rest/core-client": "^2.3.1",
|
|
11
11
|
"@azure/core-auth": "^1.9.0",
|
|
@@ -1,460 +0,0 @@
|
|
|
1
|
-
import type { Client } from '@azure-rest/core-client';
|
|
2
|
-
import type { ClientOptions } from '@azure-rest/core-client';
|
|
3
|
-
import type { HttpResponse } from '@azure-rest/core-client';
|
|
4
|
-
import type { PagedAsyncIterableIterator } from '@azure/core-paging';
|
|
5
|
-
import type { PathUncheckedResponse } from '@azure-rest/core-client';
|
|
6
|
-
import type { RawHttpHeaders } from '@azure/core-rest-pipeline';
|
|
7
|
-
import type { RawHttpHeadersInput } from '@azure/core-rest-pipeline';
|
|
8
|
-
import type { RequestParameters } from '@azure-rest/core-client';
|
|
9
|
-
import type { StreamableMethod } from '@azure-rest/core-client';
|
|
10
|
-
import type { TokenCredential } from '@azure/core-auth';
|
|
11
|
-
|
|
12
|
-
export declare type AccessControlRestClient = Client & {
|
|
13
|
-
path: Routes;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export declare interface CheckAccessDecisionOutput {
|
|
17
|
-
/** Access Decision. */
|
|
18
|
-
accessDecision?: string;
|
|
19
|
-
/** Action Id. */
|
|
20
|
-
actionId?: string;
|
|
21
|
-
/** Role Assignment response details */
|
|
22
|
-
roleAssignment?: RoleAssignmentDetailsOutput;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export declare interface CheckPrincipalAccessRequest {
|
|
26
|
-
/** Subject details */
|
|
27
|
-
subject: SubjectInfo;
|
|
28
|
-
/** List of actions. */
|
|
29
|
-
actions: Array<RequiredAction>;
|
|
30
|
-
/** Scope at which the check access is done. */
|
|
31
|
-
scope: string;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export declare interface CheckPrincipalAccessResponseOutput {
|
|
35
|
-
/** To check if the current user, group, or service principal has permission to read artifacts in the specified workspace. */
|
|
36
|
-
AccessDecisions?: Array<CheckAccessDecisionOutput>;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
declare function createClient(endpoint: string, credentials: TokenCredential, options?: ClientOptions): AccessControlRestClient;
|
|
40
|
-
export default createClient;
|
|
41
|
-
|
|
42
|
-
export declare interface ErrorAdditionalInfoOutput {
|
|
43
|
-
/** The additional info type. */
|
|
44
|
-
type?: string;
|
|
45
|
-
/** The additional info. */
|
|
46
|
-
info?: Record<string, unknown>;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export declare interface ErrorContractOutput {
|
|
50
|
-
/** The error details. */
|
|
51
|
-
error?: ErrorResponseOutput;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export declare interface ErrorResponseOutput {
|
|
55
|
-
/** The error code. */
|
|
56
|
-
code?: string;
|
|
57
|
-
/** The error message. */
|
|
58
|
-
message?: string;
|
|
59
|
-
/** The error target. */
|
|
60
|
-
target?: string;
|
|
61
|
-
/** The error details. */
|
|
62
|
-
details?: Array<ErrorResponseOutput>;
|
|
63
|
-
/** The error additional info. */
|
|
64
|
-
additionalInfo?: Array<ErrorAdditionalInfoOutput>;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* Helper type to extract the type of an array
|
|
69
|
-
*/
|
|
70
|
-
export declare type GetArrayType<T> = T extends Array<infer TData> ? TData : never;
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* The type of a custom function that defines how to get a page and a link to the next one if any.
|
|
74
|
-
*/
|
|
75
|
-
export declare type GetPage<TPage> = (pageLink: string, maxPageSize?: number) => Promise<{
|
|
76
|
-
page: TPage;
|
|
77
|
-
nextPageLink?: string;
|
|
78
|
-
}>;
|
|
79
|
-
|
|
80
|
-
export declare function isUnexpected(response: RoleAssignmentsCheckPrincipalAccess200Response | RoleAssignmentsCheckPrincipalAccessdefaultResponse): response is RoleAssignmentsCheckPrincipalAccessdefaultResponse;
|
|
81
|
-
|
|
82
|
-
export declare function isUnexpected(response: RoleAssignmentsListRoleAssignments200Response | RoleAssignmentsListRoleAssignmentsdefaultResponse): response is RoleAssignmentsListRoleAssignmentsdefaultResponse;
|
|
83
|
-
|
|
84
|
-
export declare function isUnexpected(response: RoleAssignmentsCreateRoleAssignment200Response | RoleAssignmentsCreateRoleAssignmentdefaultResponse): response is RoleAssignmentsCreateRoleAssignmentdefaultResponse;
|
|
85
|
-
|
|
86
|
-
export declare function isUnexpected(response: RoleAssignmentsGetRoleAssignmentById200Response | RoleAssignmentsGetRoleAssignmentByIddefaultResponse): response is RoleAssignmentsGetRoleAssignmentByIddefaultResponse;
|
|
87
|
-
|
|
88
|
-
export declare function isUnexpected(response: RoleAssignmentsDeleteRoleAssignmentById200Response | RoleAssignmentsDeleteRoleAssignmentById204Response | RoleAssignmentsDeleteRoleAssignmentByIddefaultResponse): response is RoleAssignmentsDeleteRoleAssignmentByIddefaultResponse;
|
|
89
|
-
|
|
90
|
-
export declare function isUnexpected(response: RoleDefinitionsListRoleDefinitions200Response | RoleDefinitionsListRoleDefinitionsdefaultResponse): response is RoleDefinitionsListRoleDefinitionsdefaultResponse;
|
|
91
|
-
|
|
92
|
-
export declare function isUnexpected(response: RoleDefinitionsGetRoleDefinitionById200Response | RoleDefinitionsGetRoleDefinitionByIddefaultResponse): response is RoleDefinitionsGetRoleDefinitionByIddefaultResponse;
|
|
93
|
-
|
|
94
|
-
export declare function isUnexpected(response: RoleDefinitionsListScopes200Response | RoleDefinitionsListScopesdefaultResponse): response is RoleDefinitionsListScopesdefaultResponse;
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* Helper to paginate results from an initial response that follows the specification of Autorest `x-ms-pageable` extension
|
|
98
|
-
* @param client - Client to use for sending the next page requests
|
|
99
|
-
* @param initialResponse - Initial response containing the nextLink and current page of elements
|
|
100
|
-
* @param customGetPage - Optional - Function to define how to extract the page and next link to be used to paginate the results
|
|
101
|
-
* @returns - PagedAsyncIterableIterator to iterate the elements
|
|
102
|
-
*/
|
|
103
|
-
export declare function paginate<TResponse extends PathUncheckedResponse>(client: Client, initialResponse: TResponse, options?: PagingOptions<TResponse>): PagedAsyncIterableIterator<PaginateReturn<TResponse>>;
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* Helper type to infer the Type of the paged elements from the response type
|
|
107
|
-
* This type is generated based on the swagger information for x-ms-pageable
|
|
108
|
-
* specifically on the itemName property which indicates the property of the response
|
|
109
|
-
* where the page items are found. The default value is `value`.
|
|
110
|
-
* This type will allow us to provide strongly typed Iterator based on the response we get as second parameter
|
|
111
|
-
*/
|
|
112
|
-
export declare type PaginateReturn<TResult> = TResult extends {
|
|
113
|
-
body: {
|
|
114
|
-
value?: infer TPage;
|
|
115
|
-
};
|
|
116
|
-
} ? GetArrayType<TPage> : Array<unknown>;
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* Options for the paging helper
|
|
120
|
-
*/
|
|
121
|
-
export declare interface PagingOptions<TResponse> {
|
|
122
|
-
/**
|
|
123
|
-
* Custom function to extract pagination details for crating the PagedAsyncIterableIterator
|
|
124
|
-
*/
|
|
125
|
-
customGetPage?: GetPage<PaginateReturn<TResponse>[]>;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
export declare interface RequiredAction {
|
|
129
|
-
/** Action Id. */
|
|
130
|
-
id: string;
|
|
131
|
-
/** Is a data action or not. */
|
|
132
|
-
isDataAction: boolean;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
export declare interface RoleAssignmentDetailsListOutput {
|
|
136
|
-
/** Number of role assignments */
|
|
137
|
-
count?: number;
|
|
138
|
-
/** A list of role assignments */
|
|
139
|
-
value?: Array<RoleAssignmentDetailsOutput>;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
export declare interface RoleAssignmentDetailsOutput {
|
|
143
|
-
/** Role Assignment ID */
|
|
144
|
-
id?: string;
|
|
145
|
-
/**
|
|
146
|
-
* Role ID of the Synapse Built-In Role
|
|
147
|
-
*
|
|
148
|
-
* Value may contain a UUID
|
|
149
|
-
*/
|
|
150
|
-
roleDefinitionId?: string;
|
|
151
|
-
/**
|
|
152
|
-
* Object ID of the AAD principal or security-group
|
|
153
|
-
*
|
|
154
|
-
* Value may contain a UUID
|
|
155
|
-
*/
|
|
156
|
-
principalId?: string;
|
|
157
|
-
/** Scope at the role assignment is created */
|
|
158
|
-
scope?: string;
|
|
159
|
-
/** Type of the principal Id: User, Group or ServicePrincipal */
|
|
160
|
-
principalType?: string;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
export declare interface RoleAssignmentRequest {
|
|
164
|
-
/**
|
|
165
|
-
* Role ID of the Synapse Built-In Role
|
|
166
|
-
*
|
|
167
|
-
* Value may contain a UUID
|
|
168
|
-
*/
|
|
169
|
-
roleId: string;
|
|
170
|
-
/**
|
|
171
|
-
* Object ID of the AAD principal or security-group
|
|
172
|
-
*
|
|
173
|
-
* Value may contain a UUID
|
|
174
|
-
*/
|
|
175
|
-
principalId: string;
|
|
176
|
-
/** Scope at which the role assignment is created */
|
|
177
|
-
scope: string;
|
|
178
|
-
/** Type of the principal Id: User, Group or ServicePrincipal */
|
|
179
|
-
principalType?: string;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
export declare interface RoleAssignmentsCheckPrincipalAccess {
|
|
183
|
-
/** Check if the given principalId has access to perform list of actions at a given scope. */
|
|
184
|
-
post(options: RoleAssignmentsCheckPrincipalAccessParameters): StreamableMethod<RoleAssignmentsCheckPrincipalAccess200Response | RoleAssignmentsCheckPrincipalAccessdefaultResponse>;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
/** Check if the given principalId has access to perform list of actions at a given scope. */
|
|
188
|
-
export declare interface RoleAssignmentsCheckPrincipalAccess200Response extends HttpResponse {
|
|
189
|
-
status: "200";
|
|
190
|
-
body: CheckPrincipalAccessResponseOutput;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
export declare interface RoleAssignmentsCheckPrincipalAccessBodyParam {
|
|
194
|
-
/** Details of scope, list of actions and principal. */
|
|
195
|
-
body: CheckPrincipalAccessRequest;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
/** Check if the given principalId has access to perform list of actions at a given scope. */
|
|
199
|
-
export declare interface RoleAssignmentsCheckPrincipalAccessdefaultResponse extends HttpResponse {
|
|
200
|
-
status: string;
|
|
201
|
-
body: ErrorContractOutput;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
export declare interface RoleAssignmentsCheckPrincipalAccessMediaTypesParam {
|
|
205
|
-
/** Request content type */
|
|
206
|
-
contentType?: "application/json" | "text/json";
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
export declare type RoleAssignmentsCheckPrincipalAccessParameters = RoleAssignmentsCheckPrincipalAccessMediaTypesParam & RoleAssignmentsCheckPrincipalAccessBodyParam & RequestParameters;
|
|
210
|
-
|
|
211
|
-
export declare interface RoleAssignmentsCreateRoleAssignment {
|
|
212
|
-
/** Create role assignment. */
|
|
213
|
-
put(options: RoleAssignmentsCreateRoleAssignmentParameters): StreamableMethod<RoleAssignmentsCreateRoleAssignment200Response | RoleAssignmentsCreateRoleAssignmentdefaultResponse>;
|
|
214
|
-
/** Get role assignment by role assignment Id. */
|
|
215
|
-
get(options?: RoleAssignmentsGetRoleAssignmentByIdParameters): StreamableMethod<RoleAssignmentsGetRoleAssignmentById200Response | RoleAssignmentsGetRoleAssignmentByIddefaultResponse>;
|
|
216
|
-
/** Delete role assignment by role assignment Id. */
|
|
217
|
-
delete(options?: RoleAssignmentsDeleteRoleAssignmentByIdParameters): StreamableMethod<RoleAssignmentsDeleteRoleAssignmentById200Response | RoleAssignmentsDeleteRoleAssignmentById204Response | RoleAssignmentsDeleteRoleAssignmentByIddefaultResponse>;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
/** Create role assignment. */
|
|
221
|
-
export declare interface RoleAssignmentsCreateRoleAssignment200Response extends HttpResponse {
|
|
222
|
-
status: "200";
|
|
223
|
-
body: RoleAssignmentDetailsOutput;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
export declare interface RoleAssignmentsCreateRoleAssignmentBodyParam {
|
|
227
|
-
/** Details of role id, scope and object id. */
|
|
228
|
-
body: RoleAssignmentRequest;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
/** Create role assignment. */
|
|
232
|
-
export declare interface RoleAssignmentsCreateRoleAssignmentdefaultResponse extends HttpResponse {
|
|
233
|
-
status: string;
|
|
234
|
-
body: ErrorContractOutput;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
export declare interface RoleAssignmentsCreateRoleAssignmentMediaTypesParam {
|
|
238
|
-
/** Request content type */
|
|
239
|
-
contentType?: "application/json" | "text/json";
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
export declare type RoleAssignmentsCreateRoleAssignmentParameters = RoleAssignmentsCreateRoleAssignmentMediaTypesParam & RoleAssignmentsCreateRoleAssignmentBodyParam & RequestParameters;
|
|
243
|
-
|
|
244
|
-
/** Delete role assignment by role assignment Id. */
|
|
245
|
-
export declare interface RoleAssignmentsDeleteRoleAssignmentById200Response extends HttpResponse {
|
|
246
|
-
status: "200";
|
|
247
|
-
body: Record<string, unknown>;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
/** Delete role assignment by role assignment Id. */
|
|
251
|
-
export declare interface RoleAssignmentsDeleteRoleAssignmentById204Response extends HttpResponse {
|
|
252
|
-
status: "204";
|
|
253
|
-
body: Record<string, unknown>;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
/** Delete role assignment by role assignment Id. */
|
|
257
|
-
export declare interface RoleAssignmentsDeleteRoleAssignmentByIddefaultResponse extends HttpResponse {
|
|
258
|
-
status: string;
|
|
259
|
-
body: ErrorContractOutput;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
export declare type RoleAssignmentsDeleteRoleAssignmentByIdParameters = RoleAssignmentsDeleteRoleAssignmentByIdQueryParam & RequestParameters;
|
|
263
|
-
|
|
264
|
-
export declare interface RoleAssignmentsDeleteRoleAssignmentByIdQueryParam {
|
|
265
|
-
queryParameters?: RoleAssignmentsDeleteRoleAssignmentByIdQueryParamProperties;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
export declare interface RoleAssignmentsDeleteRoleAssignmentByIdQueryParamProperties {
|
|
269
|
-
/** Scope of the Synapse Built-in Role. */
|
|
270
|
-
scope?: string;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
/** Get role assignment by role assignment Id. */
|
|
274
|
-
export declare interface RoleAssignmentsGetRoleAssignmentById200Response extends HttpResponse {
|
|
275
|
-
status: "200";
|
|
276
|
-
body: RoleAssignmentDetailsOutput;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
/** Get role assignment by role assignment Id. */
|
|
280
|
-
export declare interface RoleAssignmentsGetRoleAssignmentByIddefaultResponse extends HttpResponse {
|
|
281
|
-
status: string;
|
|
282
|
-
body: ErrorContractOutput;
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
export declare type RoleAssignmentsGetRoleAssignmentByIdParameters = RequestParameters;
|
|
286
|
-
|
|
287
|
-
export declare interface RoleAssignmentsListRoleAssignments {
|
|
288
|
-
/** List role assignments. */
|
|
289
|
-
get(options?: RoleAssignmentsListRoleAssignmentsParameters): StreamableMethod<RoleAssignmentsListRoleAssignments200Response | RoleAssignmentsListRoleAssignmentsdefaultResponse>;
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
export declare interface RoleAssignmentsListRoleAssignments200Headers {
|
|
293
|
-
/** If the number of role assignments to be listed exceeds the maxResults limit, a continuation token is returned in this response header. When a continuation token is returned in the response, it must be specified in a subsequent invocation of the list operation to continue listing the role assignments. */
|
|
294
|
-
"x-ms-continuation"?: string;
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
/** List role assignments. */
|
|
298
|
-
export declare interface RoleAssignmentsListRoleAssignments200Response extends HttpResponse {
|
|
299
|
-
status: "200";
|
|
300
|
-
body: RoleAssignmentDetailsListOutput;
|
|
301
|
-
headers: RawHttpHeaders & RoleAssignmentsListRoleAssignments200Headers;
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
/** List role assignments. */
|
|
305
|
-
export declare interface RoleAssignmentsListRoleAssignmentsdefaultResponse extends HttpResponse {
|
|
306
|
-
status: string;
|
|
307
|
-
body: ErrorContractOutput;
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
export declare interface RoleAssignmentsListRoleAssignmentsHeaderParam {
|
|
311
|
-
headers: RawHttpHeadersInput & RoleAssignmentsListRoleAssignmentsHeaders;
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
export declare interface RoleAssignmentsListRoleAssignmentsHeaders {
|
|
315
|
-
/** Continuation token. */
|
|
316
|
-
"x-ms-continuation"?: string;
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
export declare type RoleAssignmentsListRoleAssignmentsParameters = RoleAssignmentsListRoleAssignmentsQueryParam & RoleAssignmentsListRoleAssignmentsHeaderParam & RequestParameters;
|
|
320
|
-
|
|
321
|
-
export declare interface RoleAssignmentsListRoleAssignmentsQueryParam {
|
|
322
|
-
queryParameters?: RoleAssignmentsListRoleAssignmentsQueryParamProperties;
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
export declare interface RoleAssignmentsListRoleAssignmentsQueryParamProperties {
|
|
326
|
-
/** Synapse Built-In Role Id. */
|
|
327
|
-
roleId?: string;
|
|
328
|
-
/** Object ID of the AAD principal or security-group. */
|
|
329
|
-
principalId?: string;
|
|
330
|
-
/** Scope of the Synapse Built-in Role. */
|
|
331
|
-
scope?: string;
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
export declare interface RoleDefinitionsGetRoleDefinitionById {
|
|
335
|
-
/** Get role definition by role definition Id. */
|
|
336
|
-
get(options?: RoleDefinitionsGetRoleDefinitionByIdParameters): StreamableMethod<RoleDefinitionsGetRoleDefinitionById200Response | RoleDefinitionsGetRoleDefinitionByIddefaultResponse>;
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
/** Get role definition by role definition Id. */
|
|
340
|
-
export declare interface RoleDefinitionsGetRoleDefinitionById200Response extends HttpResponse {
|
|
341
|
-
status: "200";
|
|
342
|
-
body: SynapseRoleDefinitionOutput;
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
/** Get role definition by role definition Id. */
|
|
346
|
-
export declare interface RoleDefinitionsGetRoleDefinitionByIddefaultResponse extends HttpResponse {
|
|
347
|
-
status: string;
|
|
348
|
-
body: ErrorContractOutput;
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
export declare type RoleDefinitionsGetRoleDefinitionByIdParameters = RequestParameters;
|
|
352
|
-
|
|
353
|
-
export declare interface RoleDefinitionsListRoleDefinitions {
|
|
354
|
-
/** List role definitions. */
|
|
355
|
-
get(options?: RoleDefinitionsListRoleDefinitionsParameters): StreamableMethod<RoleDefinitionsListRoleDefinitions200Response | RoleDefinitionsListRoleDefinitionsdefaultResponse>;
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
/** List role definitions. */
|
|
359
|
-
export declare interface RoleDefinitionsListRoleDefinitions200Response extends HttpResponse {
|
|
360
|
-
status: "200";
|
|
361
|
-
body: Array<SynapseRoleDefinitionOutput>;
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
/** List role definitions. */
|
|
365
|
-
export declare interface RoleDefinitionsListRoleDefinitionsdefaultResponse extends HttpResponse {
|
|
366
|
-
status: string;
|
|
367
|
-
body: ErrorContractOutput;
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
export declare type RoleDefinitionsListRoleDefinitionsParameters = RoleDefinitionsListRoleDefinitionsQueryParam & RequestParameters;
|
|
371
|
-
|
|
372
|
-
export declare interface RoleDefinitionsListRoleDefinitionsQueryParam {
|
|
373
|
-
queryParameters?: RoleDefinitionsListRoleDefinitionsQueryParamProperties;
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
export declare interface RoleDefinitionsListRoleDefinitionsQueryParamProperties {
|
|
377
|
-
/** Is a Synapse Built-In Role or not. */
|
|
378
|
-
isBuiltIn?: boolean;
|
|
379
|
-
/** Scope of the Synapse Built-in Role. */
|
|
380
|
-
scope?: string;
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
export declare interface RoleDefinitionsListScopes {
|
|
384
|
-
/** List rbac scopes. */
|
|
385
|
-
get(options?: RoleDefinitionsListScopesParameters): StreamableMethod<RoleDefinitionsListScopes200Response | RoleDefinitionsListScopesdefaultResponse>;
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
/** List rbac scopes. */
|
|
389
|
-
export declare interface RoleDefinitionsListScopes200Response extends HttpResponse {
|
|
390
|
-
status: "200";
|
|
391
|
-
body: Array<string>;
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
/** List rbac scopes. */
|
|
395
|
-
export declare interface RoleDefinitionsListScopesdefaultResponse extends HttpResponse {
|
|
396
|
-
status: string;
|
|
397
|
-
body: ErrorContractOutput;
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
export declare type RoleDefinitionsListScopesParameters = RequestParameters;
|
|
401
|
-
|
|
402
|
-
export declare interface Routes {
|
|
403
|
-
/** Resource for '/checkAccessSynapseRbac' has methods for the following verbs: post */
|
|
404
|
-
(path: "/checkAccessSynapseRbac"): RoleAssignmentsCheckPrincipalAccess;
|
|
405
|
-
/** Resource for '/roleAssignments' has methods for the following verbs: get */
|
|
406
|
-
(path: "/roleAssignments"): RoleAssignmentsListRoleAssignments;
|
|
407
|
-
/** Resource for '/roleAssignments/\{roleAssignmentId\}' has methods for the following verbs: put, get, delete */
|
|
408
|
-
(path: "/roleAssignments/{roleAssignmentId}", roleAssignmentId: string): RoleAssignmentsCreateRoleAssignment;
|
|
409
|
-
/** Resource for '/roleDefinitions' has methods for the following verbs: get */
|
|
410
|
-
(path: "/roleDefinitions"): RoleDefinitionsListRoleDefinitions;
|
|
411
|
-
/** Resource for '/roleDefinitions/\{roleDefinitionId\}' has methods for the following verbs: get */
|
|
412
|
-
(path: "/roleDefinitions/{roleDefinitionId}", roleDefinitionId: string): RoleDefinitionsGetRoleDefinitionById;
|
|
413
|
-
/** Resource for '/rbacScopes' has methods for the following verbs: get */
|
|
414
|
-
(path: "/rbacScopes"): RoleDefinitionsListScopes;
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
export declare interface SubjectInfo {
|
|
418
|
-
/**
|
|
419
|
-
* Principal Id
|
|
420
|
-
*
|
|
421
|
-
* Value may contain a UUID
|
|
422
|
-
*/
|
|
423
|
-
principalId: string;
|
|
424
|
-
/** List of group Ids that the principalId is part of. */
|
|
425
|
-
groupIds?: Array<string>;
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
export declare interface SynapseRbacPermissionOutput {
|
|
429
|
-
/** List of actions */
|
|
430
|
-
actions?: Array<string>;
|
|
431
|
-
/** List of Not actions */
|
|
432
|
-
notActions?: Array<string>;
|
|
433
|
-
/** List of data actions */
|
|
434
|
-
dataActions?: Array<string>;
|
|
435
|
-
/** List of Not data actions */
|
|
436
|
-
notDataActions?: Array<string>;
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
export declare interface SynapseRoleDefinitionOutput {
|
|
440
|
-
/**
|
|
441
|
-
* Role Definition ID
|
|
442
|
-
*
|
|
443
|
-
* Value may contain a UUID
|
|
444
|
-
*/
|
|
445
|
-
id?: string;
|
|
446
|
-
/** Name of the Synapse role */
|
|
447
|
-
name?: string;
|
|
448
|
-
/** Is a built-in role or not */
|
|
449
|
-
isBuiltIn?: boolean;
|
|
450
|
-
/** Description for the Synapse role */
|
|
451
|
-
description?: string;
|
|
452
|
-
/** Permissions for the Synapse role */
|
|
453
|
-
permissions?: Array<SynapseRbacPermissionOutput>;
|
|
454
|
-
/** Allowed scopes for the Synapse role */
|
|
455
|
-
scopes?: Array<string>;
|
|
456
|
-
/** Availability of the Synapse role */
|
|
457
|
-
availabilityStatus?: string;
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
export { }
|