UNPKG

@microsoft/msgraph-beta-sdk-groups

Version:
68 lines 4.98 kB
import { type AdditionalDataHolder, type BackedModel, type BaseRequestBuilder, type Guid, type Parsable, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter } from '@microsoft/kiota-abstractions'; /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {ValidatePropertiesPostRequestBody} */ export declare function createValidatePropertiesPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>); /** * The deserialization information for the current model * @returns {Record<string, (node: ParseNode) => void>} */ export declare function deserializeIntoValidatePropertiesPostRequestBody(validatePropertiesPostRequestBody?: Partial<ValidatePropertiesPostRequestBody> | undefined): Record<string, (node: ParseNode) => void>; /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ export declare function serializeValidatePropertiesPostRequestBody(writer: SerializationWriter, validatePropertiesPostRequestBody?: Partial<ValidatePropertiesPostRequestBody> | undefined | null): void; export interface ValidatePropertiesPostRequestBody extends AdditionalDataHolder, BackedModel, Parsable { /** * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ additionalData?: Record<string, unknown>; /** * Stores model information. */ backingStoreEnabled?: boolean | null; /** * The displayName property */ displayName?: string | null; /** * The mailNickname property */ mailNickname?: string | null; /** * The onBehalfOfUserId property */ onBehalfOfUserId?: Guid | null; } /** * Provides operations to call the validateProperties method. */ export interface ValidatePropertiesRequestBuilder extends BaseRequestBuilder<ValidatePropertiesRequestBuilder> { /** * Validate if a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use the API to determine if a display name or mail nickname is valid before trying to update a Microsoft 365 group. For validating properties before creating a group, use the validateProperties function for directory objects. The following validations are performed for the display name and mail nickname properties: This API returns with the first failure encountered. If one or more properties fail multiple validations, only the property with 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. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @throws {ODataError} error when the service returns a 4XX or 5XX status code * @see {@link https://learn.microsoft.com/graph/api/group-validateproperties?view=graph-rest-beta|Find more info here} */ post(body: ValidatePropertiesPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>; /** * Validate if a Microsoft 365 group's display name or mail nickname complies with naming policies. Clients can use the API to determine if a display name or mail nickname is valid before trying to update a Microsoft 365 group. For validating properties before creating a group, use the validateProperties function for directory objects. The following validations are performed for the display name and mail nickname properties: This API returns with the first failure encountered. If one or more properties fail multiple validations, only the property with 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. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPostRequestInformation(body: ValidatePropertiesPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; } /** * Uri template for the request builder. */ export declare const ValidatePropertiesRequestBuilderUriTemplate = "{+baseurl}/groups/{group%2Did}/validateProperties"; /** * Metadata for all the requests in the request builder. */ export declare const ValidatePropertiesRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map