Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated models and request builders #460

Closed
wants to merge 1 commit into from
Closed
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
6 changes: 3 additions & 3 deletions src/chats/item/members/item/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ export class ConversationMemberItemRequestBuilder extends BaseRequestBuilder<Con
return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping);
}
/**
* Retrieve a conversationMember from a chat or channel.
* Retrieve a conversationMember from a chat.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns a Promise of ConversationMember
* @see {@link https://learn.microsoft.com/graph/api/conversationmember-get?view=graph-rest-1.0|Find more info here}
* @see {@link https://learn.microsoft.com/graph/api/chat-get-members?view=graph-rest-1.0|Find more info here}
*/
public get(requestConfiguration?: RequestConfiguration<ConversationMemberItemRequestBuilderGetQueryParameters> | undefined) : Promise<ConversationMember | undefined> {
const requestInfo = this.toGetRequestInformation(
Expand Down Expand Up @@ -86,7 +86,7 @@ export class ConversationMemberItemRequestBuilder extends BaseRequestBuilder<Con
return requestInfo;
}
/**
* Retrieve a conversationMember from a chat or channel.
* Retrieve a conversationMember from a chat.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns a RequestInformation
*/
Expand Down
8 changes: 4 additions & 4 deletions src/communications/calls/item/answer/index.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
// tslint:disable
// eslint-disable
// Generated by Microsoft Kiota
import { createIncomingCallOptionsFromDiscriminatorValue, createMediaConfigFromDiscriminatorValue, Modality, ModalityObject, serializeIncomingCallOptions, serializeMediaConfig, type IncomingCallOptions, type MediaConfig } from '../../../../models/';
import { createIncomingCallOptionsFromDiscriminatorValue, createMediaConfigFromDiscriminatorValue, serializeIncomingCallOptions, serializeMediaConfig, type IncomingCallOptions, type MediaConfig } from '../../../../models/';
import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../models/oDataErrors/';
import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions';

export interface AnswerPostRequestBody extends AdditionalDataHolder, Parsable {
/**
* The acceptedModalities property
*/
acceptedModalities?: Modality[];
acceptedModalities?: AnswerPostRequestBody_acceptedModalities[];

Check failure on line 12 in src/communications/calls/item/answer/index.ts

View workflow job for this annotation

GitHub Actions / build (16.x)

Cannot find name 'AnswerPostRequestBody_acceptedModalities'.

Check failure on line 12 in src/communications/calls/item/answer/index.ts

View workflow job for this annotation

GitHub Actions / build (16.x)

Property 'acceptedModalities' of exported interface has or is using private name 'AnswerPostRequestBody_acceptedModalities'.

Check failure on line 12 in src/communications/calls/item/answer/index.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

Cannot find name 'AnswerPostRequestBody_acceptedModalities'.

Check failure on line 12 in src/communications/calls/item/answer/index.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

Property 'acceptedModalities' of exported interface has or is using private name 'AnswerPostRequestBody_acceptedModalities'.

Check failure on line 12 in src/communications/calls/item/answer/index.ts

View workflow job for this annotation

GitHub Actions / build (20.x)

Cannot find name 'AnswerPostRequestBody_acceptedModalities'.

Check failure on line 12 in src/communications/calls/item/answer/index.ts

View workflow job for this annotation

GitHub Actions / build (20.x)

Property 'acceptedModalities' of exported interface has or is using private name 'AnswerPostRequestBody_acceptedModalities'.
/**
* Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
*/
Expand All @@ -36,7 +36,7 @@
}
export function deserializeIntoAnswerPostRequestBody(answerPostRequestBody: AnswerPostRequestBody | undefined = {} as AnswerPostRequestBody) : Record<string, (node: ParseNode) => void> {
return {
"acceptedModalities": n => { answerPostRequestBody.acceptedModalities = n.getCollectionOfEnumValues<Modality>(ModalityObject); },
"acceptedModalities": n => { answerPostRequestBody.acceptedModalities = n.getCollectionOfEnumValues<AnswerPostRequestBody_acceptedModalities>(AnswerPostRequestBody_acceptedModalitiesObject); },

Check failure on line 39 in src/communications/calls/item/answer/index.ts

View workflow job for this annotation

GitHub Actions / build (16.x)

Cannot find name 'AnswerPostRequestBody_acceptedModalities'.

Check failure on line 39 in src/communications/calls/item/answer/index.ts

View workflow job for this annotation

GitHub Actions / build (16.x)

Cannot find name 'AnswerPostRequestBody_acceptedModalitiesObject'.

Check failure on line 39 in src/communications/calls/item/answer/index.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

Cannot find name 'AnswerPostRequestBody_acceptedModalities'.

Check failure on line 39 in src/communications/calls/item/answer/index.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

Cannot find name 'AnswerPostRequestBody_acceptedModalitiesObject'.

Check failure on line 39 in src/communications/calls/item/answer/index.ts

View workflow job for this annotation

GitHub Actions / build (20.x)

Cannot find name 'AnswerPostRequestBody_acceptedModalities'.

Check failure on line 39 in src/communications/calls/item/answer/index.ts

View workflow job for this annotation

GitHub Actions / build (20.x)

Cannot find name 'AnswerPostRequestBody_acceptedModalitiesObject'.
"callbackUri": n => { answerPostRequestBody.callbackUri = n.getStringValue(); },
"callOptions": n => { answerPostRequestBody.callOptions = n.getObjectValue<IncomingCallOptions>(createIncomingCallOptionsFromDiscriminatorValue); },
"mediaConfig": n => { answerPostRequestBody.mediaConfig = n.getObjectValue<MediaConfig>(createMediaConfigFromDiscriminatorValue); },
Expand All @@ -45,7 +45,7 @@
}
export function serializeAnswerPostRequestBody(writer: SerializationWriter, answerPostRequestBody: AnswerPostRequestBody | undefined = {} as AnswerPostRequestBody) : void {
if(answerPostRequestBody.acceptedModalities)
writer.writeEnumValue<Modality>("acceptedModalities", ...answerPostRequestBody.acceptedModalities);
writer.writeEnumValue<AnswerPostRequestBody_acceptedModalities>("acceptedModalities", ...answerPostRequestBody.acceptedModalities);

Check failure on line 48 in src/communications/calls/item/answer/index.ts

View workflow job for this annotation

GitHub Actions / build (16.x)

Cannot find name 'AnswerPostRequestBody_acceptedModalities'.

Check failure on line 48 in src/communications/calls/item/answer/index.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

Cannot find name 'AnswerPostRequestBody_acceptedModalities'.

Check failure on line 48 in src/communications/calls/item/answer/index.ts

View workflow job for this annotation

GitHub Actions / build (20.x)

Cannot find name 'AnswerPostRequestBody_acceptedModalities'.
writer.writeStringValue("callbackUri", answerPostRequestBody.callbackUri);
writer.writeObjectValue<IncomingCallOptions>("callOptions", answerPostRequestBody.callOptions, serializeIncomingCallOptions);
writer.writeObjectValue<MediaConfig>("mediaConfig", answerPostRequestBody.mediaConfig, serializeMediaConfig);
Expand Down
7 changes: 7 additions & 0 deletions src/communications/calls/item/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { PlayPromptRequestBuilder } from './playPrompt/';
import { RecordResponseRequestBuilder } from './recordResponse/';
import { RedirectRequestBuilder } from './redirect/';
import { RejectRequestBuilder } from './reject/';
import { SendDtmfTonesRequestBuilder } from './sendDtmfTones/';
import { SubscribeToToneRequestBuilder } from './subscribeToTone/';
import { TransferRequestBuilder } from './transfer/';
import { UnmuteRequestBuilder } from './unmute/';
Expand Down Expand Up @@ -121,6 +122,12 @@ export class CallItemRequestBuilder extends BaseRequestBuilder<CallItemRequestBu
public get reject(): RejectRequestBuilder {
return new RejectRequestBuilder(this.pathParameters, this.requestAdapter);
}
/**
* Provides operations to call the sendDtmfTones method.
*/
public get sendDtmfTones(): SendDtmfTonesRequestBuilder {
return new SendDtmfTonesRequestBuilder(this.pathParameters, this.requestAdapter);
}
/**
* Provides operations to call the subscribeToTone method.
*/
Expand Down
7 changes: 3 additions & 4 deletions src/communications/calls/item/reject/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// tslint:disable
// eslint-disable
// Generated by Microsoft Kiota
import { RejectReason, RejectReasonObject } from '../../../../models/';
import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../models/oDataErrors/';
import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions';

Expand All @@ -11,7 +10,7 @@
export function deserializeIntoRejectPostRequestBody(rejectPostRequestBody: RejectPostRequestBody | undefined = {} as RejectPostRequestBody) : Record<string, (node: ParseNode) => void> {
return {
"callbackUri": n => { rejectPostRequestBody.callbackUri = n.getStringValue(); },
"reason": n => { rejectPostRequestBody.reason = n.getEnumValue<RejectReason>(RejectReasonObject); },
"reason": n => { rejectPostRequestBody.reason = n.getEnumValue<RejectPostRequestBody_reason>(RejectPostRequestBody_reasonObject); },

Check failure on line 13 in src/communications/calls/item/reject/index.ts

View workflow job for this annotation

GitHub Actions / build (16.x)

Cannot find name 'RejectPostRequestBody_reason'.

Check failure on line 13 in src/communications/calls/item/reject/index.ts

View workflow job for this annotation

GitHub Actions / build (16.x)

Cannot find name 'RejectPostRequestBody_reasonObject'.

Check failure on line 13 in src/communications/calls/item/reject/index.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

Cannot find name 'RejectPostRequestBody_reason'.

Check failure on line 13 in src/communications/calls/item/reject/index.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

Cannot find name 'RejectPostRequestBody_reasonObject'.

Check failure on line 13 in src/communications/calls/item/reject/index.ts

View workflow job for this annotation

GitHub Actions / build (20.x)

Cannot find name 'RejectPostRequestBody_reason'.

Check failure on line 13 in src/communications/calls/item/reject/index.ts

View workflow job for this annotation

GitHub Actions / build (20.x)

Cannot find name 'RejectPostRequestBody_reasonObject'.
}
}
export interface RejectPostRequestBody extends AdditionalDataHolder, Parsable {
Expand All @@ -26,11 +25,11 @@
/**
* The reason property
*/
reason?: RejectReason;
reason?: RejectPostRequestBody_reason;

Check failure on line 28 in src/communications/calls/item/reject/index.ts

View workflow job for this annotation

GitHub Actions / build (16.x)

Cannot find name 'RejectPostRequestBody_reason'.

Check failure on line 28 in src/communications/calls/item/reject/index.ts

View workflow job for this annotation

GitHub Actions / build (16.x)

Property 'reason' of exported interface has or is using private name 'RejectPostRequestBody_reason'.

Check failure on line 28 in src/communications/calls/item/reject/index.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

Cannot find name 'RejectPostRequestBody_reason'.

Check failure on line 28 in src/communications/calls/item/reject/index.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

Property 'reason' of exported interface has or is using private name 'RejectPostRequestBody_reason'.

Check failure on line 28 in src/communications/calls/item/reject/index.ts

View workflow job for this annotation

GitHub Actions / build (20.x)

Cannot find name 'RejectPostRequestBody_reason'.

Check failure on line 28 in src/communications/calls/item/reject/index.ts

View workflow job for this annotation

GitHub Actions / build (20.x)

Property 'reason' of exported interface has or is using private name 'RejectPostRequestBody_reason'.
}
export function serializeRejectPostRequestBody(writer: SerializationWriter, rejectPostRequestBody: RejectPostRequestBody | undefined = {} as RejectPostRequestBody) : void {
writer.writeStringValue("callbackUri", rejectPostRequestBody.callbackUri);
writer.writeEnumValue<RejectReason>("reason", rejectPostRequestBody.reason);
writer.writeEnumValue<RejectPostRequestBody_reason>("reason", rejectPostRequestBody.reason);

Check failure on line 32 in src/communications/calls/item/reject/index.ts

View workflow job for this annotation

GitHub Actions / build (16.x)

Cannot find name 'RejectPostRequestBody_reason'.

Check failure on line 32 in src/communications/calls/item/reject/index.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

Cannot find name 'RejectPostRequestBody_reason'.

Check failure on line 32 in src/communications/calls/item/reject/index.ts

View workflow job for this annotation

GitHub Actions / build (20.x)

Cannot find name 'RejectPostRequestBody_reason'.
writer.writeAdditionalData(rejectPostRequestBody.additionalData);
}
/**
Expand Down
87 changes: 87 additions & 0 deletions src/communications/calls/item/sendDtmfTones/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
// tslint:disable
// eslint-disable
// Generated by Microsoft Kiota
import { createSendDtmfTonesOperationFromDiscriminatorValue, deserializeIntoSendDtmfTonesOperation, serializeSendDtmfTonesOperation, Tone, ToneObject, type SendDtmfTonesOperation } from '../../../../models/';
import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../models/oDataErrors/';
import { BaseRequestBuilder, HttpMethod, RequestInformation, type AdditionalDataHolder, type Parsable, type ParsableFactory, type ParseNode, type RequestAdapter, type RequestConfiguration, type RequestOption, type SerializationWriter } from '@microsoft/kiota-abstractions';

export function createSendDtmfTonesPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) {
return deserializeIntoSendDtmfTonesPostRequestBody;
}
export function deserializeIntoSendDtmfTonesPostRequestBody(sendDtmfTonesPostRequestBody: SendDtmfTonesPostRequestBody | undefined = {} as SendDtmfTonesPostRequestBody) : Record<string, (node: ParseNode) => void> {
return {
"clientContext": n => { sendDtmfTonesPostRequestBody.clientContext = n.getStringValue(); },
"delayBetweenTonesMs": n => { sendDtmfTonesPostRequestBody.delayBetweenTonesMs = n.getNumberValue(); },
"tones": n => { sendDtmfTonesPostRequestBody.tones = n.getCollectionOfEnumValues<Tone>(ToneObject); },
}
}
export interface SendDtmfTonesPostRequestBody extends AdditionalDataHolder, Parsable {
/**
* Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
*/
additionalData?: Record<string, unknown>;
/**
* The clientContext property
*/
clientContext?: string;
/**
* The delayBetweenTonesMs property
*/
delayBetweenTonesMs?: number;
/**
* The tones property
*/
tones?: Tone[];
}
export function serializeSendDtmfTonesPostRequestBody(writer: SerializationWriter, sendDtmfTonesPostRequestBody: SendDtmfTonesPostRequestBody | undefined = {} as SendDtmfTonesPostRequestBody) : void {
writer.writeStringValue("clientContext", sendDtmfTonesPostRequestBody.clientContext);
writer.writeNumberValue("delayBetweenTonesMs", sendDtmfTonesPostRequestBody.delayBetweenTonesMs);
if(sendDtmfTonesPostRequestBody.tones)
writer.writeEnumValue<Tone>("tones", ...sendDtmfTonesPostRequestBody.tones);
writer.writeAdditionalData(sendDtmfTonesPostRequestBody.additionalData);
}
/**
* Provides operations to call the sendDtmfTones method.
*/
export class SendDtmfTonesRequestBuilder extends BaseRequestBuilder<SendDtmfTonesRequestBuilder> {
/**
* Instantiates a new SendDtmfTonesRequestBuilder and sets the default values.
* @param pathParameters The raw url or the Url template parameters for the request.
* @param requestAdapter The request adapter to use to execute the requests.
*/
public constructor(pathParameters: Record<string, unknown> | string | undefined, requestAdapter: RequestAdapter) {
super(pathParameters, requestAdapter, "{+baseurl}/communications/calls/{call%2Did}/sendDtmfTones", (x, y) => new SendDtmfTonesRequestBuilder(x, y));
}
/**
* Invoke action sendDtmfTones
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns a Promise of SendDtmfTonesOperation
*/
public post(body: SendDtmfTonesPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<SendDtmfTonesOperation | undefined> {
const requestInfo = this.toPostRequestInformation(
body, requestConfiguration
);
const errorMapping = {
"4XX": createODataErrorFromDiscriminatorValue,
"5XX": createODataErrorFromDiscriminatorValue,
} as Record<string, ParsableFactory<Parsable>>;
return this.requestAdapter.sendAsync<SendDtmfTonesOperation>(requestInfo, createSendDtmfTonesOperationFromDiscriminatorValue, errorMapping);
}
/**
* Invoke action sendDtmfTones
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns a RequestInformation
*/
public toPostRequestInformation(body: SendDtmfTonesPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation {
if(!body) throw new Error("body cannot be undefined");
const requestInfo = new RequestInformation(HttpMethod.POST, this.urlTemplate, this.pathParameters);
requestInfo.configure(requestConfiguration);
requestInfo.headers.tryAdd("Accept", "application/json");
requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeSendDtmfTonesPostRequestBody);
return requestInfo;
}
}
// tslint:enable
// eslint-enable
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export class AttendanceReportsRequestBuilder extends BaseRequestBuilder<Attendan
super(pathParameters, requestAdapter, "{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/attendanceReports{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", (x, y) => new AttendanceReportsRequestBuilder(x, y));
}
/**
* Get attendanceReports from communications
* The attendance reports of an online meeting. Read-only.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns a Promise of MeetingAttendanceReportCollectionResponse
*/
Expand Down Expand Up @@ -102,7 +102,7 @@ export class AttendanceReportsRequestBuilder extends BaseRequestBuilder<Attendan
return this.requestAdapter.sendAsync<MeetingAttendanceReport>(requestInfo, createMeetingAttendanceReportFromDiscriminatorValue, errorMapping);
}
/**
* Get attendanceReports from communications
* The attendance reports of an online meeting. Read-only.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns a RequestInformation
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class MeetingAttendanceReportItemRequestBuilder extends BaseRequestBuilde
return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping);
}
/**
* Get attendanceReports from communications
* The attendance reports of an online meeting. Read-only.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns a Promise of MeetingAttendanceReport
*/
Expand Down Expand Up @@ -91,7 +91,7 @@ export class MeetingAttendanceReportItemRequestBuilder extends BaseRequestBuilde
return requestInfo;
}
/**
* Get attendanceReports from communications
* The attendance reports of an online meeting. Read-only.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns a RequestInformation
*/
Expand Down
4 changes: 2 additions & 2 deletions src/deviceAppManagement/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export class DeviceAppManagementRequestBuilder extends BaseRequestBuilder<Device
* Read properties and relationships of the deviceAppManagement object.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns a Promise of DeviceAppManagement
* @see {@link https://learn.microsoft.com/graph/api/intune-apps-deviceappmanagement-get?view=graph-rest-1.0|Find more info here}
* @see {@link https://learn.microsoft.com/graph/api/intune-onboarding-deviceappmanagement-get?view=graph-rest-1.0|Find more info here}
*/
public get(requestConfiguration?: RequestConfiguration<DeviceAppManagementRequestBuilderGetQueryParameters> | undefined) : Promise<DeviceAppManagement | undefined> {
const requestInfo = this.toGetRequestInformation(
Expand All @@ -153,7 +153,7 @@ export class DeviceAppManagementRequestBuilder extends BaseRequestBuilder<Device
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns a Promise of DeviceAppManagement
* @see {@link https://learn.microsoft.com/graph/api/intune-unlock-deviceappmanagement-update?view=graph-rest-1.0|Find more info here}
* @see {@link https://learn.microsoft.com/graph/api/intune-books-deviceappmanagement-update?view=graph-rest-1.0|Find more info here}
*/
public patch(body: DeviceAppManagement, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<DeviceAppManagement | undefined> {
const requestInfo = this.toPatchRequestInformation(
Expand Down
6 changes: 3 additions & 3 deletions src/deviceAppManagement/managedAppPolicies/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ export class ManagedAppPoliciesRequestBuilder extends BaseRequestBuilder<Managed
super(pathParameters, requestAdapter, "{+baseurl}/deviceAppManagement/managedAppPolicies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", (x, y) => new ManagedAppPoliciesRequestBuilder(x, y));
}
/**
* List properties and relationships of the managedAppPolicy objects.
* List properties and relationships of the targetedManagedAppProtection objects.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns a Promise of ManagedAppPolicyCollectionResponse
* @see {@link https://learn.microsoft.com/graph/api/intune-mam-managedapppolicy-list?view=graph-rest-1.0|Find more info here}
* @see {@link https://learn.microsoft.com/graph/api/intune-mam-targetedmanagedappprotection-list?view=graph-rest-1.0|Find more info here}
*/
public get(requestConfiguration?: RequestConfiguration<ManagedAppPoliciesRequestBuilderGetQueryParameters> | undefined) : Promise<ManagedAppPolicyCollectionResponse | undefined> {
const requestInfo = this.toGetRequestInformation(
Expand Down Expand Up @@ -103,7 +103,7 @@ export class ManagedAppPoliciesRequestBuilder extends BaseRequestBuilder<Managed
return this.requestAdapter.sendAsync<ManagedAppPolicy>(requestInfo, createManagedAppPolicyFromDiscriminatorValue, errorMapping);
}
/**
* List properties and relationships of the managedAppPolicy objects.
* List properties and relationships of the targetedManagedAppProtection objects.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns a RequestInformation
*/
Expand Down
6 changes: 3 additions & 3 deletions src/deviceAppManagement/managedAppPolicies/item/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ export class ManagedAppPolicyItemRequestBuilder extends BaseRequestBuilder<Manag
return this.requestAdapter.sendNoResponseContentAsync(requestInfo, errorMapping);
}
/**
* Read properties and relationships of the managedAppProtection object.
* Read properties and relationships of the targetedManagedAppProtection object.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns a Promise of ManagedAppPolicy
* @see {@link https://learn.microsoft.com/graph/api/intune-mam-managedappprotection-get?view=graph-rest-1.0|Find more info here}
* @see {@link https://learn.microsoft.com/graph/api/intune-mam-targetedmanagedappprotection-get?view=graph-rest-1.0|Find more info here}
*/
public get(requestConfiguration?: RequestConfiguration<ManagedAppPolicyItemRequestBuilderGetQueryParameters> | undefined) : Promise<ManagedAppPolicy | undefined> {
const requestInfo = this.toGetRequestInformation(
Expand Down Expand Up @@ -92,7 +92,7 @@ export class ManagedAppPolicyItemRequestBuilder extends BaseRequestBuilder<Manag
return requestInfo;
}
/**
* Read properties and relationships of the managedAppProtection object.
* Read properties and relationships of the targetedManagedAppProtection object.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns a RequestInformation
*/
Expand Down
Loading
Loading