Skip to content
Open
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,267 changes: 1,160 additions & 107 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": "5DA63785EF55E0A5E55046ED2D4FA2BD501F7C70F4CF3DF10025C8E942028F3F07812002B26ED8C71DA51CB136C6C9980513B3D49EAECDB329C6AE335B352360",
"descriptionHash": "6AC8BEE38C6F8D84E3D84251C2E81EC29D6B9D422CE5A5460FB8388BC306BB365C22868B26D96A668A6F1B3BBC856B4B35A86F2811F6796B76204F1BE85AFA01",
"descriptionLocation": "../../msgraph-metadata/clean_beta_openapi/openapi.yaml",
"lockFileVersion": "1.0.0",
"kiotaVersion": "1.30.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export interface CountRequestBuilderGetQueryParameters {
/**
* Uri template for the request builder.
*/
export const CountRequestBuilderUriTemplate = "{+baseurl}/admin/configurationManagement/configurationApplications/$count{?%24filter,%24search}";
export const CountRequestBuilderUriTemplate = "{+baseurl}/admin/cloudLicensing/allotments/$count{?%24filter,%24search}";
/**
* Mapper for query parameters from symbol name to serialization name represented as a constant.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
/* tslint:disable */
/* eslint-disable */
// Generated by Microsoft Kiota
// @ts-ignore
import { createAllotmentCollectionResponseFromDiscriminatorValue, createAllotmentFromDiscriminatorValue, serializeAllotment, type Allotment, type AllotmentCollectionResponse } from '@microsoft/msgraph-beta-sdk/models/cloudLicensing/index.js';
// @ts-ignore
import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-beta-sdk/models/oDataErrors/index.js';
// @ts-ignore
import { CountRequestBuilderRequestsMetadata, type CountRequestBuilder } from './count/index.js';
// @ts-ignore
import { AllotmentItemRequestBuilderNavigationMetadata, AllotmentItemRequestBuilderRequestsMetadata, type AllotmentItemRequestBuilder } 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 allotments property of the microsoft.graph.cloudLicensing.adminCloudLicensing entity.
*/
export interface AllotmentsRequestBuilder extends BaseRequestBuilder<AllotmentsRequestBuilder> {
/**
* Provides operations to count the resources in the collection.
*/
get count(): CountRequestBuilder;
/**
* Provides operations to manage the allotments property of the microsoft.graph.cloudLicensing.adminCloudLicensing entity.
* @param allotmentId The unique identifier of allotment
* @returns {AllotmentItemRequestBuilder}
*/
byAllotmentId(allotmentId: string) : AllotmentItemRequestBuilder;
/**
* Get a list of the allotment objects and their properties.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<AllotmentCollectionResponse>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
* @see {@link https://learn.microsoft.com/graph/api/cloudlicensing-admincloudlicensing-list-allotments?view=graph-rest-beta|Find more info here}
*/
get(requestConfiguration?: RequestConfiguration<AllotmentsRequestBuilderGetQueryParameters> | undefined) : Promise<AllotmentCollectionResponse | undefined>;
/**
* Create new navigation property to allotments for admin
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<Allotment>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
*/
post(body: Allotment, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<Allotment | undefined>;
/**
* Get a list of the allotment objects and their properties.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toGetRequestInformation(requestConfiguration?: RequestConfiguration<AllotmentsRequestBuilderGetQueryParameters> | undefined) : RequestInformation;
/**
* Create new navigation property to allotments for admin
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toPostRequestInformation(body: Allotment, requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
}
/**
* Get a list of the allotment objects and their properties.
*/
export interface AllotmentsRequestBuilderGetQueryParameters {
/**
* 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 AllotmentsRequestBuilderUriTemplate = "{+baseurl}/admin/cloudLicensing/allotments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}";
/**
* Mapper for query parameters from symbol name to serialization name represented as a constant.
*/
const AllotmentsRequestBuilderGetQueryParametersMapper: 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 AllotmentsRequestBuilderNavigationMetadata: Record<Exclude<keyof AllotmentsRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata> = {
byAllotmentId: {
requestsMetadata: AllotmentItemRequestBuilderRequestsMetadata,
navigationMetadata: AllotmentItemRequestBuilderNavigationMetadata,
pathParametersMappings: ["allotment%2Did"],
},
count: {
requestsMetadata: CountRequestBuilderRequestsMetadata,
},
};
/**
* Metadata for all the requests in the request builder.
*/
export const AllotmentsRequestBuilderRequestsMetadata: RequestsMetadata = {
get: {
uriTemplate: AllotmentsRequestBuilderUriTemplate,
responseBodyContentType: "application/json",
errorMappings: {
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
},
adapterMethodName: "send",
responseBodyFactory: createAllotmentCollectionResponseFromDiscriminatorValue,
queryParametersMapper: AllotmentsRequestBuilderGetQueryParametersMapper,
},
post: {
uriTemplate: AllotmentsRequestBuilderUriTemplate,
responseBodyContentType: "application/json",
errorMappings: {
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
},
adapterMethodName: "send",
responseBodyFactory: createAllotmentFromDiscriminatorValue,
requestBodyContentType: "application/json",
requestBodySerializer: serializeAllotment,
requestInformationContentSetMethod: "setContentFromParsable",
},
};
/* tslint:enable */
/* eslint-enable */
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
/* tslint:disable */
/* eslint-disable */
// Generated by Microsoft Kiota
// @ts-ignore
import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-beta-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
*/
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}
*/
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}/admin/cloudLicensing/allotments/{allotment%2Did}/assignments/$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 */
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
/* tslint:disable */
/* eslint-disable */
// Generated by Microsoft Kiota
// @ts-ignore
import { createAssignmentCollectionResponseFromDiscriminatorValue, type AssignmentCollectionResponse } from '@microsoft/msgraph-beta-sdk/models/cloudLicensing/index.js';
// @ts-ignore
import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-beta-sdk/models/oDataErrors/index.js';
// @ts-ignore
import { CountRequestBuilderRequestsMetadata, type CountRequestBuilder } from './count/index.js';
// @ts-ignore
import { AssignmentItemRequestBuilderRequestsMetadata, type AssignmentItemRequestBuilder } 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 assignments property of the microsoft.graph.cloudLicensing.allotment entity.
*/
export interface AssignmentsRequestBuilder extends BaseRequestBuilder<AssignmentsRequestBuilder> {
/**
* Provides operations to count the resources in the collection.
*/
get count(): CountRequestBuilder;
/**
* Provides operations to manage the assignments property of the microsoft.graph.cloudLicensing.allotment entity.
* @param assignmentId The unique identifier of assignment
* @returns {AssignmentItemRequestBuilder}
*/
byAssignmentId(assignmentId: string) : AssignmentItemRequestBuilder;
/**
* Get a list of license assignment objects which consume licenses from this allotment.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<AssignmentCollectionResponse>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
* @see {@link https://learn.microsoft.com/graph/api/cloudlicensing-allotment-list-assignments?view=graph-rest-beta|Find more info here}
*/
get(requestConfiguration?: RequestConfiguration<AssignmentsRequestBuilderGetQueryParameters> | undefined) : Promise<AssignmentCollectionResponse | undefined>;
/**
* Get a list of license assignment objects which consume licenses from this allotment.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toGetRequestInformation(requestConfiguration?: RequestConfiguration<AssignmentsRequestBuilderGetQueryParameters> | undefined) : RequestInformation;
}
/**
* Get a list of license assignment objects which consume licenses from this allotment.
*/
export interface AssignmentsRequestBuilderGetQueryParameters {
/**
* 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 AssignmentsRequestBuilderUriTemplate = "{+baseurl}/admin/cloudLicensing/allotments/{allotment%2Did}/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}";
/**
* Mapper for query parameters from symbol name to serialization name represented as a constant.
*/
const AssignmentsRequestBuilderGetQueryParametersMapper: 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 AssignmentsRequestBuilderNavigationMetadata: Record<Exclude<keyof AssignmentsRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata> = {
byAssignmentId: {
requestsMetadata: AssignmentItemRequestBuilderRequestsMetadata,
pathParametersMappings: ["assignment%2Did"],
},
count: {
requestsMetadata: CountRequestBuilderRequestsMetadata,
},
};
/**
* Metadata for all the requests in the request builder.
*/
export const AssignmentsRequestBuilderRequestsMetadata: RequestsMetadata = {
get: {
uriTemplate: AssignmentsRequestBuilderUriTemplate,
responseBodyContentType: "application/json",
errorMappings: {
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
},
adapterMethodName: "send",
responseBodyFactory: createAssignmentCollectionResponseFromDiscriminatorValue,
queryParametersMapper: AssignmentsRequestBuilderGetQueryParametersMapper,
},
};
/* tslint:enable */
/* eslint-enable */
Loading
Loading