Skip to content

Commit

Permalink
Update generated files with build 132033
Browse files Browse the repository at this point in the history
  • Loading branch information
Microsoft Graph DevX Tooling authored and Microsoft Graph DevX Tooling committed Jan 23, 2024
1 parent eb3651b commit 69bb52c
Show file tree
Hide file tree
Showing 279 changed files with 14,399 additions and 426 deletions.
58 changes: 51 additions & 7 deletions src/applications/item/synchronization/secrets/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,55 @@
/* tslint:disable */
/* eslint-disable */
// Generated by Microsoft Kiota
import { createSynchronizationSecretKeyStringValuePairFromDiscriminatorValue, deserializeIntoSynchronizationSecretKeyStringValuePair, serializeSynchronizationSecretKeyStringValuePair, type SynchronizationSecretKeyStringValuePair } from '../../../../models/';
import { createSynchronizationSecretKeyStringValuePairFromDiscriminatorValue, serializeSynchronizationSecretKeyStringValuePair, type SynchronizationSecretKeyStringValuePair } from '../../../../models/';
import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../../models/oDataErrors/';
import { CountRequestBuilder } from './count/';
import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions';
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 createSecretsPutRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined) {
return deserializeIntoSecretsPutRequestBody;
}
export function createSecretsPutResponseFromDiscriminatorValue(parseNode: ParseNode | undefined) {
return deserializeIntoSecretsPutResponse;
}
export function deserializeIntoSecretsPutRequestBody(secretsPutRequestBody: SecretsPutRequestBody | undefined = {} as SecretsPutRequestBody) : Record<string, (node: ParseNode) => void> {
return {
"value": n => { secretsPutRequestBody.value = n.getCollectionOfObjectValues<SynchronizationSecretKeyStringValuePair>(createSynchronizationSecretKeyStringValuePairFromDiscriminatorValue); },
}
}
export function deserializeIntoSecretsPutResponse(secretsPutResponse: SecretsPutResponse | undefined = {} as SecretsPutResponse) : Record<string, (node: ParseNode) => void> {
return {
"value": n => { secretsPutResponse.value = n.getCollectionOfObjectValues<SynchronizationSecretKeyStringValuePair>(createSynchronizationSecretKeyStringValuePairFromDiscriminatorValue); },
}
}
export interface SecretsPutRequestBody 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 value property
*/
value?: SynchronizationSecretKeyStringValuePair[];
}
export interface SecretsPutResponse 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 value property
*/
value?: SynchronizationSecretKeyStringValuePair[];
}
export function serializeSecretsPutRequestBody(writer: SerializationWriter, secretsPutRequestBody: SecretsPutRequestBody | undefined = {} as SecretsPutRequestBody) : void {
writer.writeCollectionOfObjectValues<SynchronizationSecretKeyStringValuePair>("value", secretsPutRequestBody.value, serializeSynchronizationSecretKeyStringValuePair);
writer.writeAdditionalData(secretsPutRequestBody.additionalData);
}
export function serializeSecretsPutResponse(writer: SerializationWriter, secretsPutResponse: SecretsPutResponse | undefined = {} as SecretsPutResponse) : void {
writer.writeCollectionOfObjectValues<SynchronizationSecretKeyStringValuePair>("value", secretsPutResponse.value, serializeSynchronizationSecretKeyStringValuePair);
writer.writeAdditionalData(secretsPutResponse.additionalData);
}
/**
* Builds and executes requests for operations under /applications/{application-id}/synchronization/secrets
*/
Expand All @@ -28,30 +72,30 @@ export class SecretsRequestBuilder extends BaseRequestBuilder<SecretsRequestBuil
* Update property secrets value.
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns a Promise of SynchronizationSecretKeyStringValuePair
* @returns a Promise of SecretsPutResponse
*/
public put(body: SynchronizationSecretKeyStringValuePair[], requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<SynchronizationSecretKeyStringValuePair[] | undefined> {
public put(body: SecretsPutRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<SecretsPutResponse | undefined> {
const requestInfo = this.toPutRequestInformation(
body, requestConfiguration
);
const errorMapping = {
"4XX": createODataErrorFromDiscriminatorValue,
"5XX": createODataErrorFromDiscriminatorValue,
} as Record<string, ParsableFactory<Parsable>>;
return this.requestAdapter.sendCollectionAsync<SynchronizationSecretKeyStringValuePair>(requestInfo, createSynchronizationSecretKeyStringValuePairFromDiscriminatorValue, errorMapping);
return this.requestAdapter.sendAsync<SecretsPutResponse>(requestInfo, createSecretsPutResponseFromDiscriminatorValue, errorMapping);
}
/**
* Update property secrets value.
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns a RequestInformation
*/
public toPutRequestInformation(body: SynchronizationSecretKeyStringValuePair[], requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation {
public toPutRequestInformation(body: SecretsPutRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation {
if(!body) throw new Error("body cannot be undefined");
const requestInfo = new RequestInformation(HttpMethod.PUT, this.urlTemplate, this.pathParameters);
requestInfo.configure(requestConfiguration);
requestInfo.headers.tryAdd("Accept", "application/json");
requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeSynchronizationSecretKeyStringValuePair);
requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializeSecretsPutRequestBody);
return requestInfo;
}
}
Expand Down
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.
* Retrieve a conversationMember from a chat or channel.
* @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/chat-get-members?view=graph-rest-1.0|Find more info here}
* @see {@link https://learn.microsoft.com/graph/api/conversationmember-get?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.
* Retrieve a conversationMember from a chat or channel.
* @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/chats/item/messages/item/replies/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,11 @@ export class RepliesRequestBuilder extends BaseRequestBuilder<RepliesRequestBuil
return this.requestAdapter.sendAsync<ChatMessageCollectionResponse>(requestInfo, createChatMessageCollectionResponseFromDiscriminatorValue, errorMapping);
}
/**
* Create a new reply to a chatMessage in a specified channel.
* Send a new reply to a chatMessage in a specified channel.
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns a Promise of ChatMessage
* @see {@link https://learn.microsoft.com/graph/api/channel-post-messagereply?view=graph-rest-1.0|Find more info here}
* @see {@link https://learn.microsoft.com/graph/api/chatmessage-post-replies?view=graph-rest-1.0|Find more info here}
*/
public post(body: ChatMessage, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<ChatMessage | undefined> {
const requestInfo = this.toPostRequestInformation(
Expand All @@ -122,7 +122,7 @@ export class RepliesRequestBuilder extends BaseRequestBuilder<RepliesRequestBuil
return requestInfo;
}
/**
* Create a new reply to a chatMessage in a specified channel.
* Send a new reply to a chatMessage in a specified channel.
* @param body The request body
* @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/communications/calls/item/participants/invite/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ export class InviteRequestBuilder extends BaseRequestBuilder<InviteRequestBuilde
super(pathParameters, requestAdapter, "{+baseurl}/communications/calls/{call%2Did}/participants/invite", (x, y) => new InviteRequestBuilder(x, y));
}
/**
* Invite participants to the active call. For more information about how to handle operations, see commsOperation.
* 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.
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns a Promise of InviteParticipantsOperation
* @see {@link https://learn.microsoft.com/graph/api/participant-invite?view=graph-rest-1.0|Find more info here}
* @see {@link https://learn.microsoft.com/graph/api/participant-delete?view=graph-rest-1.0|Find more info here}
*/
public post(body: InvitePostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<InviteParticipantsOperation | undefined> {
const requestInfo = this.toPostRequestInformation(
Expand All @@ -63,7 +63,7 @@ export class InviteRequestBuilder extends BaseRequestBuilder<InviteRequestBuilde
return this.requestAdapter.sendAsync<InviteParticipantsOperation>(requestInfo, createInviteParticipantsOperationFromDiscriminatorValue, errorMapping);
}
/**
* Invite participants to the active call. For more information about how to handle operations, see commsOperation.
* 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.
* @param body The request body
* @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-onboarding-deviceappmanagement-get?view=graph-rest-1.0|Find more info here}
* @see {@link https://learn.microsoft.com/graph/api/intune-apps-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-policyset-deviceappmanagement-update?view=graph-rest-1.0|Find more info here}
* @see {@link https://learn.microsoft.com/graph/api/intune-unlock-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 managedAppConfiguration objects.
* List properties and relationships of the managedAppProtection 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-managedappconfiguration-list?view=graph-rest-1.0|Find more info here}
* @see {@link https://learn.microsoft.com/graph/api/intune-mam-managedappprotection-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 managedAppConfiguration objects.
* List properties and relationships of the managedAppProtection 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 managedAppConfiguration object.
* Read properties and relationships of the managedAppProtection 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-managedappconfiguration-get?view=graph-rest-1.0|Find more info here}
* @see {@link https://learn.microsoft.com/graph/api/intune-mam-managedappprotection-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 managedAppConfiguration object.
* Read properties and relationships of the managedAppProtection object.
* @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 @@ -43,7 +43,7 @@ export class TargetAppsRequestBuilder extends BaseRequestBuilder<TargetAppsReque
* Not yet documented
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @see {@link https://learn.microsoft.com/graph/api/intune-mam-managedapppolicy-targetapps?view=graph-rest-1.0|Find more info here}
* @see {@link https://learn.microsoft.com/graph/api/intune-mam-managedappprotection-targetapps?view=graph-rest-1.0|Find more info here}
*/
public post(body: TargetAppsPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<void> {
const requestInfo = this.toPostRequestInformation(
Expand Down
6 changes: 3 additions & 3 deletions src/deviceAppManagement/managedAppRegistrations/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ export class ManagedAppRegistrationsRequestBuilder extends BaseRequestBuilder<Ma
super(pathParameters, requestAdapter, "{+baseurl}/deviceAppManagement/managedAppRegistrations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", (x, y) => new ManagedAppRegistrationsRequestBuilder(x, y));
}
/**
* List properties and relationships of the androidManagedAppRegistration objects.
* List properties and relationships of the iosManagedAppRegistration objects.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns a Promise of ManagedAppRegistrationCollectionResponse
* @see {@link https://learn.microsoft.com/graph/api/intune-mam-androidmanagedappregistration-list?view=graph-rest-1.0|Find more info here}
* @see {@link https://learn.microsoft.com/graph/api/intune-mam-iosmanagedappregistration-list?view=graph-rest-1.0|Find more info here}
*/
public get(requestConfiguration?: RequestConfiguration<ManagedAppRegistrationsRequestBuilderGetQueryParameters> | undefined) : Promise<ManagedAppRegistrationCollectionResponse | undefined> {
const requestInfo = this.toGetRequestInformation(
Expand Down Expand Up @@ -111,7 +111,7 @@ export class ManagedAppRegistrationsRequestBuilder extends BaseRequestBuilder<Ma
return this.requestAdapter.sendAsync<ManagedAppRegistration>(requestInfo, createManagedAppRegistrationFromDiscriminatorValue, errorMapping);
}
/**
* List properties and relationships of the androidManagedAppRegistration objects.
* List properties and relationships of the iosManagedAppRegistration objects.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns a RequestInformation
*/
Expand Down
Loading

0 comments on commit 69bb52c

Please sign in to comment.