UNPKG

@microsoft/msgraph-beta-sdk-organization

Version:
130 lines 7.79 kB
import { type Organization } from '@microsoft/msgraph-beta-sdk/models/index.js'; import { type BrandingRequestBuilder } from './branding/index.js'; import { type CertificateBasedAuthConfigurationRequestBuilder } from './certificateBasedAuthConfiguration/index.js'; import { type CheckMemberGroupsRequestBuilder } from './checkMemberGroups/index.js'; import { type CheckMemberObjectsRequestBuilder } from './checkMemberObjects/index.js'; import { type ExtensionsRequestBuilder } from './extensions/index.js'; import { type GetMemberGroupsRequestBuilder } from './getMemberGroups/index.js'; import { type GetMemberObjectsRequestBuilder } from './getMemberObjects/index.js'; import { type PartnerInformationRequestBuilder } from './partnerInformation/index.js'; import { type RestoreRequestBuilder } from './restore/index.js'; import { type SetMobileDeviceManagementAuthorityRequestBuilder } from './setMobileDeviceManagementAuthority/index.js'; import { type SettingsRequestBuilder } from './settings/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 organization entities. */ export interface OrganizationItemRequestBuilder extends BaseRequestBuilder<OrganizationItemRequestBuilder> { /** * Provides operations to manage the branding property of the microsoft.graph.organization entity. */ get branding(): BrandingRequestBuilder; /** * Provides operations to manage the certificateBasedAuthConfiguration property of the microsoft.graph.organization entity. */ get certificateBasedAuthConfiguration(): CertificateBasedAuthConfigurationRequestBuilder; /** * Provides operations to call the checkMemberGroups method. */ get checkMemberGroups(): CheckMemberGroupsRequestBuilder; /** * Provides operations to call the checkMemberObjects method. */ get checkMemberObjects(): CheckMemberObjectsRequestBuilder; /** * Provides operations to manage the extensions property of the microsoft.graph.organization entity. */ get extensions(): ExtensionsRequestBuilder; /** * Provides operations to call the getMemberGroups method. */ get getMemberGroups(): GetMemberGroupsRequestBuilder; /** * Provides operations to call the getMemberObjects method. */ get getMemberObjects(): GetMemberObjectsRequestBuilder; /** * Provides operations to manage the partnerInformation property of the microsoft.graph.organization entity. */ get partnerInformation(): PartnerInformationRequestBuilder; /** * Provides operations to call the restore method. */ get restore(): RestoreRequestBuilder; /** * Provides operations to call the setMobileDeviceManagementAuthority method. */ get setMobileDeviceManagementAuthority(): SetMobileDeviceManagementAuthorityRequestBuilder; /** * Provides operations to manage the settings property of the microsoft.graph.organization entity. */ get settings(): SettingsRequestBuilder; /** * Delete entity from organization * @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 */ delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>; /** * Get the properties and relationships of the currently authenticated organization. Since the organization resource supports extensions, you can also use the GET operation to get custom properties and extension data in an organization instance. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<Organization>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code * @see {@link https://learn.microsoft.com/graph/api/organization-get?view=graph-rest-beta|Find more info here} */ get(requestConfiguration?: RequestConfiguration<OrganizationItemRequestBuilderGetQueryParameters> | undefined): Promise<Organization | undefined>; /** * Update the properties of the currently authenticated organization. In this case, organization is defined as a collection of exactly one record, and so its ID must be specified in the request. The ID is also known as the tenantId of the organization. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<Organization>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code * @see {@link https://learn.microsoft.com/graph/api/organization-update?view=graph-rest-beta|Find more info here} */ patch(body: Organization, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<Organization | undefined>; /** * Delete entity from organization * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; /** * Get the properties and relationships of the currently authenticated organization. Since the organization resource supports extensions, you can also use the GET operation to get custom properties and extension data in an organization instance. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration<OrganizationItemRequestBuilderGetQueryParameters> | undefined): RequestInformation; /** * Update the properties of the currently authenticated organization. In this case, organization is defined as a collection of exactly one record, and so its ID must be specified in the request. The ID is also known as the tenantId of the organization. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPatchRequestInformation(body: Organization, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; } /** * Get the properties and relationships of the currently authenticated organization. Since the organization resource supports extensions, you can also use the GET operation to get custom properties and extension data in an organization instance. */ export interface OrganizationItemRequestBuilderGetQueryParameters { /** * Expand related entities */ expand?: string[]; /** * Select properties to be returned */ select?: string[]; } /** * Uri template for the request builder. */ export declare const OrganizationItemRequestBuilderUriTemplate = "{+baseurl}/organization/{organization%2Did}{?%24expand,%24select}"; /** * Metadata for all the navigation properties in the request builder. */ export declare const OrganizationItemRequestBuilderNavigationMetadata: Record<Exclude<keyof OrganizationItemRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>; /** * Metadata for all the requests in the request builder. */ export declare const OrganizationItemRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map