@microsoft/msgraph-sdk-contracts 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/contracts/count/index.d.ts +40 -0
- package/contracts/count/index.d.ts.map +1 -0
- package/contracts/count/index.js +35 -0
- package/contracts/delta/index.d.ts +83 -0
- package/contracts/delta/index.d.ts.map +1 -0
- package/contracts/delta/index.js +67 -0
- package/contracts/getAvailableExtensionProperties/index.d.ts +83 -0
- package/contracts/getAvailableExtensionProperties/index.d.ts.map +1 -0
- package/contracts/getAvailableExtensionProperties/index.js +86 -0
- package/contracts/getByIds/index.d.ts +87 -0
- package/contracts/getByIds/index.d.ts.map +1 -0
- package/contracts/getByIds/index.js +88 -0
- package/contracts/index.d.ts +116 -0
- package/contracts/index.d.ts.map +1 -0
- package/contracts/index.js +91 -0
- package/contracts/item/checkMemberGroups/index.d.ts +83 -0
- package/contracts/item/checkMemberGroups/index.d.ts.map +1 -0
- package/contracts/item/checkMemberGroups/index.js +86 -0
- package/contracts/item/checkMemberObjects/index.d.ts +82 -0
- package/contracts/item/checkMemberObjects/index.d.ts.map +1 -0
- package/contracts/item/checkMemberObjects/index.js +86 -0
- package/contracts/item/getMemberGroups/index.d.ts +83 -0
- package/contracts/item/getMemberGroups/index.d.ts.map +1 -0
- package/contracts/item/getMemberGroups/index.js +86 -0
- package/contracts/item/getMemberObjects/index.d.ts +83 -0
- package/contracts/item/getMemberObjects/index.d.ts.map +1 -0
- package/contracts/item/getMemberObjects/index.js +86 -0
- package/contracts/item/index.d.ts +96 -0
- package/contracts/item/index.d.ts.map +1 -0
- package/contracts/item/index.js +86 -0
- package/contracts/item/restore/index.d.ts +29 -0
- package/contracts/item/restore/index.d.ts.map +1 -0
- package/contracts/item/restore/index.js +28 -0
- package/contracts/validateProperties/index.d.ts +72 -0
- package/contracts/validateProperties/index.d.ts.map +1 -0
- package/contracts/validateProperties/index.js +64 -0
- package/contractsServiceClient.d.ts +25 -0
- package/contractsServiceClient.d.ts.map +1 -0
- package/contractsServiceClient.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,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetMemberGroupsRequestBuilderUriTemplate = exports.GetMemberGroupsRequestBuilderRequestsMetadata = exports.serializeGetMemberGroupsPostResponse = exports.serializeGetMemberGroupsPostRequestBody = exports.deserializeIntoGetMemberGroupsPostResponse = exports.deserializeIntoGetMemberGroupsPostRequestBody = exports.createGetMemberGroupsPostResponseFromDiscriminatorValue = exports.createGetMemberGroupsPostRequestBodyFromDiscriminatorValue = 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 getMemberGroupsPostRequestBody
|
|
13
|
+
*/
|
|
14
|
+
function createGetMemberGroupsPostRequestBodyFromDiscriminatorValue(parseNode) {
|
|
15
|
+
return deserializeIntoGetMemberGroupsPostRequestBody;
|
|
16
|
+
}
|
|
17
|
+
exports.createGetMemberGroupsPostRequestBodyFromDiscriminatorValue = createGetMemberGroupsPostRequestBodyFromDiscriminatorValue;
|
|
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 getMemberGroupsPostResponse
|
|
22
|
+
*/
|
|
23
|
+
function createGetMemberGroupsPostResponseFromDiscriminatorValue(parseNode) {
|
|
24
|
+
return deserializeIntoGetMemberGroupsPostResponse;
|
|
25
|
+
}
|
|
26
|
+
exports.createGetMemberGroupsPostResponseFromDiscriminatorValue = createGetMemberGroupsPostResponseFromDiscriminatorValue;
|
|
27
|
+
/**
|
|
28
|
+
* The deserialization information for the current model
|
|
29
|
+
* @returns a Record<string, (node: ParseNode) => void>
|
|
30
|
+
*/
|
|
31
|
+
function deserializeIntoGetMemberGroupsPostRequestBody(getMemberGroupsPostRequestBody = {}) {
|
|
32
|
+
return {
|
|
33
|
+
"backingStoreEnabled": n => { getMemberGroupsPostRequestBody.backingStoreEnabled = true; },
|
|
34
|
+
"securityEnabledOnly": n => { getMemberGroupsPostRequestBody.securityEnabledOnly = n.getBooleanValue(); },
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
exports.deserializeIntoGetMemberGroupsPostRequestBody = deserializeIntoGetMemberGroupsPostRequestBody;
|
|
38
|
+
/**
|
|
39
|
+
* The deserialization information for the current model
|
|
40
|
+
* @returns a Record<string, (node: ParseNode) => void>
|
|
41
|
+
*/
|
|
42
|
+
function deserializeIntoGetMemberGroupsPostResponse(getMemberGroupsPostResponse = {}) {
|
|
43
|
+
return Object.assign(Object.assign({}, (0, models_1.deserializeIntoBaseCollectionPaginationCountResponse)(getMemberGroupsPostResponse)), { "value": n => { getMemberGroupsPostResponse.value = n.getCollectionOfPrimitiveValues(); } });
|
|
44
|
+
}
|
|
45
|
+
exports.deserializeIntoGetMemberGroupsPostResponse = deserializeIntoGetMemberGroupsPostResponse;
|
|
46
|
+
/**
|
|
47
|
+
* Serializes information the current object
|
|
48
|
+
* @param writer Serialization writer to use to serialize this model
|
|
49
|
+
*/
|
|
50
|
+
function serializeGetMemberGroupsPostRequestBody(writer, getMemberGroupsPostRequestBody = {}) {
|
|
51
|
+
writer.writeBooleanValue("securityEnabledOnly", getMemberGroupsPostRequestBody.securityEnabledOnly);
|
|
52
|
+
writer.writeAdditionalData(getMemberGroupsPostRequestBody.additionalData);
|
|
53
|
+
}
|
|
54
|
+
exports.serializeGetMemberGroupsPostRequestBody = serializeGetMemberGroupsPostRequestBody;
|
|
55
|
+
/**
|
|
56
|
+
* Serializes information the current object
|
|
57
|
+
* @param writer Serialization writer to use to serialize this model
|
|
58
|
+
*/
|
|
59
|
+
function serializeGetMemberGroupsPostResponse(writer, getMemberGroupsPostResponse = {}) {
|
|
60
|
+
(0, models_1.serializeBaseCollectionPaginationCountResponse)(writer, getMemberGroupsPostResponse);
|
|
61
|
+
writer.writeCollectionOfPrimitiveValues("value", getMemberGroupsPostResponse.value);
|
|
62
|
+
}
|
|
63
|
+
exports.serializeGetMemberGroupsPostResponse = serializeGetMemberGroupsPostResponse;
|
|
64
|
+
/**
|
|
65
|
+
* Metadata for all the requests in the request builder.
|
|
66
|
+
*/
|
|
67
|
+
exports.GetMemberGroupsRequestBuilderRequestsMetadata = {
|
|
68
|
+
post: {
|
|
69
|
+
responseBodyContentType: "application/json",
|
|
70
|
+
errorMappings: {
|
|
71
|
+
_4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
72
|
+
_5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
73
|
+
},
|
|
74
|
+
adapterMethodName: "sendAsync",
|
|
75
|
+
responseBodyFactory: createGetMemberGroupsPostResponseFromDiscriminatorValue,
|
|
76
|
+
requestBodyContentType: "application/json",
|
|
77
|
+
requestBodySerializer: serializeGetMemberGroupsPostRequestBody,
|
|
78
|
+
requestInformationContentSetMethod: "setContentFromParsable",
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* Uri template for the request builder.
|
|
83
|
+
*/
|
|
84
|
+
exports.GetMemberGroupsRequestBuilderUriTemplate = "{+baseurl}/contracts/{contract%2Did}/getMemberGroups";
|
|
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 getMemberObjectsPostRequestBody
|
|
7
|
+
*/
|
|
8
|
+
export declare function createGetMemberObjectsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined): typeof deserializeIntoGetMemberObjectsPostRequestBody;
|
|
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 getMemberObjectsPostResponse
|
|
13
|
+
*/
|
|
14
|
+
export declare function createGetMemberObjectsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): typeof deserializeIntoGetMemberObjectsPostResponse;
|
|
15
|
+
/**
|
|
16
|
+
* The deserialization information for the current model
|
|
17
|
+
* @returns a Record<string, (node: ParseNode) => void>
|
|
18
|
+
*/
|
|
19
|
+
export declare function deserializeIntoGetMemberObjectsPostRequestBody(getMemberObjectsPostRequestBody?: GetMemberObjectsPostRequestBody | 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 deserializeIntoGetMemberObjectsPostResponse(getMemberObjectsPostResponse?: GetMemberObjectsPostResponse | undefined): Record<string, (node: ParseNode) => void>;
|
|
25
|
+
export interface GetMemberObjectsPostRequestBody 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 GetMemberObjectsPostResponse extends BaseCollectionPaginationCountResponse, Parsable {
|
|
40
|
+
/**
|
|
41
|
+
* The value property
|
|
42
|
+
*/
|
|
43
|
+
value?: string[];
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Provides operations to call the getMemberObjects method.
|
|
47
|
+
*/
|
|
48
|
+
export interface GetMemberObjectsRequestBuilder extends BaseRequestBuilder<GetMemberObjectsRequestBuilder> {
|
|
49
|
+
/**
|
|
50
|
+
* Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles.
|
|
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 GetMemberObjectsPostResponse
|
|
54
|
+
* @see {@link https://learn.microsoft.com/graph/api/directoryobject-getmemberobjects?view=graph-rest-1.0|Find more info here}
|
|
55
|
+
*/
|
|
56
|
+
post(body: GetMemberObjectsPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<GetMemberObjectsPostResponse | undefined>;
|
|
57
|
+
/**
|
|
58
|
+
* Return all IDs for the groups, administrative units, and directory roles that a user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. Note: Only users and role-enabled groups can be members of directory roles.
|
|
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: GetMemberObjectsPostRequestBody, 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 serializeGetMemberObjectsPostRequestBody(writer: SerializationWriter, getMemberObjectsPostRequestBody?: GetMemberObjectsPostRequestBody | 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 serializeGetMemberObjectsPostResponse(writer: SerializationWriter, getMemberObjectsPostResponse?: GetMemberObjectsPostResponse | undefined): void;
|
|
75
|
+
/**
|
|
76
|
+
* Metadata for all the requests in the request builder.
|
|
77
|
+
*/
|
|
78
|
+
export declare const GetMemberObjectsRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
79
|
+
/**
|
|
80
|
+
* Uri template for the request builder.
|
|
81
|
+
*/
|
|
82
|
+
export declare const GetMemberObjectsRequestBuilderUriTemplate = "{+baseurl}/contracts/{contract%2Did}/getMemberObjects";
|
|
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;;;;GAIG;AACH,wBAAgB,2DAA2D,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,yDAE3G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AE,+BAA+B,GAAG,SAAiD,GAAI,IAAI,CAGjN;AACD;;;GAGG;AACH,wBAAgB,qCAAqC,CAAC,MAAM,EAAE,mBAAmB,EAAE,4BAA4B,GAAE,4BAA4B,GAAG,SAA8C,GAAI,IAAI,CAGrM;AACD;;GAEG;AACH,eAAO,MAAM,8CAA8C,EAAE,gBAa5D,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,yCAAyC,0DAA0D,CAAC"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetMemberObjectsRequestBuilderUriTemplate = exports.GetMemberObjectsRequestBuilderRequestsMetadata = exports.serializeGetMemberObjectsPostResponse = exports.serializeGetMemberObjectsPostRequestBody = exports.deserializeIntoGetMemberObjectsPostResponse = exports.deserializeIntoGetMemberObjectsPostRequestBody = exports.createGetMemberObjectsPostResponseFromDiscriminatorValue = exports.createGetMemberObjectsPostRequestBodyFromDiscriminatorValue = 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 getMemberObjectsPostRequestBody
|
|
13
|
+
*/
|
|
14
|
+
function createGetMemberObjectsPostRequestBodyFromDiscriminatorValue(parseNode) {
|
|
15
|
+
return deserializeIntoGetMemberObjectsPostRequestBody;
|
|
16
|
+
}
|
|
17
|
+
exports.createGetMemberObjectsPostRequestBodyFromDiscriminatorValue = createGetMemberObjectsPostRequestBodyFromDiscriminatorValue;
|
|
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 getMemberObjectsPostResponse
|
|
22
|
+
*/
|
|
23
|
+
function createGetMemberObjectsPostResponseFromDiscriminatorValue(parseNode) {
|
|
24
|
+
return deserializeIntoGetMemberObjectsPostResponse;
|
|
25
|
+
}
|
|
26
|
+
exports.createGetMemberObjectsPostResponseFromDiscriminatorValue = createGetMemberObjectsPostResponseFromDiscriminatorValue;
|
|
27
|
+
/**
|
|
28
|
+
* The deserialization information for the current model
|
|
29
|
+
* @returns a Record<string, (node: ParseNode) => void>
|
|
30
|
+
*/
|
|
31
|
+
function deserializeIntoGetMemberObjectsPostRequestBody(getMemberObjectsPostRequestBody = {}) {
|
|
32
|
+
return {
|
|
33
|
+
"backingStoreEnabled": n => { getMemberObjectsPostRequestBody.backingStoreEnabled = true; },
|
|
34
|
+
"securityEnabledOnly": n => { getMemberObjectsPostRequestBody.securityEnabledOnly = n.getBooleanValue(); },
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
exports.deserializeIntoGetMemberObjectsPostRequestBody = deserializeIntoGetMemberObjectsPostRequestBody;
|
|
38
|
+
/**
|
|
39
|
+
* The deserialization information for the current model
|
|
40
|
+
* @returns a Record<string, (node: ParseNode) => void>
|
|
41
|
+
*/
|
|
42
|
+
function deserializeIntoGetMemberObjectsPostResponse(getMemberObjectsPostResponse = {}) {
|
|
43
|
+
return Object.assign(Object.assign({}, (0, models_1.deserializeIntoBaseCollectionPaginationCountResponse)(getMemberObjectsPostResponse)), { "value": n => { getMemberObjectsPostResponse.value = n.getCollectionOfPrimitiveValues(); } });
|
|
44
|
+
}
|
|
45
|
+
exports.deserializeIntoGetMemberObjectsPostResponse = deserializeIntoGetMemberObjectsPostResponse;
|
|
46
|
+
/**
|
|
47
|
+
* Serializes information the current object
|
|
48
|
+
* @param writer Serialization writer to use to serialize this model
|
|
49
|
+
*/
|
|
50
|
+
function serializeGetMemberObjectsPostRequestBody(writer, getMemberObjectsPostRequestBody = {}) {
|
|
51
|
+
writer.writeBooleanValue("securityEnabledOnly", getMemberObjectsPostRequestBody.securityEnabledOnly);
|
|
52
|
+
writer.writeAdditionalData(getMemberObjectsPostRequestBody.additionalData);
|
|
53
|
+
}
|
|
54
|
+
exports.serializeGetMemberObjectsPostRequestBody = serializeGetMemberObjectsPostRequestBody;
|
|
55
|
+
/**
|
|
56
|
+
* Serializes information the current object
|
|
57
|
+
* @param writer Serialization writer to use to serialize this model
|
|
58
|
+
*/
|
|
59
|
+
function serializeGetMemberObjectsPostResponse(writer, getMemberObjectsPostResponse = {}) {
|
|
60
|
+
(0, models_1.serializeBaseCollectionPaginationCountResponse)(writer, getMemberObjectsPostResponse);
|
|
61
|
+
writer.writeCollectionOfPrimitiveValues("value", getMemberObjectsPostResponse.value);
|
|
62
|
+
}
|
|
63
|
+
exports.serializeGetMemberObjectsPostResponse = serializeGetMemberObjectsPostResponse;
|
|
64
|
+
/**
|
|
65
|
+
* Metadata for all the requests in the request builder.
|
|
66
|
+
*/
|
|
67
|
+
exports.GetMemberObjectsRequestBuilderRequestsMetadata = {
|
|
68
|
+
post: {
|
|
69
|
+
responseBodyContentType: "application/json",
|
|
70
|
+
errorMappings: {
|
|
71
|
+
_4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
72
|
+
_5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
73
|
+
},
|
|
74
|
+
adapterMethodName: "sendAsync",
|
|
75
|
+
responseBodyFactory: createGetMemberObjectsPostResponseFromDiscriminatorValue,
|
|
76
|
+
requestBodyContentType: "application/json",
|
|
77
|
+
requestBodySerializer: serializeGetMemberObjectsPostRequestBody,
|
|
78
|
+
requestInformationContentSetMethod: "setContentFromParsable",
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* Uri template for the request builder.
|
|
83
|
+
*/
|
|
84
|
+
exports.GetMemberObjectsRequestBuilderUriTemplate = "{+baseurl}/contracts/{contract%2Did}/getMemberObjects";
|
|
85
|
+
/* tslint:enable */
|
|
86
|
+
/* eslint-enable */
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { type Contract } from '@microsoft/msgraph-sdk/models/';
|
|
2
|
+
import { type CheckMemberGroupsRequestBuilder } from './checkMemberGroups/';
|
|
3
|
+
import { type CheckMemberObjectsRequestBuilder } from './checkMemberObjects/';
|
|
4
|
+
import { type GetMemberGroupsRequestBuilder } from './getMemberGroups/';
|
|
5
|
+
import { type GetMemberObjectsRequestBuilder } from './getMemberObjects/';
|
|
6
|
+
import { type RestoreRequestBuilder } from './restore/';
|
|
7
|
+
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
|
|
8
|
+
/**
|
|
9
|
+
* Provides operations to manage the collection of contract entities.
|
|
10
|
+
*/
|
|
11
|
+
export interface ContractItemRequestBuilder extends BaseRequestBuilder<ContractItemRequestBuilder> {
|
|
12
|
+
/**
|
|
13
|
+
* Provides operations to call the checkMemberGroups method.
|
|
14
|
+
*/
|
|
15
|
+
get checkMemberGroups(): CheckMemberGroupsRequestBuilder;
|
|
16
|
+
/**
|
|
17
|
+
* Provides operations to call the checkMemberObjects method.
|
|
18
|
+
*/
|
|
19
|
+
get checkMemberObjects(): CheckMemberObjectsRequestBuilder;
|
|
20
|
+
/**
|
|
21
|
+
* Provides operations to call the getMemberGroups method.
|
|
22
|
+
*/
|
|
23
|
+
get getMemberGroups(): GetMemberGroupsRequestBuilder;
|
|
24
|
+
/**
|
|
25
|
+
* Provides operations to call the getMemberObjects method.
|
|
26
|
+
*/
|
|
27
|
+
get getMemberObjects(): GetMemberObjectsRequestBuilder;
|
|
28
|
+
/**
|
|
29
|
+
* Provides operations to call the restore method.
|
|
30
|
+
*/
|
|
31
|
+
get restore(): RestoreRequestBuilder;
|
|
32
|
+
/**
|
|
33
|
+
* Delete entity from contracts
|
|
34
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
35
|
+
*/
|
|
36
|
+
delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
|
|
37
|
+
/**
|
|
38
|
+
* Retrieve the properties and relationships of contract object.
|
|
39
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
40
|
+
* @returns a Promise of Contract
|
|
41
|
+
* @see {@link https://learn.microsoft.com/graph/api/contract-get?view=graph-rest-1.0|Find more info here}
|
|
42
|
+
*/
|
|
43
|
+
get(requestConfiguration?: RequestConfiguration<ContractItemRequestBuilderGetQueryParameters> | undefined): Promise<Contract | undefined>;
|
|
44
|
+
/**
|
|
45
|
+
* Update entity in contracts
|
|
46
|
+
* @param body The request body
|
|
47
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
48
|
+
* @returns a Promise of Contract
|
|
49
|
+
*/
|
|
50
|
+
patch(body: Contract, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<Contract | undefined>;
|
|
51
|
+
/**
|
|
52
|
+
* Delete entity from contracts
|
|
53
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
54
|
+
* @returns a RequestInformation
|
|
55
|
+
*/
|
|
56
|
+
toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
57
|
+
/**
|
|
58
|
+
* Retrieve the properties and relationships of contract object.
|
|
59
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
60
|
+
* @returns a RequestInformation
|
|
61
|
+
*/
|
|
62
|
+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<ContractItemRequestBuilderGetQueryParameters> | undefined): RequestInformation;
|
|
63
|
+
/**
|
|
64
|
+
* Update entity in contracts
|
|
65
|
+
* @param body The request body
|
|
66
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
67
|
+
* @returns a RequestInformation
|
|
68
|
+
*/
|
|
69
|
+
toPatchRequestInformation(body: Contract, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Retrieve the properties and relationships of contract object.
|
|
73
|
+
*/
|
|
74
|
+
export interface ContractItemRequestBuilderGetQueryParameters {
|
|
75
|
+
/**
|
|
76
|
+
* Expand related entities
|
|
77
|
+
*/
|
|
78
|
+
expand?: string[];
|
|
79
|
+
/**
|
|
80
|
+
* Select properties to be returned
|
|
81
|
+
*/
|
|
82
|
+
select?: string[];
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Metadata for all the navigation properties in the request builder.
|
|
86
|
+
*/
|
|
87
|
+
export declare const ContractItemRequestBuilderNavigationMetadata: Record<Exclude<keyof ContractItemRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
|
|
88
|
+
/**
|
|
89
|
+
* Metadata for all the requests in the request builder.
|
|
90
|
+
*/
|
|
91
|
+
export declare const ContractItemRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
92
|
+
/**
|
|
93
|
+
* Uri template for the request builder.
|
|
94
|
+
*/
|
|
95
|
+
export declare const ContractItemRequestBuilderUriTemplate = "{+baseurl}/contracts/{contract%2Did}{?%24select,%24expand}";
|
|
96
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EAA2D,KAAK,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAExH,OAAO,EAA+F,KAAK,+BAA+B,EAAE,MAAM,sBAAsB,CAAC;AACzK,OAAO,EAAiG,KAAK,gCAAgC,EAAE,MAAM,uBAAuB,CAAC;AAC7K,OAAO,EAA2F,KAAK,6BAA6B,EAAE,MAAM,oBAAoB,CAAC;AACjK,OAAO,EAA6F,KAAK,8BAA8B,EAAE,MAAM,qBAAqB,CAAC;AACrK,OAAO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KG;IACF,yBAAyB,CAAC,IAAI,EAAE,QAAQ,EAAE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CACpI;AACD;;GAEG;AACH,MAAM,WAAW,4CAA4C;IACzD;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AAQD;;GAEG;AACH,eAAO,MAAM,4CAA4C,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,0BAA0B,EAAE,kCAAkC,CAAC,EAAE,kBAAkB,CAqBlK,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,0CAA0C,EAAE,gBA+BxD,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,qCAAqC,+DAA+D,CAAC"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ContractItemRequestBuilderUriTemplate = exports.ContractItemRequestBuilderRequestsMetadata = exports.ContractItemRequestBuilderNavigationMetadata = 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 checkMemberGroups_1 = require("./checkMemberGroups/");
|
|
10
|
+
const checkMemberObjects_1 = require("./checkMemberObjects/");
|
|
11
|
+
const getMemberGroups_1 = require("./getMemberGroups/");
|
|
12
|
+
const getMemberObjects_1 = require("./getMemberObjects/");
|
|
13
|
+
const restore_1 = require("./restore/");
|
|
14
|
+
/**
|
|
15
|
+
* Mapper for query parameters from symbol name to serialization name represented as a constant.
|
|
16
|
+
*/
|
|
17
|
+
const ContractItemRequestBuilderGetQueryParametersMapper = {
|
|
18
|
+
"expand": "%24expand",
|
|
19
|
+
"select": "%24select",
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Metadata for all the navigation properties in the request builder.
|
|
23
|
+
*/
|
|
24
|
+
exports.ContractItemRequestBuilderNavigationMetadata = {
|
|
25
|
+
checkMemberGroups: {
|
|
26
|
+
uriTemplate: checkMemberGroups_1.CheckMemberGroupsRequestBuilderUriTemplate,
|
|
27
|
+
requestsMetadata: checkMemberGroups_1.CheckMemberGroupsRequestBuilderRequestsMetadata,
|
|
28
|
+
},
|
|
29
|
+
checkMemberObjects: {
|
|
30
|
+
uriTemplate: checkMemberObjects_1.CheckMemberObjectsRequestBuilderUriTemplate,
|
|
31
|
+
requestsMetadata: checkMemberObjects_1.CheckMemberObjectsRequestBuilderRequestsMetadata,
|
|
32
|
+
},
|
|
33
|
+
getMemberGroups: {
|
|
34
|
+
uriTemplate: getMemberGroups_1.GetMemberGroupsRequestBuilderUriTemplate,
|
|
35
|
+
requestsMetadata: getMemberGroups_1.GetMemberGroupsRequestBuilderRequestsMetadata,
|
|
36
|
+
},
|
|
37
|
+
getMemberObjects: {
|
|
38
|
+
uriTemplate: getMemberObjects_1.GetMemberObjectsRequestBuilderUriTemplate,
|
|
39
|
+
requestsMetadata: getMemberObjects_1.GetMemberObjectsRequestBuilderRequestsMetadata,
|
|
40
|
+
},
|
|
41
|
+
restore: {
|
|
42
|
+
uriTemplate: restore_1.RestoreRequestBuilderUriTemplate,
|
|
43
|
+
requestsMetadata: restore_1.RestoreRequestBuilderRequestsMetadata,
|
|
44
|
+
},
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Metadata for all the requests in the request builder.
|
|
48
|
+
*/
|
|
49
|
+
exports.ContractItemRequestBuilderRequestsMetadata = {
|
|
50
|
+
delete: {
|
|
51
|
+
responseBodyContentType: "application/json",
|
|
52
|
+
errorMappings: {
|
|
53
|
+
_4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
54
|
+
_5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
55
|
+
},
|
|
56
|
+
adapterMethodName: "sendNoResponseContentAsync",
|
|
57
|
+
},
|
|
58
|
+
get: {
|
|
59
|
+
responseBodyContentType: "application/json",
|
|
60
|
+
errorMappings: {
|
|
61
|
+
_4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
62
|
+
_5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
63
|
+
},
|
|
64
|
+
adapterMethodName: "sendAsync",
|
|
65
|
+
responseBodyFactory: models_1.createContractFromDiscriminatorValue,
|
|
66
|
+
queryParametersMapper: ContractItemRequestBuilderGetQueryParametersMapper,
|
|
67
|
+
},
|
|
68
|
+
patch: {
|
|
69
|
+
responseBodyContentType: "application/json",
|
|
70
|
+
errorMappings: {
|
|
71
|
+
_4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
72
|
+
_5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
73
|
+
},
|
|
74
|
+
adapterMethodName: "sendAsync",
|
|
75
|
+
responseBodyFactory: models_1.createContractFromDiscriminatorValue,
|
|
76
|
+
requestBodyContentType: "application/json",
|
|
77
|
+
requestBodySerializer: models_1.serializeContract,
|
|
78
|
+
requestInformationContentSetMethod: "setContentFromParsable",
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* Uri template for the request builder.
|
|
83
|
+
*/
|
|
84
|
+
exports.ContractItemRequestBuilderUriTemplate = "{+baseurl}/contracts/{contract%2Did}{?%24select,%24expand}";
|
|
85
|
+
/* tslint:enable */
|
|
86
|
+
/* eslint-enable */
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type DirectoryObject } from '@microsoft/msgraph-sdk/models/';
|
|
2
|
+
import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
|
|
3
|
+
/**
|
|
4
|
+
* Provides operations to call the restore method.
|
|
5
|
+
*/
|
|
6
|
+
export interface RestoreRequestBuilder extends BaseRequestBuilder<RestoreRequestBuilder> {
|
|
7
|
+
/**
|
|
8
|
+
* Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.
|
|
9
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
10
|
+
* @returns a Promise of DirectoryObject
|
|
11
|
+
* @see {@link https://learn.microsoft.com/graph/api/directory-deleteditems-restore?view=graph-rest-1.0|Find more info here}
|
|
12
|
+
*/
|
|
13
|
+
post(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<DirectoryObject | undefined>;
|
|
14
|
+
/**
|
|
15
|
+
* Restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.
|
|
16
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
17
|
+
* @returns a RequestInformation
|
|
18
|
+
*/
|
|
19
|
+
toPostRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Metadata for all the requests in the request builder.
|
|
23
|
+
*/
|
|
24
|
+
export declare const RestoreRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
25
|
+
/**
|
|
26
|
+
* Uri template for the request builder.
|
|
27
|
+
*/
|
|
28
|
+
export declare const RestoreRequestBuilderUriTemplate = "{+baseurl}/contracts/{contract%2Did}/restore";
|
|
29
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EAA+C,KAAK,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAEnH,OAAO,EAAE,KAAK,kBAAkB,EAAuC,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAExL;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,kBAAkB,CAAC,qBAAqB,CAAC;IACpF;;;;;OAKG;IACF,IAAI,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,OAAO,CAAC,eAAe,GAAG,SAAS,CAAC,CAAC;IAC9G;;;;OAIG;IACF,wBAAwB,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,GAAG,SAAS,GAAI,kBAAkB,CAAC;CACnH;AACD;;GAEG;AACH,eAAO,MAAM,qCAAqC,EAAE,gBAUnD,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,gCAAgC,iDAAiD,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RestoreRequestBuilderUriTemplate = exports.RestoreRequestBuilderRequestsMetadata = 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
|
+
* Metadata for all the requests in the request builder.
|
|
11
|
+
*/
|
|
12
|
+
exports.RestoreRequestBuilderRequestsMetadata = {
|
|
13
|
+
post: {
|
|
14
|
+
responseBodyContentType: "application/json",
|
|
15
|
+
errorMappings: {
|
|
16
|
+
_4XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
17
|
+
_5XX: oDataErrors_1.createODataErrorFromDiscriminatorValue,
|
|
18
|
+
},
|
|
19
|
+
adapterMethodName: "sendAsync",
|
|
20
|
+
responseBodyFactory: models_1.createDirectoryObjectFromDiscriminatorValue,
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Uri template for the request builder.
|
|
25
|
+
*/
|
|
26
|
+
exports.RestoreRequestBuilderUriTemplate = "{+baseurl}/contracts/{contract%2Did}/restore";
|
|
27
|
+
/* tslint:enable */
|
|
28
|
+
/* eslint-enable */
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { type AdditionalDataHolder, type BackedModel, type BaseRequestBuilder, type Parsable, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter } from '@microsoft/kiota-abstractions';
|
|
2
|
+
import { type Guid } from 'guid-typescript';
|
|
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 validatePropertiesPostRequestBody
|
|
7
|
+
*/
|
|
8
|
+
export declare function createValidatePropertiesPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined): typeof deserializeIntoValidatePropertiesPostRequestBody;
|
|
9
|
+
/**
|
|
10
|
+
* The deserialization information for the current model
|
|
11
|
+
* @returns a Record<string, (node: ParseNode) => void>
|
|
12
|
+
*/
|
|
13
|
+
export declare function deserializeIntoValidatePropertiesPostRequestBody(validatePropertiesPostRequestBody?: ValidatePropertiesPostRequestBody | undefined): Record<string, (node: ParseNode) => void>;
|
|
14
|
+
/**
|
|
15
|
+
* Serializes information the current object
|
|
16
|
+
* @param writer Serialization writer to use to serialize this model
|
|
17
|
+
*/
|
|
18
|
+
export declare function serializeValidatePropertiesPostRequestBody(writer: SerializationWriter, validatePropertiesPostRequestBody?: ValidatePropertiesPostRequestBody | undefined): void;
|
|
19
|
+
export interface ValidatePropertiesPostRequestBody extends AdditionalDataHolder, BackedModel, Parsable {
|
|
20
|
+
/**
|
|
21
|
+
* Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
22
|
+
*/
|
|
23
|
+
additionalData?: Record<string, unknown>;
|
|
24
|
+
/**
|
|
25
|
+
* Stores model information.
|
|
26
|
+
*/
|
|
27
|
+
backingStoreEnabled?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* The displayName property
|
|
30
|
+
*/
|
|
31
|
+
displayName?: string;
|
|
32
|
+
/**
|
|
33
|
+
* The entityType property
|
|
34
|
+
*/
|
|
35
|
+
entityType?: string;
|
|
36
|
+
/**
|
|
37
|
+
* The mailNickname property
|
|
38
|
+
*/
|
|
39
|
+
mailNickname?: string;
|
|
40
|
+
/**
|
|
41
|
+
* The onBehalfOfUserId property
|
|
42
|
+
*/
|
|
43
|
+
onBehalfOfUserId?: Guid;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Provides operations to call the validateProperties method.
|
|
47
|
+
*/
|
|
48
|
+
export interface ValidatePropertiesRequestBuilder extends BaseRequestBuilder<ValidatePropertiesRequestBuilder> {
|
|
49
|
+
/**
|
|
50
|
+
* Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy.
|
|
51
|
+
* @param body The request body
|
|
52
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
53
|
+
* @see {@link https://learn.microsoft.com/graph/api/directoryobject-validateproperties?view=graph-rest-1.0|Find more info here}
|
|
54
|
+
*/
|
|
55
|
+
post(body: ValidatePropertiesPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
|
|
56
|
+
/**
|
|
57
|
+
* Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group. To validate the properties of an existing group, use the group: validateProperties function. The following policy validations are performed for the display name and mail nickname properties:1. Validate the prefix and suffix naming policy2. Validate the custom banned words policy3. Validate that the mail nickname is unique This API only returns the first validation failure that is encountered. If the properties fail multiple validations, only the first validation failure is returned. However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy. To learn more about configuring naming policies, see Configure naming policy.
|
|
58
|
+
* @param body The request body
|
|
59
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
60
|
+
* @returns a RequestInformation
|
|
61
|
+
*/
|
|
62
|
+
toPostRequestInformation(body: ValidatePropertiesPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Metadata for all the requests in the request builder.
|
|
66
|
+
*/
|
|
67
|
+
export declare const ValidatePropertiesRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
68
|
+
/**
|
|
69
|
+
* Uri template for the request builder.
|
|
70
|
+
*/
|
|
71
|
+
export declare const ValidatePropertiesRequestBuilderUriTemplate = "{+baseurl}/contracts/validateProperties";
|
|
72
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAIA,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,EA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