Skip to content

Commit 9ee8159

Browse files
authored
Merge pull request #434 from microsoftgraph/beta/pipelinebuild/207061
Generated beta models and request builders
2 parents de992d2 + 59ff9a1 commit 9ee8159

File tree

66 files changed

+6381
-90
lines changed

Some content is hidden

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

66 files changed

+6381
-90
lines changed

packages/kiota-dom-export.txt

Lines changed: 797 additions & 9 deletions
Large diffs are not rendered by default.

packages/kiota-lock.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"descriptionHash": "6A09B52B6D0D5BDB6C9A9158997009125BA86A5C3AB433B1D1F3C5AC6D440A8E0FCA70A70AF3C8848AAC74BA0CD826175872C0642C55ACE86437076717D4531D",
2+
"descriptionHash": "132BD72834B90EF960917B858EA92D356EF717B4BF993CFEAAC78E98B61A4E4B95102A7BF413BD1965D648A67409238BEF71071B3FE10E2D5011EF079245815A",
33
"descriptionLocation": "../../msgraph-metadata/clean_beta_openapi/openapi.yaml",
44
"lockFileVersion": "1.0.0",
55
"kiotaVersion": "1.30.0",

packages/msgraph-beta-sdk-accessReviews/accessReviews/item/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export interface AccessReviewItemRequestBuilder extends BaseRequestBuilder<Acces
7676
*/
7777
get(requestConfiguration?: RequestConfiguration<AccessReviewItemRequestBuilderGetQueryParameters> | undefined) : Promise<AccessReview | undefined>;
7878
/**
79-
* In the Microsoft Entra access reviews feature, update an existing accessReview object to change one or more of its properties. This API is not intended to change the reviewers or decisions of a review. To change the reviewers, use the addReviewer or removeReviewer APIs. To stop an already-started one-time review, or an already-started instance of a recurring review, early, use the stop API. To apply the decisions to the target group or app access rights, use the apply API.
79+
* In the Microsoft Entra access reviews feature, update an existing accessReview object to change one or more of its properties. This API is not intended to change the reviewers or decisions of a review. To change the reviewers, use the addReviewer or removeReviewer APIs. To stop an already-started one-time review, or an already-started instance of a recurring review, early, use the stop API. To apply the decisions to the target group or app access rights, use the apply API.
8080
* @param body The request body
8181
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
8282
* @returns {Promise<AccessReview>}
@@ -97,7 +97,7 @@ export interface AccessReviewItemRequestBuilder extends BaseRequestBuilder<Acces
9797
*/
9898
toGetRequestInformation(requestConfiguration?: RequestConfiguration<AccessReviewItemRequestBuilderGetQueryParameters> | undefined) : RequestInformation;
9999
/**
100-
* In the Microsoft Entra access reviews feature, update an existing accessReview object to change one or more of its properties. This API is not intended to change the reviewers or decisions of a review. To change the reviewers, use the addReviewer or removeReviewer APIs. To stop an already-started one-time review, or an already-started instance of a recurring review, early, use the stop API. To apply the decisions to the target group or app access rights, use the apply API.
100+
* In the Microsoft Entra access reviews feature, update an existing accessReview object to change one or more of its properties. This API is not intended to change the reviewers or decisions of a review. To change the reviewers, use the addReviewer or removeReviewer APIs. To stop an already-started one-time review, or an already-started instance of a recurring review, early, use the stop API. To apply the decisions to the target group or app access rights, use the apply API.
101101
* @param body The request body
102102
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
103103
* @returns {RequestInformation}

packages/msgraph-beta-sdk-admin/admin/exchange/index.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ import { MailboxesRequestBuilderNavigationMetadata, MailboxesRequestBuilderReque
1010
// @ts-ignore
1111
import { MessageTracesRequestBuilderNavigationMetadata, MessageTracesRequestBuilderRequestsMetadata, type MessageTracesRequestBuilder } from './messageTraces/index.js';
1212
// @ts-ignore
13+
import { TracingRequestBuilderNavigationMetadata, TracingRequestBuilderRequestsMetadata, type TracingRequestBuilder } from './tracing/index.js';
14+
// @ts-ignore
1315
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
1416

1517
/**
@@ -26,6 +28,11 @@ export interface ExchangeRequestBuilder extends BaseRequestBuilder<ExchangeReque
2628
* @deprecated Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15
2729
*/
2830
get messageTraces(): MessageTracesRequestBuilder;
31+
/**
32+
* Provides operations to manage the tracing property of the microsoft.graph.exchangeAdmin entity.
33+
* @deprecated Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15
34+
*/
35+
get tracing(): TracingRequestBuilder;
2936
/**
3037
* Delete navigation property exchange for admin
3138
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
@@ -109,6 +116,10 @@ export const ExchangeRequestBuilderNavigationMetadata: Record<Exclude<keyof Exch
109116
requestsMetadata: MessageTracesRequestBuilderRequestsMetadata,
110117
navigationMetadata: MessageTracesRequestBuilderNavigationMetadata,
111118
},
119+
tracing: {
120+
requestsMetadata: TracingRequestBuilderRequestsMetadata,
121+
navigationMetadata: TracingRequestBuilderNavigationMetadata,
122+
},
112123
};
113124
/**
114125
* Metadata for all the requests in the request builder.
Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
// Generated by Microsoft Kiota
4+
// @ts-ignore
5+
import { createMessageTracingRootFromDiscriminatorValue, serializeMessageTracingRoot, type MessageTracingRoot } from '@microsoft/msgraph-beta-sdk/models/index.js';
6+
// @ts-ignore
7+
import { createODataErrorFromDiscriminatorValue, type ODataError } from '@microsoft/msgraph-beta-sdk/models/oDataErrors/index.js';
8+
// @ts-ignore
9+
import { MessageTracesRequestBuilderNavigationMetadata, MessageTracesRequestBuilderRequestsMetadata, type MessageTracesRequestBuilder } from './messageTraces/index.js';
10+
// @ts-ignore
11+
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
12+
13+
/**
14+
* Provides operations to manage the tracing property of the microsoft.graph.exchangeAdmin entity.
15+
*/
16+
export interface TracingRequestBuilder extends BaseRequestBuilder<TracingRequestBuilder> {
17+
/**
18+
* Provides operations to manage the messageTraces property of the microsoft.graph.messageTracingRoot entity.
19+
* @deprecated Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15
20+
*/
21+
get messageTraces(): MessageTracesRequestBuilder;
22+
/**
23+
* Delete navigation property tracing for admin
24+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
25+
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
26+
* @deprecated Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15
27+
*/
28+
delete(requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<void>;
29+
/**
30+
* Get tracing from admin
31+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
32+
* @returns {Promise<MessageTracingRoot>}
33+
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
34+
* @deprecated Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15
35+
*/
36+
get(requestConfiguration?: RequestConfiguration<TracingRequestBuilderGetQueryParameters> | undefined) : Promise<MessageTracingRoot | undefined>;
37+
/**
38+
* Update the navigation property tracing in 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<MessageTracingRoot>}
42+
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
43+
* @deprecated Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15
44+
*/
45+
patch(body: MessageTracingRoot, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<MessageTracingRoot | undefined>;
46+
/**
47+
* Delete navigation property tracing for admin
48+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
49+
* @returns {RequestInformation}
50+
* @deprecated Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15
51+
*/
52+
toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
53+
/**
54+
* Get tracing from admin
55+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
56+
* @returns {RequestInformation}
57+
* @deprecated Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15
58+
*/
59+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<TracingRequestBuilderGetQueryParameters> | undefined) : RequestInformation;
60+
/**
61+
* Update the navigation property tracing in admin
62+
* @param body The request body
63+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
64+
* @returns {RequestInformation}
65+
* @deprecated Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15
66+
*/
67+
toPatchRequestInformation(body: MessageTracingRoot, requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
68+
}
69+
/**
70+
* Get tracing from admin
71+
*/
72+
export interface TracingRequestBuilderGetQueryParameters {
73+
/**
74+
* Expand related entities
75+
*/
76+
expand?: string[];
77+
/**
78+
* Select properties to be returned
79+
*/
80+
select?: string[];
81+
}
82+
/**
83+
* Uri template for the request builder.
84+
*/
85+
export const TracingRequestBuilderUriTemplate = "{+baseurl}/admin/exchange/tracing{?%24expand,%24select}";
86+
/**
87+
* Mapper for query parameters from symbol name to serialization name represented as a constant.
88+
*/
89+
const TracingRequestBuilderGetQueryParametersMapper: Record<string, string> = {
90+
"expand": "%24expand",
91+
"select": "%24select",
92+
};
93+
/**
94+
* Metadata for all the navigation properties in the request builder.
95+
*/
96+
export const TracingRequestBuilderNavigationMetadata: Record<Exclude<keyof TracingRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata> = {
97+
messageTraces: {
98+
requestsMetadata: MessageTracesRequestBuilderRequestsMetadata,
99+
navigationMetadata: MessageTracesRequestBuilderNavigationMetadata,
100+
},
101+
};
102+
/**
103+
* Metadata for all the requests in the request builder.
104+
*/
105+
export const TracingRequestBuilderRequestsMetadata: RequestsMetadata = {
106+
delete: {
107+
uriTemplate: TracingRequestBuilderUriTemplate,
108+
responseBodyContentType: "application/json",
109+
errorMappings: {
110+
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
111+
},
112+
adapterMethodName: "sendNoResponseContent",
113+
},
114+
get: {
115+
uriTemplate: TracingRequestBuilderUriTemplate,
116+
responseBodyContentType: "application/json",
117+
errorMappings: {
118+
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
119+
},
120+
adapterMethodName: "send",
121+
responseBodyFactory: createMessageTracingRootFromDiscriminatorValue,
122+
queryParametersMapper: TracingRequestBuilderGetQueryParametersMapper,
123+
},
124+
patch: {
125+
uriTemplate: TracingRequestBuilderUriTemplate,
126+
responseBodyContentType: "application/json",
127+
errorMappings: {
128+
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
129+
},
130+
adapterMethodName: "send",
131+
responseBodyFactory: createMessageTracingRootFromDiscriminatorValue,
132+
requestBodyContentType: "application/json",
133+
requestBodySerializer: serializeMessageTracingRoot,
134+
requestInformationContentSetMethod: "setContentFromParsable",
135+
},
136+
};
137+
/* tslint:enable */
138+
/* eslint-enable */
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
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+
* @deprecated Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15
19+
*/
20+
get(requestConfiguration?: RequestConfiguration<CountRequestBuilderGetQueryParameters> | undefined) : Promise<number | undefined>;
21+
/**
22+
* Get the number of the resource
23+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
24+
* @returns {RequestInformation}
25+
* @deprecated Private preview for Import Export APIs as of 2021-08/PrivatePreview:importExport on 2021-08-19 and will be removed 2021-11-15
26+
*/
27+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<CountRequestBuilderGetQueryParameters> | undefined) : RequestInformation;
28+
}
29+
/**
30+
* Get the number of the resource
31+
*/
32+
export interface CountRequestBuilderGetQueryParameters {
33+
/**
34+
* Filter items by property values
35+
*/
36+
filter?: string;
37+
/**
38+
* Search items by search phrases
39+
*/
40+
search?: string;
41+
}
42+
/**
43+
* Uri template for the request builder.
44+
*/
45+
export const CountRequestBuilderUriTemplate = "{+baseurl}/admin/exchange/tracing/messageTraces/$count{?%24filter,%24search}";
46+
/**
47+
* Mapper for query parameters from symbol name to serialization name represented as a constant.
48+
*/
49+
const CountRequestBuilderGetQueryParametersMapper: Record<string, string> = {
50+
"filter": "%24filter",
51+
"search": "%24search",
52+
};
53+
/**
54+
* Metadata for all the requests in the request builder.
55+
*/
56+
export const CountRequestBuilderRequestsMetadata: RequestsMetadata = {
57+
get: {
58+
uriTemplate: CountRequestBuilderUriTemplate,
59+
responseBodyContentType: "text/plain;q=0.9",
60+
errorMappings: {
61+
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
62+
},
63+
adapterMethodName: "sendPrimitive",
64+
responseBodyFactory: "number",
65+
queryParametersMapper: CountRequestBuilderGetQueryParametersMapper,
66+
},
67+
};
68+
/* tslint:enable */
69+
/* eslint-enable */

0 commit comments

Comments
 (0)