Skip to content

Commit eb410de

Browse files
Microsoft Graph DevX ToolingMicrosoft Graph DevX Tooling
authored andcommitted
feat(generation): update request builders and models
Update generated files with build 215572
1 parent 97a4d5c commit eb410de

728 files changed

Lines changed: 61411 additions & 1809 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/kiota-dom-export.txt

Lines changed: 7189 additions & 170 deletions
Large diffs are not rendered by default.

packages/kiota-lock.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"descriptionHash": "5DA63785EF55E0A5E55046ED2D4FA2BD501F7C70F4CF3DF10025C8E942028F3F07812002B26ED8C71DA51CB136C6C9980513B3D49EAECDB329C6AE335B352360",
2+
"descriptionHash": "12DA42D83D5E09858622DC57EADE14EB69F43AD0F932D6ADAAB58C7F5F92D0A27DA1E847A56ED2D79C8DD2C52B3D75BC1D0D3CEDBBD6075F6A7459A1D1DA96E7",
33
"descriptionLocation": "../../msgraph-metadata/clean_beta_openapi/openapi.yaml",
44
"lockFileVersion": "1.0.0",
5-
"kiotaVersion": "1.30.0",
5+
"kiotaVersion": "1.31.1",
66
"clientClassName": "GraphBetaBaseServiceClient",
77
"typeAccessModifier": "Public",
88
"clientNamespaceName": "github.com/microsoftgraph/msgraph-sdk-typescript/",

packages/msgraph-beta-sdk-admin/admin/configurationManagement/configurationApplications/count/index.ts renamed to packages/msgraph-beta-sdk-admin/admin/cloudLicensing/allotments/count/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export interface CountRequestBuilderGetQueryParameters {
4040
/**
4141
* Uri template for the request builder.
4242
*/
43-
export const CountRequestBuilderUriTemplate = "{+baseurl}/admin/configurationManagement/configurationApplications/$count{?%24filter,%24search}";
43+
export const CountRequestBuilderUriTemplate = "{+baseurl}/admin/cloudLicensing/allotments/$count{?%24filter,%24search}";
4444
/**
4545
* Mapper for query parameters from symbol name to serialization name represented as a constant.
4646
*/
Lines changed: 154 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,154 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
// Generated by Microsoft Kiota
4+
// @ts-ignore
5+
import { createAllotmentCollectionResponseFromDiscriminatorValue, createAllotmentFromDiscriminatorValue, serializeAllotment, type Allotment, type AllotmentCollectionResponse } from '@microsoft/msgraph-beta-sdk/models/cloudLicensing/index.js';
6+
// @ts-ignore
7+
import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-beta-sdk/models/oDataErrors/index.js';
8+
// @ts-ignore
9+
import { CountRequestBuilderRequestsMetadata, type CountRequestBuilder } from './count/index.js';
10+
// @ts-ignore
11+
import { AllotmentItemRequestBuilderNavigationMetadata, AllotmentItemRequestBuilderRequestsMetadata, type AllotmentItemRequestBuilder } from './item/index.js';
12+
// @ts-ignore
13+
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
14+
15+
/**
16+
* Provides operations to manage the allotments property of the microsoft.graph.cloudLicensing.adminCloudLicensing entity.
17+
*/
18+
export interface AllotmentsRequestBuilder extends BaseRequestBuilder<AllotmentsRequestBuilder> {
19+
/**
20+
* Provides operations to count the resources in the collection.
21+
*/
22+
get count(): CountRequestBuilder;
23+
/**
24+
* Provides operations to manage the allotments property of the microsoft.graph.cloudLicensing.adminCloudLicensing entity.
25+
* @param allotmentId The unique identifier of allotment
26+
* @returns {AllotmentItemRequestBuilder}
27+
*/
28+
byAllotmentId(allotmentId: string) : AllotmentItemRequestBuilder;
29+
/**
30+
* Get a list of the allotment objects and their properties.
31+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
32+
* @returns {Promise<AllotmentCollectionResponse>}
33+
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
34+
* @see {@link https://learn.microsoft.com/graph/api/cloudlicensing-admincloudlicensing-list-allotments?view=graph-rest-beta|Find more info here}
35+
*/
36+
get(requestConfiguration?: RequestConfiguration<AllotmentsRequestBuilderGetQueryParameters> | undefined) : Promise<AllotmentCollectionResponse | undefined>;
37+
/**
38+
* Create new navigation property to allotments for admin
39+
* @param body The request body
40+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
41+
* @returns {Promise<Allotment>}
42+
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
43+
*/
44+
post(body: Allotment, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<Allotment | undefined>;
45+
/**
46+
* Get a list of the allotment objects and their properties.
47+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
48+
* @returns {RequestInformation}
49+
*/
50+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<AllotmentsRequestBuilderGetQueryParameters> | undefined) : RequestInformation;
51+
/**
52+
* Create new navigation property to allotments for admin
53+
* @param body The request body
54+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
55+
* @returns {RequestInformation}
56+
*/
57+
toPostRequestInformation(body: Allotment, requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
58+
}
59+
/**
60+
* Get a list of the allotment objects and their properties.
61+
*/
62+
export interface AllotmentsRequestBuilderGetQueryParameters {
63+
/**
64+
* Include count of items
65+
*/
66+
count?: boolean;
67+
/**
68+
* Expand related entities
69+
*/
70+
expand?: string[];
71+
/**
72+
* Filter items by property values
73+
*/
74+
filter?: string;
75+
/**
76+
* Order items by property values
77+
*/
78+
orderby?: string[];
79+
/**
80+
* Search items by search phrases
81+
*/
82+
search?: string;
83+
/**
84+
* Select properties to be returned
85+
*/
86+
select?: string[];
87+
/**
88+
* Skip the first n items
89+
*/
90+
skip?: number;
91+
/**
92+
* Show only the first n items
93+
*/
94+
top?: number;
95+
}
96+
/**
97+
* Uri template for the request builder.
98+
*/
99+
export const AllotmentsRequestBuilderUriTemplate = "{+baseurl}/admin/cloudLicensing/allotments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}";
100+
/**
101+
* Mapper for query parameters from symbol name to serialization name represented as a constant.
102+
*/
103+
const AllotmentsRequestBuilderGetQueryParametersMapper: Record<string, string> = {
104+
"count": "%24count",
105+
"expand": "%24expand",
106+
"filter": "%24filter",
107+
"orderby": "%24orderby",
108+
"search": "%24search",
109+
"select": "%24select",
110+
"skip": "%24skip",
111+
"top": "%24top",
112+
};
113+
/**
114+
* Metadata for all the navigation properties in the request builder.
115+
*/
116+
export const AllotmentsRequestBuilderNavigationMetadata: Record<Exclude<keyof AllotmentsRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata> = {
117+
byAllotmentId: {
118+
requestsMetadata: AllotmentItemRequestBuilderRequestsMetadata,
119+
navigationMetadata: AllotmentItemRequestBuilderNavigationMetadata,
120+
pathParametersMappings: ["allotment%2Did"],
121+
},
122+
count: {
123+
requestsMetadata: CountRequestBuilderRequestsMetadata,
124+
},
125+
};
126+
/**
127+
* Metadata for all the requests in the request builder.
128+
*/
129+
export const AllotmentsRequestBuilderRequestsMetadata: RequestsMetadata = {
130+
get: {
131+
uriTemplate: AllotmentsRequestBuilderUriTemplate,
132+
responseBodyContentType: "application/json",
133+
errorMappings: {
134+
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
135+
},
136+
adapterMethodName: "send",
137+
responseBodyFactory: createAllotmentCollectionResponseFromDiscriminatorValue,
138+
queryParametersMapper: AllotmentsRequestBuilderGetQueryParametersMapper,
139+
},
140+
post: {
141+
uriTemplate: AllotmentsRequestBuilderUriTemplate,
142+
responseBodyContentType: "application/json",
143+
errorMappings: {
144+
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
145+
},
146+
adapterMethodName: "send",
147+
responseBodyFactory: createAllotmentFromDiscriminatorValue,
148+
requestBodyContentType: "application/json",
149+
requestBodySerializer: serializeAllotment,
150+
requestInformationContentSetMethod: "setContentFromParsable",
151+
},
152+
};
153+
/* tslint:enable */
154+
/* eslint-enable */
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
// Generated by Microsoft Kiota
4+
// @ts-ignore
5+
import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-beta-sdk/models/oDataErrors/index.js';
6+
// @ts-ignore
7+
import { type BaseRequestBuilder, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
8+
9+
/**
10+
* Provides operations to count the resources in the collection.
11+
*/
12+
export interface CountRequestBuilder extends BaseRequestBuilder<CountRequestBuilder> {
13+
/**
14+
* Get the number of the resource
15+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
16+
* @returns {Promise<number>}
17+
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
18+
*/
19+
get(requestConfiguration?: RequestConfiguration<CountRequestBuilderGetQueryParameters> | undefined) : Promise<number | undefined>;
20+
/**
21+
* Get the number of the resource
22+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
23+
* @returns {RequestInformation}
24+
*/
25+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<CountRequestBuilderGetQueryParameters> | undefined) : RequestInformation;
26+
}
27+
/**
28+
* Get the number of the resource
29+
*/
30+
export interface CountRequestBuilderGetQueryParameters {
31+
/**
32+
* Filter items by property values
33+
*/
34+
filter?: string;
35+
/**
36+
* Search items by search phrases
37+
*/
38+
search?: string;
39+
}
40+
/**
41+
* Uri template for the request builder.
42+
*/
43+
export const CountRequestBuilderUriTemplate = "{+baseurl}/admin/cloudLicensing/allotments/{allotment%2Did}/assignments/$count{?%24filter,%24search}";
44+
/**
45+
* Mapper for query parameters from symbol name to serialization name represented as a constant.
46+
*/
47+
const CountRequestBuilderGetQueryParametersMapper: Record<string, string> = {
48+
"filter": "%24filter",
49+
"search": "%24search",
50+
};
51+
/**
52+
* Metadata for all the requests in the request builder.
53+
*/
54+
export const CountRequestBuilderRequestsMetadata: RequestsMetadata = {
55+
get: {
56+
uriTemplate: CountRequestBuilderUriTemplate,
57+
responseBodyContentType: "text/plain;q=0.9",
58+
errorMappings: {
59+
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
60+
},
61+
adapterMethodName: "sendPrimitive",
62+
responseBodyFactory: "number",
63+
queryParametersMapper: CountRequestBuilderGetQueryParametersMapper,
64+
},
65+
};
66+
/* tslint:enable */
67+
/* eslint-enable */
Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
// Generated by Microsoft Kiota
4+
// @ts-ignore
5+
import { createAssignmentCollectionResponseFromDiscriminatorValue, type AssignmentCollectionResponse } from '@microsoft/msgraph-beta-sdk/models/cloudLicensing/index.js';
6+
// @ts-ignore
7+
import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-beta-sdk/models/oDataErrors/index.js';
8+
// @ts-ignore
9+
import { CountRequestBuilderRequestsMetadata, type CountRequestBuilder } from './count/index.js';
10+
// @ts-ignore
11+
import { AssignmentItemRequestBuilderRequestsMetadata, type AssignmentItemRequestBuilder } from './item/index.js';
12+
// @ts-ignore
13+
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
14+
15+
/**
16+
* Provides operations to manage the assignments property of the microsoft.graph.cloudLicensing.allotment entity.
17+
*/
18+
export interface AssignmentsRequestBuilder extends BaseRequestBuilder<AssignmentsRequestBuilder> {
19+
/**
20+
* Provides operations to count the resources in the collection.
21+
*/
22+
get count(): CountRequestBuilder;
23+
/**
24+
* Provides operations to manage the assignments property of the microsoft.graph.cloudLicensing.allotment entity.
25+
* @param assignmentId The unique identifier of assignment
26+
* @returns {AssignmentItemRequestBuilder}
27+
*/
28+
byAssignmentId(assignmentId: string) : AssignmentItemRequestBuilder;
29+
/**
30+
* Get a list of license assignment objects which consume licenses from this allotment.
31+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
32+
* @returns {Promise<AssignmentCollectionResponse>}
33+
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
34+
* @see {@link https://learn.microsoft.com/graph/api/cloudlicensing-allotment-list-assignments?view=graph-rest-beta|Find more info here}
35+
*/
36+
get(requestConfiguration?: RequestConfiguration<AssignmentsRequestBuilderGetQueryParameters> | undefined) : Promise<AssignmentCollectionResponse | undefined>;
37+
/**
38+
* Get a list of license assignment objects which consume licenses from this allotment.
39+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
40+
* @returns {RequestInformation}
41+
*/
42+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<AssignmentsRequestBuilderGetQueryParameters> | undefined) : RequestInformation;
43+
}
44+
/**
45+
* Get a list of license assignment objects which consume licenses from this allotment.
46+
*/
47+
export interface AssignmentsRequestBuilderGetQueryParameters {
48+
/**
49+
* Include count of items
50+
*/
51+
count?: boolean;
52+
/**
53+
* Expand related entities
54+
*/
55+
expand?: string[];
56+
/**
57+
* Filter items by property values
58+
*/
59+
filter?: string;
60+
/**
61+
* Order items by property values
62+
*/
63+
orderby?: string[];
64+
/**
65+
* Search items by search phrases
66+
*/
67+
search?: string;
68+
/**
69+
* Select properties to be returned
70+
*/
71+
select?: string[];
72+
/**
73+
* Skip the first n items
74+
*/
75+
skip?: number;
76+
/**
77+
* Show only the first n items
78+
*/
79+
top?: number;
80+
}
81+
/**
82+
* Uri template for the request builder.
83+
*/
84+
export const AssignmentsRequestBuilderUriTemplate = "{+baseurl}/admin/cloudLicensing/allotments/{allotment%2Did}/assignments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}";
85+
/**
86+
* Mapper for query parameters from symbol name to serialization name represented as a constant.
87+
*/
88+
const AssignmentsRequestBuilderGetQueryParametersMapper: Record<string, string> = {
89+
"count": "%24count",
90+
"expand": "%24expand",
91+
"filter": "%24filter",
92+
"orderby": "%24orderby",
93+
"search": "%24search",
94+
"select": "%24select",
95+
"skip": "%24skip",
96+
"top": "%24top",
97+
};
98+
/**
99+
* Metadata for all the navigation properties in the request builder.
100+
*/
101+
export const AssignmentsRequestBuilderNavigationMetadata: Record<Exclude<keyof AssignmentsRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata> = {
102+
byAssignmentId: {
103+
requestsMetadata: AssignmentItemRequestBuilderRequestsMetadata,
104+
pathParametersMappings: ["assignment%2Did"],
105+
},
106+
count: {
107+
requestsMetadata: CountRequestBuilderRequestsMetadata,
108+
},
109+
};
110+
/**
111+
* Metadata for all the requests in the request builder.
112+
*/
113+
export const AssignmentsRequestBuilderRequestsMetadata: RequestsMetadata = {
114+
get: {
115+
uriTemplate: AssignmentsRequestBuilderUriTemplate,
116+
responseBodyContentType: "application/json",
117+
errorMappings: {
118+
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
119+
},
120+
adapterMethodName: "send",
121+
responseBodyFactory: createAssignmentCollectionResponseFromDiscriminatorValue,
122+
queryParametersMapper: AssignmentsRequestBuilderGetQueryParametersMapper,
123+
},
124+
};
125+
/* tslint:enable */
126+
/* eslint-enable */

0 commit comments

Comments
 (0)