@microsoft/msgraph-beta-sdk-users
Version:
Users fluent API for Microsoft Graph
125 lines • 7.15 kB
TypeScript
import { type User, type UserCollectionResponse } from '@microsoft/msgraph-beta-sdk/models/index.js';
import { type CountRequestBuilder } from './count/index.js';
import { type DeltaRequestBuilder } from './delta/index.js';
import { type GetByIdsRequestBuilder } from './getByIds/index.js';
import { type GetManagedAppBlockedUsersRequestBuilder } from './getManagedAppBlockedUsers/index.js';
import { type GetUserOwnedObjectsRequestBuilder } from './getUserOwnedObjects/index.js';
import { type UserItemRequestBuilder } from './item/index.js';
import { type ValidatePasswordRequestBuilder } from './validatePassword/index.js';
import { type ValidatePropertiesRequestBuilder } from './validateProperties/index.js';
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
/**
* Provides operations to manage the collection of user entities.
*/
export interface UsersRequestBuilder extends BaseRequestBuilder<UsersRequestBuilder> {
/**
* Provides operations to count the resources in the collection.
*/
get count(): CountRequestBuilder;
/**
* Provides operations to call the delta method.
*/
get delta(): DeltaRequestBuilder;
/**
* Provides operations to call the getByIds method.
*/
get getByIds(): GetByIdsRequestBuilder;
/**
* Provides operations to call the getManagedAppBlockedUsers method.
*/
get getManagedAppBlockedUsers(): GetManagedAppBlockedUsersRequestBuilder;
/**
* Provides operations to call the getUserOwnedObjects method.
*/
get getUserOwnedObjects(): GetUserOwnedObjectsRequestBuilder;
/**
* Provides operations to call the validatePassword method.
*/
get validatePassword(): ValidatePasswordRequestBuilder;
/**
* Provides operations to call the validateProperties method.
*/
get validateProperties(): ValidatePropertiesRequestBuilder;
/**
* Provides operations to manage the collection of user entities.
* @param userId The unique identifier of user
* @returns {UserItemRequestBuilder}
*/
byUserId(userId: string): UserItemRequestBuilder;
/**
* Retrieve a list of user objects. This operation returns by default only a subset of the more commonly used properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the user and specify the properties in a $select OData query option.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<UserCollectionResponse>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
* @see {@link https://learn.microsoft.com/graph/api/user-list?view=graph-rest-beta|Find more info here}
*/
get(requestConfiguration?: RequestConfiguration<UsersRequestBuilderGetQueryParameters> | undefined): Promise<UserCollectionResponse | undefined>;
/**
* Create a new user.The request body contains the user to create. At a minimum, you must specify the required properties for the user. You can optionally specify any other writable properties. This operation returns by default only a subset of the properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option.
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<User>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
* @see {@link https://learn.microsoft.com/graph/api/user-post-users?view=graph-rest-beta|Find more info here}
*/
post(body: User, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<User | undefined>;
/**
* Retrieve a list of user objects. This operation returns by default only a subset of the more commonly used properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the user and specify the properties in a $select OData query option.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toGetRequestInformation(requestConfiguration?: RequestConfiguration<UsersRequestBuilderGetQueryParameters> | undefined): RequestInformation;
/**
* Create a new user.The request body contains the user to create. At a minimum, you must specify the required properties for the user. You can optionally specify any other writable properties. This operation returns by default only a subset of the properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation and specify the properties in a $select OData query option.
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toPostRequestInformation(body: User, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
}
/**
* Retrieve a list of user objects. This operation returns by default only a subset of the more commonly used properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the user and specify the properties in a $select OData query option.
*/
export interface UsersRequestBuilderGetQueryParameters {
/**
* Include count of items
*/
count?: boolean;
/**
* Expand related entities
*/
expand?: string[];
/**
* Filter items by property values
*/
filter?: string;
/**
* Order items by property values
*/
orderby?: string[];
/**
* Search items by search phrases
*/
search?: string;
/**
* Select properties to be returned
*/
select?: string[];
/**
* Show only the first n items
*/
top?: number;
}
/**
* Uri template for the request builder.
*/
export declare const UsersRequestBuilderUriTemplate = "{+baseurl}/users{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24top}";
/**
* Metadata for all the navigation properties in the request builder.
*/
export declare const UsersRequestBuilderNavigationMetadata: Record<Exclude<keyof UsersRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
/**
* Metadata for all the requests in the request builder.
*/
export declare const UsersRequestBuilderRequestsMetadata: RequestsMetadata;
//# sourceMappingURL=index.d.ts.map