@microsoft/msgraph-sdk-directoryroles 1.0.0-preview.10
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/LICENSE +21 -0
- package/README.md +11 -0
- package/directoryRoles/count/index.d.ts +40 -0
- package/directoryRoles/count/index.d.ts.map +1 -0
- package/directoryRoles/count/index.js +35 -0
- package/directoryRoles/delta/index.d.ts +83 -0
- package/directoryRoles/delta/index.d.ts.map +1 -0
- package/directoryRoles/delta/index.js +67 -0
- package/directoryRoles/getAvailableExtensionProperties/index.d.ts +83 -0
- package/directoryRoles/getAvailableExtensionProperties/index.d.ts.map +1 -0
- package/directoryRoles/getAvailableExtensionProperties/index.js +86 -0
- package/directoryRoles/getByIds/index.d.ts +87 -0
- package/directoryRoles/getByIds/index.d.ts.map +1 -0
- package/directoryRoles/getByIds/index.js +88 -0
- package/directoryRoles/index.d.ts +113 -0
- package/directoryRoles/index.d.ts.map +1 -0
- package/directoryRoles/index.js +90 -0
- package/directoryRoles/item/checkMemberGroups/index.d.ts +83 -0
- package/directoryRoles/item/checkMemberGroups/index.d.ts.map +1 -0
- package/directoryRoles/item/checkMemberGroups/index.js +86 -0
- package/directoryRoles/item/checkMemberObjects/index.d.ts +82 -0
- package/directoryRoles/item/checkMemberObjects/index.d.ts.map +1 -0
- package/directoryRoles/item/checkMemberObjects/index.js +86 -0
- package/directoryRoles/item/getMemberGroups/index.d.ts +83 -0
- package/directoryRoles/item/getMemberGroups/index.d.ts.map +1 -0
- package/directoryRoles/item/getMemberGroups/index.js +86 -0
- package/directoryRoles/item/getMemberObjects/index.d.ts +83 -0
- package/directoryRoles/item/getMemberObjects/index.d.ts.map +1 -0
- package/directoryRoles/item/getMemberObjects/index.js +86 -0
- package/directoryRoles/item/index.d.ts +106 -0
- package/directoryRoles/item/index.d.ts.map +1 -0
- package/directoryRoles/item/index.js +98 -0
- package/directoryRoles/item/members/count/index.d.ts +40 -0
- package/directoryRoles/item/members/count/index.d.ts.map +1 -0
- package/directoryRoles/item/members/count/index.js +35 -0
- package/directoryRoles/item/members/graphApplication/count/index.d.ts +40 -0
- package/directoryRoles/item/members/graphApplication/count/index.d.ts.map +1 -0
- package/directoryRoles/item/members/graphApplication/count/index.js +35 -0
- package/directoryRoles/item/members/graphApplication/index.d.ts +74 -0
- package/directoryRoles/item/members/graphApplication/index.d.ts.map +1 -0
- package/directoryRoles/item/members/graphApplication/index.js +52 -0
- package/directoryRoles/item/members/graphDevice/count/index.d.ts +40 -0
- package/directoryRoles/item/members/graphDevice/count/index.d.ts.map +1 -0
- package/directoryRoles/item/members/graphDevice/count/index.js +35 -0
- package/directoryRoles/item/members/graphDevice/index.d.ts +74 -0
- package/directoryRoles/item/members/graphDevice/index.d.ts.map +1 -0
- package/directoryRoles/item/members/graphDevice/index.js +52 -0
- package/directoryRoles/item/members/graphGroup/count/index.d.ts +40 -0
- package/directoryRoles/item/members/graphGroup/count/index.d.ts.map +1 -0
- package/directoryRoles/item/members/graphGroup/count/index.js +35 -0
- package/directoryRoles/item/members/graphGroup/index.d.ts +74 -0
- package/directoryRoles/item/members/graphGroup/index.d.ts.map +1 -0
- package/directoryRoles/item/members/graphGroup/index.js +52 -0
- package/directoryRoles/item/members/graphOrgContact/count/index.d.ts +40 -0
- package/directoryRoles/item/members/graphOrgContact/count/index.d.ts.map +1 -0
- package/directoryRoles/item/members/graphOrgContact/count/index.js +35 -0
- package/directoryRoles/item/members/graphOrgContact/index.d.ts +74 -0
- package/directoryRoles/item/members/graphOrgContact/index.d.ts.map +1 -0
- package/directoryRoles/item/members/graphOrgContact/index.js +52 -0
- package/directoryRoles/item/members/graphServicePrincipal/count/index.d.ts +40 -0
- package/directoryRoles/item/members/graphServicePrincipal/count/index.d.ts.map +1 -0
- package/directoryRoles/item/members/graphServicePrincipal/count/index.js +35 -0
- package/directoryRoles/item/members/graphServicePrincipal/index.d.ts +74 -0
- package/directoryRoles/item/members/graphServicePrincipal/index.d.ts.map +1 -0
- package/directoryRoles/item/members/graphServicePrincipal/index.js +52 -0
- package/directoryRoles/item/members/graphUser/count/index.d.ts +40 -0
- package/directoryRoles/item/members/graphUser/count/index.d.ts.map +1 -0
- package/directoryRoles/item/members/graphUser/count/index.js +35 -0
- package/directoryRoles/item/members/graphUser/index.d.ts +74 -0
- package/directoryRoles/item/members/graphUser/index.d.ts.map +1 -0
- package/directoryRoles/item/members/graphUser/index.js +52 -0
- package/directoryRoles/item/members/index.d.ts +117 -0
- package/directoryRoles/item/members/index.d.ts.map +1 -0
- package/directoryRoles/item/members/index.js +99 -0
- package/directoryRoles/item/members/item/graphApplication/index.d.ts +41 -0
- package/directoryRoles/item/members/item/graphApplication/index.d.ts.map +1 -0
- package/directoryRoles/item/members/item/graphApplication/index.js +36 -0
- package/directoryRoles/item/members/item/graphDevice/index.d.ts +41 -0
- package/directoryRoles/item/members/item/graphDevice/index.d.ts.map +1 -0
- package/directoryRoles/item/members/item/graphDevice/index.js +36 -0
- package/directoryRoles/item/members/item/graphGroup/index.d.ts +41 -0
- package/directoryRoles/item/members/item/graphGroup/index.d.ts.map +1 -0
- package/directoryRoles/item/members/item/graphGroup/index.js +36 -0
- package/directoryRoles/item/members/item/graphOrgContact/index.d.ts +41 -0
- package/directoryRoles/item/members/item/graphOrgContact/index.d.ts.map +1 -0
- package/directoryRoles/item/members/item/graphOrgContact/index.js +36 -0
- package/directoryRoles/item/members/item/graphServicePrincipal/index.d.ts +41 -0
- package/directoryRoles/item/members/item/graphServicePrincipal/index.d.ts.map +1 -0
- package/directoryRoles/item/members/item/graphServicePrincipal/index.js +36 -0
- package/directoryRoles/item/members/item/graphUser/index.d.ts +41 -0
- package/directoryRoles/item/members/item/graphUser/index.d.ts.map +1 -0
- package/directoryRoles/item/members/item/graphUser/index.js +36 -0
- package/directoryRoles/item/members/item/index.d.ts +50 -0
- package/directoryRoles/item/members/item/index.d.ts.map +1 -0
- package/directoryRoles/item/members/item/index.js +52 -0
- package/directoryRoles/item/members/item/ref/index.d.ts +36 -0
- package/directoryRoles/item/members/item/ref/index.d.ts.map +1 -0
- package/directoryRoles/item/members/item/ref/index.js +33 -0
- package/directoryRoles/item/members/ref/index.d.ts +72 -0
- package/directoryRoles/item/members/ref/index.d.ts.map +1 -0
- package/directoryRoles/item/members/ref/index.js +51 -0
- package/directoryRoles/item/restore/index.d.ts +29 -0
- package/directoryRoles/item/restore/index.d.ts.map +1 -0
- package/directoryRoles/item/restore/index.js +28 -0
- package/directoryRoles/item/scopedMembers/count/index.d.ts +40 -0
- package/directoryRoles/item/scopedMembers/count/index.d.ts.map +1 -0
- package/directoryRoles/item/scopedMembers/count/index.js +35 -0
- package/directoryRoles/item/scopedMembers/index.d.ts +96 -0
- package/directoryRoles/item/scopedMembers/index.d.ts.map +1 -0
- package/directoryRoles/item/scopedMembers/index.js +70 -0
- package/directoryRoles/item/scopedMembers/item/index.d.ts +66 -0
- package/directoryRoles/item/scopedMembers/item/index.d.ts.map +1 -0
- package/directoryRoles/item/scopedMembers/item/index.js +56 -0
- package/directoryRoles/validateProperties/index.d.ts +72 -0
- package/directoryRoles/validateProperties/index.d.ts.map +1 -0
- package/directoryRoles/validateProperties/index.js +64 -0
- package/directoryRolesServiceClient.d.ts +25 -0
- package/directoryRolesServiceClient.d.ts.map +1 -0
- package/directoryRolesServiceClient.js +49 -0
- package/index.d.ts +11 -0
- package/index.d.ts.map +1 -0
- package/index.js +20 -0
- package/package.json +48 -0
- package/tsconfig.json +15 -0
- package/tsconfig.tsbuildinfo +1 -0
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { type DirectoryRole, type DirectoryRoleCollectionResponse } from '@microsoft/msgraph-sdk/models/';
|
|
2
|
+
import { type CountRequestBuilder } from './count/';
|
|
3
|
+
import { type DeltaRequestBuilder } from './delta/';
|
|
4
|
+
import { type GetAvailableExtensionPropertiesRequestBuilder } from './getAvailableExtensionProperties/';
|
|
5
|
+
import { type GetByIdsRequestBuilder } from './getByIds/';
|
|
6
|
+
import { type DirectoryRoleItemRequestBuilder } from './item/';
|
|
7
|
+
import { type ValidatePropertiesRequestBuilder } from './validateProperties/';
|
|
8
|
+
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
|
|
9
|
+
/**
|
|
10
|
+
* Provides operations to manage the collection of directoryRole entities.
|
|
11
|
+
*/
|
|
12
|
+
export interface DirectoryRolesRequestBuilder extends BaseRequestBuilder<DirectoryRolesRequestBuilder> {
|
|
13
|
+
/**
|
|
14
|
+
* Provides operations to count the resources in the collection.
|
|
15
|
+
*/
|
|
16
|
+
get count(): CountRequestBuilder;
|
|
17
|
+
/**
|
|
18
|
+
* Provides operations to call the delta method.
|
|
19
|
+
*/
|
|
20
|
+
get delta(): DeltaRequestBuilder;
|
|
21
|
+
/**
|
|
22
|
+
* Provides operations to call the getAvailableExtensionProperties method.
|
|
23
|
+
*/
|
|
24
|
+
get getAvailableExtensionProperties(): GetAvailableExtensionPropertiesRequestBuilder;
|
|
25
|
+
/**
|
|
26
|
+
* Provides operations to call the getByIds method.
|
|
27
|
+
*/
|
|
28
|
+
get getByIds(): GetByIdsRequestBuilder;
|
|
29
|
+
/**
|
|
30
|
+
* Provides operations to call the validateProperties method.
|
|
31
|
+
*/
|
|
32
|
+
get validateProperties(): ValidatePropertiesRequestBuilder;
|
|
33
|
+
/**
|
|
34
|
+
* Provides operations to manage the collection of directoryRole entities.
|
|
35
|
+
* @param directoryRoleId The unique identifier of directoryRole
|
|
36
|
+
* @returns a DirectoryRoleItemRequestBuilder
|
|
37
|
+
*/
|
|
38
|
+
byDirectoryRoleId(directoryRoleId: string): DirectoryRoleItemRequestBuilder;
|
|
39
|
+
/**
|
|
40
|
+
* List the directory roles that are activated in the tenant. This operation only returns roles that have been activated. A role becomes activated when an admin activates the role using the Activate directoryRole API. Not all built-in roles are initially activated. When assigning a role using the Microsoft Entra admin center, the role activation step is implicitly done on the admin's behalf. To get the full list of roles that are available in Microsoft Entra ID, use List directoryRoleTemplates.
|
|
41
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
42
|
+
* @returns a Promise of DirectoryRoleCollectionResponse
|
|
43
|
+
* @see {@link https://learn.microsoft.com/graph/api/directoryrole-list?view=graph-rest-1.0|Find more info here}
|
|
44
|
+
*/
|
|
45
|
+
get(requestConfiguration?: RequestConfiguration<DirectoryRolesRequestBuilderGetQueryParameters> | undefined): Promise<DirectoryRoleCollectionResponse | undefined>;
|
|
46
|
+
/**
|
|
47
|
+
* Activate a directory role. To read a directory role or update its members, it must first be activated in the tenant. The Company Administrators and the implicit user directory roles (User, Guest User, and Restricted Guest User roles) are activated by default. To access and assign members to other directory roles, you must first activate it with its corresponding directory role template ID.
|
|
48
|
+
* @param body The request body
|
|
49
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
50
|
+
* @returns a Promise of DirectoryRole
|
|
51
|
+
* @see {@link https://learn.microsoft.com/graph/api/directoryrole-post-directoryroles?view=graph-rest-1.0|Find more info here}
|
|
52
|
+
*/
|
|
53
|
+
post(body: DirectoryRole, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<DirectoryRole | undefined>;
|
|
54
|
+
/**
|
|
55
|
+
* List the directory roles that are activated in the tenant. This operation only returns roles that have been activated. A role becomes activated when an admin activates the role using the Activate directoryRole API. Not all built-in roles are initially activated. When assigning a role using the Microsoft Entra admin center, the role activation step is implicitly done on the admin's behalf. To get the full list of roles that are available in Microsoft Entra ID, use List directoryRoleTemplates.
|
|
56
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
57
|
+
* @returns a RequestInformation
|
|
58
|
+
*/
|
|
59
|
+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<DirectoryRolesRequestBuilderGetQueryParameters> | undefined): RequestInformation;
|
|
60
|
+
/**
|
|
61
|
+
* Activate a directory role. To read a directory role or update its members, it must first be activated in the tenant. The Company Administrators and the implicit user directory roles (User, Guest User, and Restricted Guest User roles) are activated by default. To access and assign members to other directory roles, you must first activate it with its corresponding directory role template ID.
|
|
62
|
+
* @param body The request body
|
|
63
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
64
|
+
* @returns a RequestInformation
|
|
65
|
+
*/
|
|
66
|
+
toPostRequestInformation(body: DirectoryRole, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* List the directory roles that are activated in the tenant. This operation only returns roles that have been activated. A role becomes activated when an admin activates the role using the Activate directoryRole API. Not all built-in roles are initially activated. When assigning a role using the Microsoft Entra admin center, the role activation step is implicitly done on the admin's behalf. To get the full list of roles that are available in Microsoft Entra ID, use List directoryRoleTemplates.
|
|
70
|
+
*/
|
|
71
|
+
export interface DirectoryRolesRequestBuilderGetQueryParameters {
|
|
72
|
+
/**
|
|
73
|
+
* Include count of items
|
|
74
|
+
*/
|
|
75
|
+
count?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Expand related entities
|
|
78
|
+
*/
|
|
79
|
+
expand?: string[];
|
|
80
|
+
/**
|
|
81
|
+
* Filter items by property values
|
|
82
|
+
*/
|
|
83
|
+
filter?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Order items by property values
|
|
86
|
+
*/
|
|
87
|
+
orderby?: string[];
|
|
88
|
+
/**
|
|
89
|
+
* Search items by search phrases
|
|
90
|
+
*/
|
|
91
|
+
search?: string;
|
|
92
|
+
/**
|
|
93
|
+
* Select properties to be returned
|
|
94
|
+
*/
|
|
95
|
+
select?: string[];
|
|
96
|
+
/**
|
|
97
|
+
* Skip the first n items
|
|
98
|
+
*/
|
|
99
|
+
skip?: number;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Metadata for all the navigation properties in the request builder.
|
|
103
|
+
*/
|
|
104
|
+
export declare const DirectoryRolesRequestBuilderNavigationMetadata: Record<Exclude<keyof DirectoryRolesRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
|
|
105
|
+
/**
|
|
106
|
+
* Metadata for all the requests in the request builder.
|
|
107
|
+
*/
|
|
108
|
+
export declare const DirectoryRolesRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
109
|
+
/**
|
|
110
|
+
* Uri template for the request builder.
|
|
111
|
+
*/
|
|
112
|
+
export declare const DirectoryRolesRequestBuilderUriTemplate = "{+baseurl}/directoryRoles{?%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}";
|
|
113
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAkI,KAAK,aAAa,EAAE,KAAK,+BAA+B,EAAE,MAAM,gCAAgC,CAAC;AAE1O,OAAO,EAAuE,KAAK,mBAAmB,EAAE,MAAM,UAAU,CAAC;AACzH,OAAO,EAAuE,KAAK,mBAAmB,EAAE,MAAM,UAAU,CAAC;AACzH,OAAO,EAA2H,KAAK,6CAA6C,EAAE,MAAM,oCAAoC,CAAC;AACjO,OAAO,EAA6E,KAAK,sBAAsB,EAAE,MAAM,aAAa,CAAC;AACrI,OAAO,EAAkJ,KAAK,+BAA+B,EAAE,MAAM,SAAS,CAAC;AAC/M,OAAO,EAAE,KAAK,gCAAgC,EAAiG,MAAM,uBAAuB,CAAC;AAC7K,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,kCAAkC,EAAE,KAAK,kBAAkB,EAAuC,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAE1P;;GAEG;AACH,MAAM,WAAW,4BAA6B,SAAQ,kBAAkB,CAAC,4BAA4B,CAAC;IAClG;;OAEG;IACH,IAAI,KAAK,IAAI,mBAAmB,CAAC;IACjC;;OAEG;IACH,IAAI,KAAK,IAAI,mBAAmB,CAAC;IAC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AM,8CAA8C,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,4BAA4B,EAAE,kCAAkC,CAAC,EAAE,kBAAkB,CA2BtK,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,4CAA4C,EAAE,gBAuB1D,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,uCAAuC,oGAAoG,CAAC"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DirectoryRolesRequestBuilderUriTemplate = exports.DirectoryRolesRequestBuilderRequestsMetadata = exports.DirectoryRolesRequestBuilderNavigationMetadata = void 0;
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
// Generated by Microsoft Kiota
|
|
7
|
+
const models_1 = require("@microsoft/msgraph-sdk/models/");
|
|
8
|
+
const oDataErrors_1 = require("@microsoft/msgraph-sdk/models/oDataErrors/");
|
|
9
|
+
const count_1 = require("./count/");
|
|
10
|
+
const delta_1 = require("./delta/");
|
|
11
|
+
const getAvailableExtensionProperties_1 = require("./getAvailableExtensionProperties/");
|
|
12
|
+
const getByIds_1 = require("./getByIds/");
|
|
13
|
+
const item_1 = require("./item/");
|
|
14
|
+
const validateProperties_1 = require("./validateProperties/");
|
|
15
|
+
/**
|
|
16
|
+
* Mapper for query parameters from symbol name to serialization name represented as a constant.
|
|
17
|
+
*/
|
|
18
|
+
const DirectoryRolesRequestBuilderGetQueryParametersMapper = {
|
|
19
|
+
"count": "%24count",
|
|
20
|
+
"expand": "%24expand",
|
|
21
|
+
"filter": "%24filter",
|
|
22
|
+
"orderby": "%24orderby",
|
|
23
|
+
"search": "%24search",
|
|
24
|
+
"select": "%24select",
|
|
25
|
+
"skip": "%24skip",
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Metadata for all the navigation properties in the request builder.
|
|
29
|
+
*/
|
|
30
|
+
exports.DirectoryRolesRequestBuilderNavigationMetadata = {
|
|
31
|
+
byDirectoryRoleId: {
|
|
32
|
+
uriTemplate: item_1.DirectoryRoleItemRequestBuilderUriTemplate,
|
|
33
|
+
requestsMetadata: item_1.DirectoryRoleItemRequestBuilderRequestsMetadata,
|
|
34
|
+
navigationMetadata: item_1.DirectoryRoleItemRequestBuilderNavigationMetadata,
|
|
35
|
+
pathParametersMappings: ["directoryRole%2Did"],
|
|
36
|
+
},
|
|
37
|
+
count: {
|
|
38
|
+
uriTemplate: count_1.CountRequestBuilderUriTemplate,
|
|
39
|
+
requestsMetadata: count_1.CountRequestBuilderRequestsMetadata,
|
|
40
|
+
},
|
|
41
|
+
delta: {
|
|
42
|
+
uriTemplate: delta_1.DeltaRequestBuilderUriTemplate,
|
|
43
|
+
requestsMetadata: delta_1.DeltaRequestBuilderRequestsMetadata,
|
|
44
|
+
},
|
|
45
|
+
getAvailableExtensionProperties: {
|
|
46
|
+
uriTemplate: getAvailableExtensionProperties_1.GetAvailableExtensionPropertiesRequestBuilderUriTemplate,
|
|
47
|
+
requestsMetadata: getAvailableExtensionProperties_1.GetAvailableExtensionPropertiesRequestBuilderRequestsMetadata,
|
|
48
|
+
},
|
|
49
|
+
getByIds: {
|
|
50
|
+
uriTemplate: getByIds_1.GetByIdsRequestBuilderUriTemplate,
|
|
51
|
+
requestsMetadata: getByIds_1.GetByIdsRequestBuilderRequestsMetadata,
|
|
52
|
+
},
|
|
53
|
+
validateProperties: {
|
|
54
|
+
uriTemplate: validateProperties_1.ValidatePropertiesRequestBuilderUriTemplate,
|
|
55
|
+
requestsMetadata: validateProperties_1.ValidatePropertiesRequestBuilderRequestsMetadata,
|
|
56
|
+
},
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* Metadata for all the requests in the request builder.
|
|
60
|
+
*/
|
|
61
|
+
exports.DirectoryRolesRequestBuilderRequestsMetadata = {
|
|
62
|
+
get: {
|
|
63
|
+
responseBodyContentType: "application/json",
|
|
64
|
+
errorMappings: {
|
|
65
|
+
_4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
66
|
+
_5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
67
|
+
},
|
|
68
|
+
adapterMethodName: "sendAsync",
|
|
69
|
+
responseBodyFactory: models_1.createDirectoryRoleCollectionResponseFromDiscriminatorValue,
|
|
70
|
+
queryParametersMapper: DirectoryRolesRequestBuilderGetQueryParametersMapper,
|
|
71
|
+
},
|
|
72
|
+
post: {
|
|
73
|
+
responseBodyContentType: "application/json",
|
|
74
|
+
errorMappings: {
|
|
75
|
+
_4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
76
|
+
_5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
77
|
+
},
|
|
78
|
+
adapterMethodName: "sendAsync",
|
|
79
|
+
responseBodyFactory: models_1.createDirectoryRoleFromDiscriminatorValue,
|
|
80
|
+
requestBodyContentType: "application/json",
|
|
81
|
+
requestBodySerializer: models_1.serializeDirectoryRole,
|
|
82
|
+
requestInformationContentSetMethod: "setContentFromParsable",
|
|
83
|
+
},
|
|
84
|
+
};
|
|
85
|
+
/**
|
|
86
|
+
* Uri template for the request builder.
|
|
87
|
+
*/
|
|
88
|
+
exports.DirectoryRolesRequestBuilderUriTemplate = "{+baseurl}/directoryRoles{?%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}";
|
|
89
|
+
/* tslint:enable */
|
|
90
|
+
/* eslint-enable */
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { type BaseCollectionPaginationCountResponse } from '@microsoft/msgraph-sdk/models/';
|
|
2
|
+
import { type AdditionalDataHolder, type BackedModel, type BaseRequestBuilder, type Parsable, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter } from '@microsoft/kiota-abstractions';
|
|
3
|
+
export interface CheckMemberGroupsPostRequestBody extends AdditionalDataHolder, BackedModel, Parsable {
|
|
4
|
+
/**
|
|
5
|
+
* Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
6
|
+
*/
|
|
7
|
+
additionalData?: Record<string, unknown>;
|
|
8
|
+
/**
|
|
9
|
+
* Stores model information.
|
|
10
|
+
*/
|
|
11
|
+
backingStoreEnabled?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* The groupIds property
|
|
14
|
+
*/
|
|
15
|
+
groupIds?: string[];
|
|
16
|
+
}
|
|
17
|
+
export interface CheckMemberGroupsPostResponse extends BaseCollectionPaginationCountResponse, Parsable {
|
|
18
|
+
/**
|
|
19
|
+
* The value property
|
|
20
|
+
*/
|
|
21
|
+
value?: string[];
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Provides operations to call the checkMemberGroups method.
|
|
25
|
+
*/
|
|
26
|
+
export interface CheckMemberGroupsRequestBuilder extends BaseRequestBuilder<CheckMemberGroupsRequestBuilder> {
|
|
27
|
+
/**
|
|
28
|
+
* Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct.
|
|
29
|
+
* @param body The request body
|
|
30
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
31
|
+
* @returns a Promise of CheckMemberGroupsPostResponse
|
|
32
|
+
* @see {@link https://learn.microsoft.com/graph/api/directoryobject-checkmembergroups?view=graph-rest-1.0|Find more info here}
|
|
33
|
+
*/
|
|
34
|
+
post(body: CheckMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<CheckMemberGroupsPostResponse | undefined>;
|
|
35
|
+
/**
|
|
36
|
+
* Check for membership in a specified list of group IDs, and return from that list those groups (identified by IDs) of which the specified user, group, service principal, organizational contact, device, or directory object is a member. This function is transitive. You can check up to a maximum of 20 groups per request. This function supports all groups provisioned in Microsoft Entra ID. Because Microsoft 365 groups cannot contain other groups, membership in a Microsoft 365 group is always direct.
|
|
37
|
+
* @param body The request body
|
|
38
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
39
|
+
* @returns a RequestInformation
|
|
40
|
+
*/
|
|
41
|
+
toPostRequestInformation(body: CheckMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
45
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
46
|
+
* @returns a checkMemberGroupsPostRequestBody
|
|
47
|
+
*/
|
|
48
|
+
export declare function createCheckMemberGroupsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined): typeof deserializeIntoCheckMemberGroupsPostRequestBody;
|
|
49
|
+
/**
|
|
50
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
51
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
52
|
+
* @returns a checkMemberGroupsPostResponse
|
|
53
|
+
*/
|
|
54
|
+
export declare function createCheckMemberGroupsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): typeof deserializeIntoCheckMemberGroupsPostResponse;
|
|
55
|
+
/**
|
|
56
|
+
* The deserialization information for the current model
|
|
57
|
+
* @returns a Record<string, (node: ParseNode) => void>
|
|
58
|
+
*/
|
|
59
|
+
export declare function deserializeIntoCheckMemberGroupsPostRequestBody(checkMemberGroupsPostRequestBody?: CheckMemberGroupsPostRequestBody | undefined): Record<string, (node: ParseNode) => void>;
|
|
60
|
+
/**
|
|
61
|
+
* The deserialization information for the current model
|
|
62
|
+
* @returns a Record<string, (node: ParseNode) => void>
|
|
63
|
+
*/
|
|
64
|
+
export declare function deserializeIntoCheckMemberGroupsPostResponse(checkMemberGroupsPostResponse?: CheckMemberGroupsPostResponse | undefined): Record<string, (node: ParseNode) => void>;
|
|
65
|
+
/**
|
|
66
|
+
* Serializes information the current object
|
|
67
|
+
* @param writer Serialization writer to use to serialize this model
|
|
68
|
+
*/
|
|
69
|
+
export declare function serializeCheckMemberGroupsPostRequestBody(writer: SerializationWriter, checkMemberGroupsPostRequestBody?: CheckMemberGroupsPostRequestBody | undefined): void;
|
|
70
|
+
/**
|
|
71
|
+
* Serializes information the current object
|
|
72
|
+
* @param writer Serialization writer to use to serialize this model
|
|
73
|
+
*/
|
|
74
|
+
export declare function serializeCheckMemberGroupsPostResponse(writer: SerializationWriter, checkMemberGroupsPostResponse?: CheckMemberGroupsPostResponse | undefined): void;
|
|
75
|
+
/**
|
|
76
|
+
* Metadata for all the requests in the request builder.
|
|
77
|
+
*/
|
|
78
|
+
export declare const CheckMemberGroupsRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
79
|
+
/**
|
|
80
|
+
* Uri template for the request builder.
|
|
81
|
+
*/
|
|
82
|
+
export declare const CheckMemberGroupsRequestBuilderUriTemplate = "{+baseurl}/directoryRoles/{directoryRole%2Did}/checkMemberGroups";
|
|
83
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAwG,KAAK,qCAAqC,EAAE,MAAM,gCAAgC,CAAC;AAElM,OAAO,EAAE,KAAK,oBAAoB,EAAE,KAAK,WAAW,EAAqB,KAAK,kBAAkB,EAAE,KAAK,QAAQ,EAAwB,KAAK,SAAS,EAAE,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,KAAK,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAElS,MAAM,WAAW,gCAAiC,SAAQ,oBAAoB,EAAE,WAAW,EAAE,QAAQ;IACjG;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;OAE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AAE,6BAA6B,GAAG,SAA+C,GAAI,IAAI,CAGzM;AACD;;GAEG;AACH,eAAO,MAAM,+CAA+C,EAAE,gBAa7D,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,0CAA0C,qEAAqE,CAAC"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CheckMemberGroupsRequestBuilderUriTemplate = exports.CheckMemberGroupsRequestBuilderRequestsMetadata = exports.serializeCheckMemberGroupsPostResponse = exports.serializeCheckMemberGroupsPostRequestBody = exports.deserializeIntoCheckMemberGroupsPostResponse = exports.deserializeIntoCheckMemberGroupsPostRequestBody = exports.createCheckMemberGroupsPostResponseFromDiscriminatorValue = exports.createCheckMemberGroupsPostRequestBodyFromDiscriminatorValue = void 0;
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
// Generated by Microsoft Kiota
|
|
7
|
+
const models_1 = require("@microsoft/msgraph-sdk/models/");
|
|
8
|
+
const oDataErrors_1 = require("@microsoft/msgraph-sdk/models/oDataErrors/");
|
|
9
|
+
/**
|
|
10
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
11
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
12
|
+
* @returns a checkMemberGroupsPostRequestBody
|
|
13
|
+
*/
|
|
14
|
+
function createCheckMemberGroupsPostRequestBodyFromDiscriminatorValue(parseNode) {
|
|
15
|
+
return deserializeIntoCheckMemberGroupsPostRequestBody;
|
|
16
|
+
}
|
|
17
|
+
exports.createCheckMemberGroupsPostRequestBodyFromDiscriminatorValue = createCheckMemberGroupsPostRequestBodyFromDiscriminatorValue;
|
|
18
|
+
/**
|
|
19
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
20
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
21
|
+
* @returns a checkMemberGroupsPostResponse
|
|
22
|
+
*/
|
|
23
|
+
function createCheckMemberGroupsPostResponseFromDiscriminatorValue(parseNode) {
|
|
24
|
+
return deserializeIntoCheckMemberGroupsPostResponse;
|
|
25
|
+
}
|
|
26
|
+
exports.createCheckMemberGroupsPostResponseFromDiscriminatorValue = createCheckMemberGroupsPostResponseFromDiscriminatorValue;
|
|
27
|
+
/**
|
|
28
|
+
* The deserialization information for the current model
|
|
29
|
+
* @returns a Record<string, (node: ParseNode) => void>
|
|
30
|
+
*/
|
|
31
|
+
function deserializeIntoCheckMemberGroupsPostRequestBody(checkMemberGroupsPostRequestBody = {}) {
|
|
32
|
+
return {
|
|
33
|
+
"backingStoreEnabled": n => { checkMemberGroupsPostRequestBody.backingStoreEnabled = true; },
|
|
34
|
+
"groupIds": n => { checkMemberGroupsPostRequestBody.groupIds = n.getCollectionOfPrimitiveValues(); },
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
exports.deserializeIntoCheckMemberGroupsPostRequestBody = deserializeIntoCheckMemberGroupsPostRequestBody;
|
|
38
|
+
/**
|
|
39
|
+
* The deserialization information for the current model
|
|
40
|
+
* @returns a Record<string, (node: ParseNode) => void>
|
|
41
|
+
*/
|
|
42
|
+
function deserializeIntoCheckMemberGroupsPostResponse(checkMemberGroupsPostResponse = {}) {
|
|
43
|
+
return Object.assign(Object.assign({}, (0, models_1.deserializeIntoBaseCollectionPaginationCountResponse)(checkMemberGroupsPostResponse)), { "value": n => { checkMemberGroupsPostResponse.value = n.getCollectionOfPrimitiveValues(); } });
|
|
44
|
+
}
|
|
45
|
+
exports.deserializeIntoCheckMemberGroupsPostResponse = deserializeIntoCheckMemberGroupsPostResponse;
|
|
46
|
+
/**
|
|
47
|
+
* Serializes information the current object
|
|
48
|
+
* @param writer Serialization writer to use to serialize this model
|
|
49
|
+
*/
|
|
50
|
+
function serializeCheckMemberGroupsPostRequestBody(writer, checkMemberGroupsPostRequestBody = {}) {
|
|
51
|
+
writer.writeCollectionOfPrimitiveValues("groupIds", checkMemberGroupsPostRequestBody.groupIds);
|
|
52
|
+
writer.writeAdditionalData(checkMemberGroupsPostRequestBody.additionalData);
|
|
53
|
+
}
|
|
54
|
+
exports.serializeCheckMemberGroupsPostRequestBody = serializeCheckMemberGroupsPostRequestBody;
|
|
55
|
+
/**
|
|
56
|
+
* Serializes information the current object
|
|
57
|
+
* @param writer Serialization writer to use to serialize this model
|
|
58
|
+
*/
|
|
59
|
+
function serializeCheckMemberGroupsPostResponse(writer, checkMemberGroupsPostResponse = {}) {
|
|
60
|
+
(0, models_1.serializeBaseCollectionPaginationCountResponse)(writer, checkMemberGroupsPostResponse);
|
|
61
|
+
writer.writeCollectionOfPrimitiveValues("value", checkMemberGroupsPostResponse.value);
|
|
62
|
+
}
|
|
63
|
+
exports.serializeCheckMemberGroupsPostResponse = serializeCheckMemberGroupsPostResponse;
|
|
64
|
+
/**
|
|
65
|
+
* Metadata for all the requests in the request builder.
|
|
66
|
+
*/
|
|
67
|
+
exports.CheckMemberGroupsRequestBuilderRequestsMetadata = {
|
|
68
|
+
post: {
|
|
69
|
+
responseBodyContentType: "application/json",
|
|
70
|
+
errorMappings: {
|
|
71
|
+
_4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
72
|
+
_5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
73
|
+
},
|
|
74
|
+
adapterMethodName: "sendAsync",
|
|
75
|
+
responseBodyFactory: createCheckMemberGroupsPostResponseFromDiscriminatorValue,
|
|
76
|
+
requestBodyContentType: "application/json",
|
|
77
|
+
requestBodySerializer: serializeCheckMemberGroupsPostRequestBody,
|
|
78
|
+
requestInformationContentSetMethod: "setContentFromParsable",
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* Uri template for the request builder.
|
|
83
|
+
*/
|
|
84
|
+
exports.CheckMemberGroupsRequestBuilderUriTemplate = "{+baseurl}/directoryRoles/{directoryRole%2Did}/checkMemberGroups";
|
|
85
|
+
/* tslint:enable */
|
|
86
|
+
/* eslint-enable */
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { type BaseCollectionPaginationCountResponse } from '@microsoft/msgraph-sdk/models/';
|
|
2
|
+
import { type AdditionalDataHolder, type BackedModel, type BaseRequestBuilder, type Parsable, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter } from '@microsoft/kiota-abstractions';
|
|
3
|
+
export interface CheckMemberObjectsPostRequestBody extends AdditionalDataHolder, BackedModel, Parsable {
|
|
4
|
+
/**
|
|
5
|
+
* Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
6
|
+
*/
|
|
7
|
+
additionalData?: Record<string, unknown>;
|
|
8
|
+
/**
|
|
9
|
+
* Stores model information.
|
|
10
|
+
*/
|
|
11
|
+
backingStoreEnabled?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* The ids property
|
|
14
|
+
*/
|
|
15
|
+
ids?: string[];
|
|
16
|
+
}
|
|
17
|
+
export interface CheckMemberObjectsPostResponse extends BaseCollectionPaginationCountResponse, Parsable {
|
|
18
|
+
/**
|
|
19
|
+
* The value property
|
|
20
|
+
*/
|
|
21
|
+
value?: string[];
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Provides operations to call the checkMemberObjects method.
|
|
25
|
+
*/
|
|
26
|
+
export interface CheckMemberObjectsRequestBuilder extends BaseRequestBuilder<CheckMemberObjectsRequestBuilder> {
|
|
27
|
+
/**
|
|
28
|
+
* Invoke action checkMemberObjects
|
|
29
|
+
* @param body The request body
|
|
30
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
31
|
+
* @returns a Promise of CheckMemberObjectsPostResponse
|
|
32
|
+
*/
|
|
33
|
+
post(body: CheckMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<CheckMemberObjectsPostResponse | undefined>;
|
|
34
|
+
/**
|
|
35
|
+
* Invoke action checkMemberObjects
|
|
36
|
+
* @param body The request body
|
|
37
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
38
|
+
* @returns a RequestInformation
|
|
39
|
+
*/
|
|
40
|
+
toPostRequestInformation(body: CheckMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
44
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
45
|
+
* @returns a checkMemberObjectsPostRequestBody
|
|
46
|
+
*/
|
|
47
|
+
export declare function createCheckMemberObjectsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined): typeof deserializeIntoCheckMemberObjectsPostRequestBody;
|
|
48
|
+
/**
|
|
49
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
50
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
51
|
+
* @returns a checkMemberObjectsPostResponse
|
|
52
|
+
*/
|
|
53
|
+
export declare function createCheckMemberObjectsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): typeof deserializeIntoCheckMemberObjectsPostResponse;
|
|
54
|
+
/**
|
|
55
|
+
* The deserialization information for the current model
|
|
56
|
+
* @returns a Record<string, (node: ParseNode) => void>
|
|
57
|
+
*/
|
|
58
|
+
export declare function deserializeIntoCheckMemberObjectsPostRequestBody(checkMemberObjectsPostRequestBody?: CheckMemberObjectsPostRequestBody | undefined): Record<string, (node: ParseNode) => void>;
|
|
59
|
+
/**
|
|
60
|
+
* The deserialization information for the current model
|
|
61
|
+
* @returns a Record<string, (node: ParseNode) => void>
|
|
62
|
+
*/
|
|
63
|
+
export declare function deserializeIntoCheckMemberObjectsPostResponse(checkMemberObjectsPostResponse?: CheckMemberObjectsPostResponse | undefined): Record<string, (node: ParseNode) => void>;
|
|
64
|
+
/**
|
|
65
|
+
* Serializes information the current object
|
|
66
|
+
* @param writer Serialization writer to use to serialize this model
|
|
67
|
+
*/
|
|
68
|
+
export declare function serializeCheckMemberObjectsPostRequestBody(writer: SerializationWriter, checkMemberObjectsPostRequestBody?: CheckMemberObjectsPostRequestBody | undefined): void;
|
|
69
|
+
/**
|
|
70
|
+
* Serializes information the current object
|
|
71
|
+
* @param writer Serialization writer to use to serialize this model
|
|
72
|
+
*/
|
|
73
|
+
export declare function serializeCheckMemberObjectsPostResponse(writer: SerializationWriter, checkMemberObjectsPostResponse?: CheckMemberObjectsPostResponse | undefined): void;
|
|
74
|
+
/**
|
|
75
|
+
* Metadata for all the requests in the request builder.
|
|
76
|
+
*/
|
|
77
|
+
export declare const CheckMemberObjectsRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
78
|
+
/**
|
|
79
|
+
* Uri template for the request builder.
|
|
80
|
+
*/
|
|
81
|
+
export declare const CheckMemberObjectsRequestBuilderUriTemplate = "{+baseurl}/directoryRoles/{directoryRole%2Did}/checkMemberObjects";
|
|
82
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAwG,KAAK,qCAAqC,EAAE,MAAM,gCAAgC,CAAC;AAElM,OAAO,EAAE,KAAK,oBAAoB,EAAE,KAAK,WAAW,EAAqB,KAAK,kBAAkB,EAAE,KAAK,QAAQ,EAAwB,KAAK,SAAS,EAAE,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,KAAK,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAElS,MAAM,WAAW,iCAAkC,SAAQ,oBAAoB,EAAE,WAAW,EAAE,QAAQ;IAClG;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB;AACD,MAAM,WAAW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O,MAAM,gDAAgD,EAAE,gBAa9D,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,2CAA2C,sEAAsE,CAAC"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CheckMemberObjectsRequestBuilderUriTemplate = exports.CheckMemberObjectsRequestBuilderRequestsMetadata = exports.serializeCheckMemberObjectsPostResponse = exports.serializeCheckMemberObjectsPostRequestBody = exports.deserializeIntoCheckMemberObjectsPostResponse = exports.deserializeIntoCheckMemberObjectsPostRequestBody = exports.createCheckMemberObjectsPostResponseFromDiscriminatorValue = exports.createCheckMemberObjectsPostRequestBodyFromDiscriminatorValue = void 0;
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
// Generated by Microsoft Kiota
|
|
7
|
+
const models_1 = require("@microsoft/msgraph-sdk/models/");
|
|
8
|
+
const oDataErrors_1 = require("@microsoft/msgraph-sdk/models/oDataErrors/");
|
|
9
|
+
/**
|
|
10
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
11
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
12
|
+
* @returns a checkMemberObjectsPostRequestBody
|
|
13
|
+
*/
|
|
14
|
+
function createCheckMemberObjectsPostRequestBodyFromDiscriminatorValue(parseNode) {
|
|
15
|
+
return deserializeIntoCheckMemberObjectsPostRequestBody;
|
|
16
|
+
}
|
|
17
|
+
exports.createCheckMemberObjectsPostRequestBodyFromDiscriminatorValue = createCheckMemberObjectsPostRequestBodyFromDiscriminatorValue;
|
|
18
|
+
/**
|
|
19
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
20
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
21
|
+
* @returns a checkMemberObjectsPostResponse
|
|
22
|
+
*/
|
|
23
|
+
function createCheckMemberObjectsPostResponseFromDiscriminatorValue(parseNode) {
|
|
24
|
+
return deserializeIntoCheckMemberObjectsPostResponse;
|
|
25
|
+
}
|
|
26
|
+
exports.createCheckMemberObjectsPostResponseFromDiscriminatorValue = createCheckMemberObjectsPostResponseFromDiscriminatorValue;
|
|
27
|
+
/**
|
|
28
|
+
* The deserialization information for the current model
|
|
29
|
+
* @returns a Record<string, (node: ParseNode) => void>
|
|
30
|
+
*/
|
|
31
|
+
function deserializeIntoCheckMemberObjectsPostRequestBody(checkMemberObjectsPostRequestBody = {}) {
|
|
32
|
+
return {
|
|
33
|
+
"backingStoreEnabled": n => { checkMemberObjectsPostRequestBody.backingStoreEnabled = true; },
|
|
34
|
+
"ids": n => { checkMemberObjectsPostRequestBody.ids = n.getCollectionOfPrimitiveValues(); },
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
exports.deserializeIntoCheckMemberObjectsPostRequestBody = deserializeIntoCheckMemberObjectsPostRequestBody;
|
|
38
|
+
/**
|
|
39
|
+
* The deserialization information for the current model
|
|
40
|
+
* @returns a Record<string, (node: ParseNode) => void>
|
|
41
|
+
*/
|
|
42
|
+
function deserializeIntoCheckMemberObjectsPostResponse(checkMemberObjectsPostResponse = {}) {
|
|
43
|
+
return Object.assign(Object.assign({}, (0, models_1.deserializeIntoBaseCollectionPaginationCountResponse)(checkMemberObjectsPostResponse)), { "value": n => { checkMemberObjectsPostResponse.value = n.getCollectionOfPrimitiveValues(); } });
|
|
44
|
+
}
|
|
45
|
+
exports.deserializeIntoCheckMemberObjectsPostResponse = deserializeIntoCheckMemberObjectsPostResponse;
|
|
46
|
+
/**
|
|
47
|
+
* Serializes information the current object
|
|
48
|
+
* @param writer Serialization writer to use to serialize this model
|
|
49
|
+
*/
|
|
50
|
+
function serializeCheckMemberObjectsPostRequestBody(writer, checkMemberObjectsPostRequestBody = {}) {
|
|
51
|
+
writer.writeCollectionOfPrimitiveValues("ids", checkMemberObjectsPostRequestBody.ids);
|
|
52
|
+
writer.writeAdditionalData(checkMemberObjectsPostRequestBody.additionalData);
|
|
53
|
+
}
|
|
54
|
+
exports.serializeCheckMemberObjectsPostRequestBody = serializeCheckMemberObjectsPostRequestBody;
|
|
55
|
+
/**
|
|
56
|
+
* Serializes information the current object
|
|
57
|
+
* @param writer Serialization writer to use to serialize this model
|
|
58
|
+
*/
|
|
59
|
+
function serializeCheckMemberObjectsPostResponse(writer, checkMemberObjectsPostResponse = {}) {
|
|
60
|
+
(0, models_1.serializeBaseCollectionPaginationCountResponse)(writer, checkMemberObjectsPostResponse);
|
|
61
|
+
writer.writeCollectionOfPrimitiveValues("value", checkMemberObjectsPostResponse.value);
|
|
62
|
+
}
|
|
63
|
+
exports.serializeCheckMemberObjectsPostResponse = serializeCheckMemberObjectsPostResponse;
|
|
64
|
+
/**
|
|
65
|
+
* Metadata for all the requests in the request builder.
|
|
66
|
+
*/
|
|
67
|
+
exports.CheckMemberObjectsRequestBuilderRequestsMetadata = {
|
|
68
|
+
post: {
|
|
69
|
+
responseBodyContentType: "application/json",
|
|
70
|
+
errorMappings: {
|
|
71
|
+
_4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
72
|
+
_5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
73
|
+
},
|
|
74
|
+
adapterMethodName: "sendAsync",
|
|
75
|
+
responseBodyFactory: createCheckMemberObjectsPostResponseFromDiscriminatorValue,
|
|
76
|
+
requestBodyContentType: "application/json",
|
|
77
|
+
requestBodySerializer: serializeCheckMemberObjectsPostRequestBody,
|
|
78
|
+
requestInformationContentSetMethod: "setContentFromParsable",
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* Uri template for the request builder.
|
|
83
|
+
*/
|
|
84
|
+
exports.CheckMemberObjectsRequestBuilderUriTemplate = "{+baseurl}/directoryRoles/{directoryRole%2Did}/checkMemberObjects";
|
|
85
|
+
/* tslint:enable */
|
|
86
|
+
/* eslint-enable */
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { type BaseCollectionPaginationCountResponse } from '@microsoft/msgraph-sdk/models/';
|
|
2
|
+
import { type AdditionalDataHolder, type BackedModel, type BaseRequestBuilder, type Parsable, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter } from '@microsoft/kiota-abstractions';
|
|
3
|
+
/**
|
|
4
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
5
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
6
|
+
* @returns a getMemberGroupsPostRequestBody
|
|
7
|
+
*/
|
|
8
|
+
export declare function createGetMemberGroupsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined): typeof deserializeIntoGetMemberGroupsPostRequestBody;
|
|
9
|
+
/**
|
|
10
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
11
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
12
|
+
* @returns a getMemberGroupsPostResponse
|
|
13
|
+
*/
|
|
14
|
+
export declare function createGetMemberGroupsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): typeof deserializeIntoGetMemberGroupsPostResponse;
|
|
15
|
+
/**
|
|
16
|
+
* The deserialization information for the current model
|
|
17
|
+
* @returns a Record<string, (node: ParseNode) => void>
|
|
18
|
+
*/
|
|
19
|
+
export declare function deserializeIntoGetMemberGroupsPostRequestBody(getMemberGroupsPostRequestBody?: GetMemberGroupsPostRequestBody | undefined): Record<string, (node: ParseNode) => void>;
|
|
20
|
+
/**
|
|
21
|
+
* The deserialization information for the current model
|
|
22
|
+
* @returns a Record<string, (node: ParseNode) => void>
|
|
23
|
+
*/
|
|
24
|
+
export declare function deserializeIntoGetMemberGroupsPostResponse(getMemberGroupsPostResponse?: GetMemberGroupsPostResponse | undefined): Record<string, (node: ParseNode) => void>;
|
|
25
|
+
export interface GetMemberGroupsPostRequestBody extends AdditionalDataHolder, BackedModel, Parsable {
|
|
26
|
+
/**
|
|
27
|
+
* Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
28
|
+
*/
|
|
29
|
+
additionalData?: Record<string, unknown>;
|
|
30
|
+
/**
|
|
31
|
+
* Stores model information.
|
|
32
|
+
*/
|
|
33
|
+
backingStoreEnabled?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* The securityEnabledOnly property
|
|
36
|
+
*/
|
|
37
|
+
securityEnabledOnly?: boolean;
|
|
38
|
+
}
|
|
39
|
+
export interface GetMemberGroupsPostResponse extends BaseCollectionPaginationCountResponse, Parsable {
|
|
40
|
+
/**
|
|
41
|
+
* The value property
|
|
42
|
+
*/
|
|
43
|
+
value?: string[];
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Provides operations to call the getMemberGroups method.
|
|
47
|
+
*/
|
|
48
|
+
export interface GetMemberGroupsRequestBuilder extends BaseRequestBuilder<GetMemberGroupsRequestBuilder> {
|
|
49
|
+
/**
|
|
50
|
+
* Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API.
|
|
51
|
+
* @param body The request body
|
|
52
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
53
|
+
* @returns a Promise of GetMemberGroupsPostResponse
|
|
54
|
+
* @see {@link https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-1.0|Find more info here}
|
|
55
|
+
*/
|
|
56
|
+
post(body: GetMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<GetMemberGroupsPostResponse | undefined>;
|
|
57
|
+
/**
|
|
58
|
+
* Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the Directory_ResultSizeLimitExceeded error code. As a workaround, use the List group transitive memberOf API.
|
|
59
|
+
* @param body The request body
|
|
60
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
61
|
+
* @returns a RequestInformation
|
|
62
|
+
*/
|
|
63
|
+
toPostRequestInformation(body: GetMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Serializes information the current object
|
|
67
|
+
* @param writer Serialization writer to use to serialize this model
|
|
68
|
+
*/
|
|
69
|
+
export declare function serializeGetMemberGroupsPostRequestBody(writer: SerializationWriter, getMemberGroupsPostRequestBody?: GetMemberGroupsPostRequestBody | undefined): void;
|
|
70
|
+
/**
|
|
71
|
+
* Serializes information the current object
|
|
72
|
+
* @param writer Serialization writer to use to serialize this model
|
|
73
|
+
*/
|
|
74
|
+
export declare function serializeGetMemberGroupsPostResponse(writer: SerializationWriter, getMemberGroupsPostResponse?: GetMemberGroupsPostResponse | undefined): void;
|
|
75
|
+
/**
|
|
76
|
+
* Metadata for all the requests in the request builder.
|
|
77
|
+
*/
|
|
78
|
+
export declare const GetMemberGroupsRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
79
|
+
/**
|
|
80
|
+
* Uri template for the request builder.
|
|
81
|
+
*/
|
|
82
|
+
export declare const GetMemberGroupsRequestBuilderUriTemplate = "{+baseurl}/directoryRoles/{directoryRole%2Did}/getMemberGroups";
|
|
83
|
+
//# sourceMappingURL=index.d.ts.map
|