Skip to content

Commit 2f3f5a3

Browse files
authored
Merge pull request #231 from microsoftgraph/beta/pipelinebuild/177586
Generated beta models and request builders
2 parents 383ac26 + 71c9292 commit 2f3f5a3

114 files changed

Lines changed: 2132 additions & 492 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: 204 additions & 11 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": "5923E0D487FBF768915AC7D42314ADC8D3CA116F58083FEE708C9686987D146A8914F51788B76C472DD0BA9B1F74CF8F6A75B1EDCBAE56AD7381586F893EFCE9",
2+
"descriptionHash": "7587270095F847B4F9D6561C294A106644F3B9D3DDD16B4CB41E1A9A01C5267AD0E1C136868B70F7E6DF836DA5E648F0198AD0F014CAE09BB363511795EC2B68",
33
"descriptionLocation": "../../msgraph-metadata/clean_beta_openapi/openapi.yaml",
44
"lockFileVersion": "1.0.0",
55
"kiotaVersion": "1.23.0",

packages/msgraph-beta-sdk-admin/admin/windows/updates/resourceConnections/item/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ export interface ResourceConnectionItemRequestBuilder extends BaseRequestBuilder
2020
*/
2121
delete(requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<void>;
2222
/**
23-
* Read the properties and relationships of a resourceConnection object.
23+
* Read the properties and relationships of an operationalInsightsConnection object.
2424
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
2525
* @returns {Promise<ResourceConnection>}
2626
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
27-
* @see {@link https://learn.microsoft.com/graph/api/windowsupdates-resourceconnection-get?view=graph-rest-beta|Find more info here}
27+
* @see {@link https://learn.microsoft.com/graph/api/windowsupdates-operationalinsightsconnection-get?view=graph-rest-beta|Find more info here}
2828
*/
2929
get(requestConfiguration?: RequestConfiguration<ResourceConnectionItemRequestBuilderGetQueryParameters> | undefined) : Promise<ResourceConnection | undefined>;
3030
/**
@@ -42,7 +42,7 @@ export interface ResourceConnectionItemRequestBuilder extends BaseRequestBuilder
4242
*/
4343
toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
4444
/**
45-
* Read the properties and relationships of a resourceConnection object.
45+
* Read the properties and relationships of an operationalInsightsConnection object.
4646
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
4747
* @returns {RequestInformation}
4848
*/
@@ -56,7 +56,7 @@ export interface ResourceConnectionItemRequestBuilder extends BaseRequestBuilder
5656
toPatchRequestInformation(body: ResourceConnection, requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
5757
}
5858
/**
59-
* Read the properties and relationships of a resourceConnection object.
59+
* Read the properties and relationships of an operationalInsightsConnection object.
6060
*/
6161
export interface ResourceConnectionItemRequestBuilderGetQueryParameters {
6262
/**

packages/msgraph-beta-sdk-admin/admin/windows/updates/updatePolicies/item/complianceChanges/item/index.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,51 +19,51 @@ export interface ComplianceChangeItemRequestBuilder extends BaseRequestBuilder<C
1919
*/
2020
get updatePolicy(): UpdatePolicyRequestBuilder;
2121
/**
22-
* Delete a contentApproval object.
22+
* Delete a complianceChange object.
2323
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
2424
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
25-
* @see {@link https://learn.microsoft.com/graph/api/windowsupdates-contentapproval-delete?view=graph-rest-beta|Find more info here}
25+
* @see {@link https://learn.microsoft.com/graph/api/windowsupdates-compliancechange-delete?view=graph-rest-beta|Find more info here}
2626
*/
2727
delete(requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<void>;
2828
/**
29-
* Read the properties and relationships of a contentApproval object.
29+
* Read the properties and relationships of a complianceChange object.
3030
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
3131
* @returns {Promise<ComplianceChange>}
3232
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
33-
* @see {@link https://learn.microsoft.com/graph/api/windowsupdates-contentapproval-get?view=graph-rest-beta|Find more info here}
33+
* @see {@link https://learn.microsoft.com/graph/api/windowsupdates-compliancechange-get?view=graph-rest-beta|Find more info here}
3434
*/
3535
get(requestConfiguration?: RequestConfiguration<ComplianceChangeItemRequestBuilderGetQueryParameters> | undefined) : Promise<ComplianceChange | undefined>;
3636
/**
37-
* Update the properties of a contentApproval object.
37+
* Update the properties of a complianceChange object.
3838
* @param body The request body
3939
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
4040
* @returns {Promise<ComplianceChange>}
4141
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
42-
* @see {@link https://learn.microsoft.com/graph/api/windowsupdates-contentapproval-update?view=graph-rest-beta|Find more info here}
42+
* @see {@link https://learn.microsoft.com/graph/api/windowsupdates-compliancechange-update?view=graph-rest-beta|Find more info here}
4343
*/
4444
patch(body: ComplianceChange, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<ComplianceChange | undefined>;
4545
/**
46-
* Delete a contentApproval object.
46+
* Delete a complianceChange object.
4747
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
4848
* @returns {RequestInformation}
4949
*/
5050
toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
5151
/**
52-
* Read the properties and relationships of a contentApproval object.
52+
* Read the properties and relationships of a complianceChange object.
5353
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
5454
* @returns {RequestInformation}
5555
*/
5656
toGetRequestInformation(requestConfiguration?: RequestConfiguration<ComplianceChangeItemRequestBuilderGetQueryParameters> | undefined) : RequestInformation;
5757
/**
58-
* Update the properties of a contentApproval object.
58+
* Update the properties of a complianceChange object.
5959
* @param body The request body
6060
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
6161
* @returns {RequestInformation}
6262
*/
6363
toPatchRequestInformation(body: ComplianceChange, requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
6464
}
6565
/**
66-
* Read the properties and relationships of a contentApproval object.
66+
* Read the properties and relationships of a complianceChange object.
6767
*/
6868
export interface ComplianceChangeItemRequestBuilderGetQueryParameters {
6969
/**

packages/msgraph-beta-sdk-app/app/calls/item/index.ts

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,14 @@ import { RejectRequestBuilderRequestsMetadata, type RejectRequestBuilder } from
3838
// @ts-ignore
3939
import { SendDtmfTonesRequestBuilderRequestsMetadata, type SendDtmfTonesRequestBuilder } from './sendDtmfTones/index.js';
4040
// @ts-ignore
41+
import { StartRecordingRequestBuilderRequestsMetadata, type StartRecordingRequestBuilder } from './startRecording/index.js';
42+
// @ts-ignore
43+
import { StartTranscriptionRequestBuilderRequestsMetadata, type StartTranscriptionRequestBuilder } from './startTranscription/index.js';
44+
// @ts-ignore
45+
import { StopRecordingRequestBuilderRequestsMetadata, type StopRecordingRequestBuilder } from './stopRecording/index.js';
46+
// @ts-ignore
47+
import { StopTranscriptionRequestBuilderRequestsMetadata, type StopTranscriptionRequestBuilder } from './stopTranscription/index.js';
48+
// @ts-ignore
4149
import { SubscribeToToneRequestBuilderRequestsMetadata, type SubscribeToToneRequestBuilder } from './subscribeToTone/index.js';
4250
// @ts-ignore
4351
import { TransferRequestBuilderRequestsMetadata, type TransferRequestBuilder } from './transfer/index.js';
@@ -116,6 +124,22 @@ export interface CallItemRequestBuilder extends BaseRequestBuilder<CallItemReque
116124
* Provides operations to call the sendDtmfTones method.
117125
*/
118126
get sendDtmfTones(): SendDtmfTonesRequestBuilder;
127+
/**
128+
* Provides operations to call the startRecording method.
129+
*/
130+
get startRecording(): StartRecordingRequestBuilder;
131+
/**
132+
* Provides operations to call the startTranscription method.
133+
*/
134+
get startTranscription(): StartTranscriptionRequestBuilder;
135+
/**
136+
* Provides operations to call the stopRecording method.
137+
*/
138+
get stopRecording(): StopRecordingRequestBuilder;
139+
/**
140+
* Provides operations to call the stopTranscription method.
141+
*/
142+
get stopTranscription(): StopTranscriptionRequestBuilder;
119143
/**
120144
* Provides operations to call the subscribeToTone method.
121145
*/
@@ -253,6 +277,18 @@ export const CallItemRequestBuilderNavigationMetadata: Record<Exclude<keyof Call
253277
sendDtmfTones: {
254278
requestsMetadata: SendDtmfTonesRequestBuilderRequestsMetadata,
255279
},
280+
startRecording: {
281+
requestsMetadata: StartRecordingRequestBuilderRequestsMetadata,
282+
},
283+
startTranscription: {
284+
requestsMetadata: StartTranscriptionRequestBuilderRequestsMetadata,
285+
},
286+
stopRecording: {
287+
requestsMetadata: StopRecordingRequestBuilderRequestsMetadata,
288+
},
289+
stopTranscription: {
290+
requestsMetadata: StopTranscriptionRequestBuilderRequestsMetadata,
291+
},
256292
subscribeToTone: {
257293
requestsMetadata: SubscribeToToneRequestBuilderRequestsMetadata,
258294
},

packages/msgraph-beta-sdk-app/app/calls/item/participants/invite/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,16 @@ export interface InvitePostRequestBody extends AdditionalDataHolder, BackedModel
5252
*/
5353
export interface InviteRequestBuilder extends BaseRequestBuilder<InviteRequestBuilder> {
5454
/**
55-
* Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled.
55+
* Invite participants to the active call. For more information about how to handle operations, see commsOperation.
5656
* @param body The request body
5757
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
5858
* @returns {Promise<InviteParticipantsOperation>}
5959
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
60-
* @see {@link https://learn.microsoft.com/graph/api/participant-delete?view=graph-rest-beta|Find more info here}
60+
* @see {@link https://learn.microsoft.com/graph/api/participant-invite?view=graph-rest-beta|Find more info here}
6161
*/
6262
post(body: InvitePostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<InviteParticipantsOperation | undefined>;
6363
/**
64-
* Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled.
64+
* Invite participants to the active call. For more information about how to handle operations, see commsOperation.
6565
* @param body The request body
6666
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
6767
* @returns {RequestInformation}
Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
// Generated by Microsoft Kiota
4+
// @ts-ignore
5+
import { createStartRecordingOperationFromDiscriminatorValue, serializeStartRecordingOperation, type StartRecordingOperation } 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 { type AdditionalDataHolder, type BackedModel, type BackingStore, type BaseRequestBuilder, type Parsable, type ParsableFactory, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter } from '@microsoft/kiota-abstractions';
10+
11+
/**
12+
* Creates a new instance of the appropriate class based on discriminator value
13+
* @param parseNode The parse node to use to read the discriminator value and create the object
14+
* @returns {StartRecordingPostRequestBody}
15+
*/
16+
// @ts-ignore
17+
export function createStartRecordingPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
18+
return deserializeIntoStartRecordingPostRequestBody;
19+
}
20+
/**
21+
* The deserialization information for the current model
22+
* @returns {Record<string, (node: ParseNode) => void>}
23+
*/
24+
// @ts-ignore
25+
export function deserializeIntoStartRecordingPostRequestBody(startRecordingPostRequestBody: Partial<StartRecordingPostRequestBody> | undefined = {}) : Record<string, (node: ParseNode) => void> {
26+
return {
27+
"backingStoreEnabled": n => { startRecordingPostRequestBody.backingStoreEnabled = true; },
28+
"clientContext": n => { startRecordingPostRequestBody.clientContext = n.getStringValue(); },
29+
}
30+
}
31+
/**
32+
* Serializes information the current object
33+
* @param writer Serialization writer to use to serialize this model
34+
*/
35+
// @ts-ignore
36+
export function serializeStartRecordingPostRequestBody(writer: SerializationWriter, startRecordingPostRequestBody: Partial<StartRecordingPostRequestBody> | undefined | null = {}) : void {
37+
if (startRecordingPostRequestBody) {
38+
writer.writeStringValue("clientContext", startRecordingPostRequestBody.clientContext);
39+
writer.writeAdditionalData(startRecordingPostRequestBody.additionalData);
40+
}
41+
}
42+
export interface StartRecordingPostRequestBody extends AdditionalDataHolder, BackedModel, Parsable {
43+
/**
44+
* Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
45+
*/
46+
additionalData?: Record<string, unknown>;
47+
/**
48+
* Stores model information.
49+
*/
50+
backingStoreEnabled?: boolean | null;
51+
/**
52+
* The clientContext property
53+
*/
54+
clientContext?: string | null;
55+
}
56+
/**
57+
* Provides operations to call the startRecording method.
58+
*/
59+
export interface StartRecordingRequestBuilder extends BaseRequestBuilder<StartRecordingRequestBuilder> {
60+
/**
61+
* Invoke action startRecording
62+
* @param body The request body
63+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
64+
* @returns {Promise<StartRecordingOperation>}
65+
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
66+
*/
67+
post(body: StartRecordingPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<StartRecordingOperation | undefined>;
68+
/**
69+
* Invoke action startRecording
70+
* @param body The request body
71+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
72+
* @returns {RequestInformation}
73+
*/
74+
toPostRequestInformation(body: StartRecordingPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
75+
}
76+
/**
77+
* Uri template for the request builder.
78+
*/
79+
export const StartRecordingRequestBuilderUriTemplate = "{+baseurl}/app/calls/{call%2Did}/startRecording";
80+
/**
81+
* Metadata for all the requests in the request builder.
82+
*/
83+
export const StartRecordingRequestBuilderRequestsMetadata: RequestsMetadata = {
84+
post: {
85+
uriTemplate: StartRecordingRequestBuilderUriTemplate,
86+
responseBodyContentType: "application/json",
87+
errorMappings: {
88+
XXX: createODataErrorFromDiscriminatorValue as ParsableFactory<Parsable>,
89+
},
90+
adapterMethodName: "send",
91+
responseBodyFactory: createStartRecordingOperationFromDiscriminatorValue,
92+
requestBodyContentType: "application/json",
93+
requestBodySerializer: serializeStartRecordingPostRequestBody,
94+
requestInformationContentSetMethod: "setContentFromParsable",
95+
},
96+
};
97+
/* tslint:enable */
98+
/* eslint-enable */

0 commit comments

Comments
 (0)