Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5,953 changes: 5,951 additions & 2 deletions packages/kiota-dom-export.txt

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/kiota-lock.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"descriptionHash": "7527A9B65A0E39FA6095D539289C66C5DF8E8C306FD9763BAE65B23714BE7B923786D3863BC536341AB079BAF36C14EF5E5763B5F6EDE9EBF58F10343C913664",
"descriptionHash": "793F8F6E51013A63CC9E20C4818887CD9F1D782041A82141E4EEB98ABD3B7511D9F7DDA5A504B6CDAC464DD651895A78DDF749C03845E28D132B001A09D600AD",
"descriptionLocation": "../../msgraph-metadata/clean_v10_openapi/openapi.yaml",
"lockFileVersion": "1.0.0",
"kiotaVersion": "1.34.1",
Expand Down
10 changes: 10 additions & 0 deletions packages/msgraph-sdk-directory/directory/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ import { PublicKeyInfrastructureRequestBuilderNavigationMetadata, PublicKeyInfra
// @ts-ignore
import { RecoveryRequestBuilderNavigationMetadata, RecoveryRequestBuilderRequestsMetadata, type RecoveryRequestBuilder } from './recovery/index.js';
// @ts-ignore
import { RemoteTenantGroupsRequestBuilderNavigationMetadata, RemoteTenantGroupsRequestBuilderRequestsMetadata, type RemoteTenantGroupsRequestBuilder } from './remoteTenantGroups/index.js';
// @ts-ignore
import { SubscriptionsRequestBuilderNavigationMetadata, SubscriptionsRequestBuilderRequestsMetadata, type SubscriptionsRequestBuilder } from './subscriptions/index.js';
// @ts-ignore
import { SubscriptionsWithCommerceSubscriptionIdRequestBuilderRequestsMetadata, type SubscriptionsWithCommerceSubscriptionIdRequestBuilder } from './subscriptionsWithCommerceSubscriptionId/index.js';
Expand Down Expand Up @@ -70,6 +72,10 @@ export interface DirectoryRequestBuilder extends BaseRequestBuilder<DirectoryReq
* Provides operations to manage the recovery property of the microsoft.graph.directory entity.
*/
get recovery(): RecoveryRequestBuilder;
/**
* Provides operations to manage the remoteTenantGroups property of the microsoft.graph.directory entity.
*/
get remoteTenantGroups(): RemoteTenantGroupsRequestBuilder;
/**
* Provides operations to manage the subscriptions property of the microsoft.graph.directory entity.
*/
Expand Down Expand Up @@ -177,6 +183,10 @@ export const DirectoryRequestBuilderNavigationMetadata: Record<Exclude<keyof Dir
requestsMetadata: RecoveryRequestBuilderRequestsMetadata,
navigationMetadata: RecoveryRequestBuilderNavigationMetadata,
},
remoteTenantGroups: {
requestsMetadata: RemoteTenantGroupsRequestBuilderRequestsMetadata,
navigationMetadata: RemoteTenantGroupsRequestBuilderNavigationMetadata,
},
subscriptions: {
requestsMetadata: SubscriptionsRequestBuilderRequestsMetadata,
navigationMetadata: SubscriptionsRequestBuilderNavigationMetadata,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
/* tslint:disable */
/* eslint-disable */
// Generated by Microsoft Kiota
// @ts-ignore
import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js';
// @ts-ignore
import { type BaseRequestBuilder, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';

/**
* Provides operations to count the resources in the collection.
*/
export interface CountRequestBuilder extends BaseRequestBuilder<CountRequestBuilder> {
/**
* Get the number of the resource
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<number>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
* @deprecated as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07
*/
get(requestConfiguration?: RequestConfiguration<CountRequestBuilderGetQueryParameters> | undefined) : Promise<number | undefined>;
/**
* Get the number of the resource
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
* @deprecated as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07
*/
toGetRequestInformation(requestConfiguration?: RequestConfiguration<CountRequestBuilderGetQueryParameters> | undefined) : RequestInformation;
}
/**
* Get the number of the resource
*/
export interface CountRequestBuilderGetQueryParameters {
/**
* Filter items by property values
*/
filter?: string;
/**
* Search items by search phrases
*/
search?: string;
}
/**
* Uri template for the request builder.
*/
export const CountRequestBuilderUriTemplate = "{+baseurl}/directory/remoteTenantGroups/$count{?%24filter,%24search}";
/**
* Mapper for query parameters from symbol name to serialization name represented as a constant.
*/
const CountRequestBuilderGetQueryParametersMapper: Record<string, string> = {
"filter": "%24filter",
"search": "%24search",
};
/**
* Metadata for all the requests in the request builder.
*/
export const CountRequestBuilderRequestsMetadata: RequestsMetadata = {
get: {
uriTemplate: CountRequestBuilderUriTemplate,
responseBodyContentType: "text/plain;q=0.9",
errorMappings: {
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
},
adapterMethodName: "sendPrimitive",
responseBodyFactory: "number",
queryParametersMapper: CountRequestBuilderGetQueryParametersMapper,
},
};
/* tslint:enable */
/* eslint-enable */
159 changes: 159 additions & 0 deletions packages/msgraph-sdk-directory/directory/remoteTenantGroups/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
/* tslint:disable */
/* eslint-disable */
// Generated by Microsoft Kiota
// @ts-ignore
import { createRemoteTenantGroupCollectionResponseFromDiscriminatorValue, createRemoteTenantGroupFromDiscriminatorValue, serializeRemoteTenantGroup, type RemoteTenantGroup, type RemoteTenantGroupCollectionResponse } from '@microsoft/msgraph-sdk/models/index.js';
// @ts-ignore
import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js';
// @ts-ignore
import { CountRequestBuilderRequestsMetadata, type CountRequestBuilder } from './count/index.js';
// @ts-ignore
import { RemoteTenantGroupItemRequestBuilderRequestsMetadata, type RemoteTenantGroupItemRequestBuilder } from './item/index.js';
// @ts-ignore
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';

/**
* Provides operations to manage the remoteTenantGroups property of the microsoft.graph.directory entity.
*/
export interface RemoteTenantGroupsRequestBuilder extends BaseRequestBuilder<RemoteTenantGroupsRequestBuilder> {
/**
* Provides operations to count the resources in the collection.
* @deprecated as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07
*/
get count(): CountRequestBuilder;
/**
* Provides operations to manage the remoteTenantGroups property of the microsoft.graph.directory entity.
* @param remoteTenantGroupId The unique identifier of remoteTenantGroup
* @returns {RemoteTenantGroupItemRequestBuilder}
* @deprecated as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07
*/
byRemoteTenantGroupId(remoteTenantGroupId: string) : RemoteTenantGroupItemRequestBuilder;
/**
* Get a list of the remoteTenantGroup objects and their properties.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<RemoteTenantGroupCollectionResponse>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
* @deprecated as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07
* @see {@link https://learn.microsoft.com/graph/api/directory-list-remotetenantgroups?view=graph-rest-1.0|Find more info here}
*/
get(requestConfiguration?: RequestConfiguration<RemoteTenantGroupsRequestBuilderGetQueryParameters> | undefined) : Promise<RemoteTenantGroupCollectionResponse | undefined>;
/**
* Create new navigation property to remoteTenantGroups for directory
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<RemoteTenantGroup>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
* @deprecated as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07
*/
post(body: RemoteTenantGroup, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<RemoteTenantGroup | undefined>;
/**
* Get a list of the remoteTenantGroup objects and their properties.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
* @deprecated as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07
*/
toGetRequestInformation(requestConfiguration?: RequestConfiguration<RemoteTenantGroupsRequestBuilderGetQueryParameters> | undefined) : RequestInformation;
/**
* Create new navigation property to remoteTenantGroups for directory
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
* @deprecated as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07
*/
toPostRequestInformation(body: RemoteTenantGroup, requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
}
/**
* Get a list of the remoteTenantGroup objects and their properties.
*/
export interface RemoteTenantGroupsRequestBuilderGetQueryParameters {
/**
* 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[];
/**
* Skip the first n items
*/
skip?: number;
/**
* Show only the first n items
*/
top?: number;
}
/**
* Uri template for the request builder.
*/
export const RemoteTenantGroupsRequestBuilderUriTemplate = "{+baseurl}/directory/remoteTenantGroups{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}";
/**
* Mapper for query parameters from symbol name to serialization name represented as a constant.
*/
const RemoteTenantGroupsRequestBuilderGetQueryParametersMapper: Record<string, string> = {
"count": "%24count",
"expand": "%24expand",
"filter": "%24filter",
"orderby": "%24orderby",
"search": "%24search",
"select": "%24select",
"skip": "%24skip",
"top": "%24top",
};
/**
* Metadata for all the navigation properties in the request builder.
*/
export const RemoteTenantGroupsRequestBuilderNavigationMetadata: Record<Exclude<keyof RemoteTenantGroupsRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata> = {
byRemoteTenantGroupId: {
requestsMetadata: RemoteTenantGroupItemRequestBuilderRequestsMetadata,
pathParametersMappings: ["remoteTenantGroup%2Did"],
},
count: {
requestsMetadata: CountRequestBuilderRequestsMetadata,
},
};
/**
* Metadata for all the requests in the request builder.
*/
export const RemoteTenantGroupsRequestBuilderRequestsMetadata: RequestsMetadata = {
get: {
uriTemplate: RemoteTenantGroupsRequestBuilderUriTemplate,
responseBodyContentType: "application/json",
errorMappings: {
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
},
adapterMethodName: "send",
responseBodyFactory: createRemoteTenantGroupCollectionResponseFromDiscriminatorValue,
queryParametersMapper: RemoteTenantGroupsRequestBuilderGetQueryParametersMapper,
},
post: {
uriTemplate: RemoteTenantGroupsRequestBuilderUriTemplate,
responseBodyContentType: "application/json",
errorMappings: {
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
},
adapterMethodName: "send",
responseBodyFactory: createRemoteTenantGroupFromDiscriminatorValue,
requestBodyContentType: "application/json",
requestBodySerializer: serializeRemoteTenantGroup,
requestInformationContentSetMethod: "setContentFromParsable",
},
};
/* tslint:enable */
/* eslint-enable */
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
/* tslint:disable */
/* eslint-disable */
// Generated by Microsoft Kiota
// @ts-ignore
import { createRemoteTenantGroupFromDiscriminatorValue, serializeRemoteTenantGroup, type RemoteTenantGroup } from '@microsoft/msgraph-sdk/models/index.js';
// @ts-ignore
import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-sdk/models/oDataErrors/index.js';
// @ts-ignore
import { type BaseRequestBuilder, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';

/**
* Provides operations to manage the remoteTenantGroups property of the microsoft.graph.directory entity.
*/
export interface RemoteTenantGroupItemRequestBuilder extends BaseRequestBuilder<RemoteTenantGroupItemRequestBuilder> {
/**
* Delete navigation property remoteTenantGroups for directory
* @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
* @deprecated as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07
*/
delete(requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<void>;
/**
* Read the properties and relationships of a remoteTenantGroup object.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<RemoteTenantGroup>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
* @deprecated as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07
* @see {@link https://learn.microsoft.com/graph/api/remotetenantgroup-get?view=graph-rest-1.0|Find more info here}
*/
get(requestConfiguration?: RequestConfiguration<RemoteTenantGroupItemRequestBuilderGetQueryParameters> | undefined) : Promise<RemoteTenantGroup | undefined>;
/**
* Update the navigation property remoteTenantGroups in directory
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<RemoteTenantGroup>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
* @deprecated as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07
*/
patch(body: RemoteTenantGroup, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<RemoteTenantGroup | undefined>;
/**
* Delete navigation property remoteTenantGroups for directory
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
* @deprecated as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07
*/
toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
/**
* Read the properties and relationships of a remoteTenantGroup object.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
* @deprecated as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07
*/
toGetRequestInformation(requestConfiguration?: RequestConfiguration<RemoteTenantGroupItemRequestBuilderGetQueryParameters> | undefined) : RequestInformation;
/**
* Update the navigation property remoteTenantGroups in directory
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
* @deprecated as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07
*/
toPatchRequestInformation(body: RemoteTenantGroup, requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
}
/**
* Read the properties and relationships of a remoteTenantGroup object.
*/
export interface RemoteTenantGroupItemRequestBuilderGetQueryParameters {
/**
* Expand related entities
*/
expand?: string[];
/**
* Select properties to be returned
*/
select?: string[];
}
/**
* Uri template for the request builder.
*/
export const RemoteTenantGroupItemRequestBuilderUriTemplate = "{+baseurl}/directory/remoteTenantGroups/{remoteTenantGroup%2Did}{?%24expand,%24select}";
/**
* Mapper for query parameters from symbol name to serialization name represented as a constant.
*/
const RemoteTenantGroupItemRequestBuilderGetQueryParametersMapper: Record<string, string> = {
"expand": "%24expand",
"select": "%24select",
};
/**
* Metadata for all the requests in the request builder.
*/
export const RemoteTenantGroupItemRequestBuilderRequestsMetadata: RequestsMetadata = {
delete: {
uriTemplate: RemoteTenantGroupItemRequestBuilderUriTemplate,
responseBodyContentType: "application/json",
errorMappings: {
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
},
adapterMethodName: "sendNoResponseContent",
},
get: {
uriTemplate: RemoteTenantGroupItemRequestBuilderUriTemplate,
responseBodyContentType: "application/json",
errorMappings: {
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
},
adapterMethodName: "send",
responseBodyFactory: createRemoteTenantGroupFromDiscriminatorValue,
queryParametersMapper: RemoteTenantGroupItemRequestBuilderGetQueryParametersMapper,
},
patch: {
uriTemplate: RemoteTenantGroupItemRequestBuilderUriTemplate,
responseBodyContentType: "application/json",
errorMappings: {
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
},
adapterMethodName: "send",
responseBodyFactory: createRemoteTenantGroupFromDiscriminatorValue,
requestBodyContentType: "application/json",
requestBodySerializer: serializeRemoteTenantGroup,
requestInformationContentSetMethod: "setContentFromParsable",
},
};
/* tslint:enable */
/* eslint-enable */
Loading
Loading