Skip to content

Commit

Permalink
Update generated files with build 130446
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 Dec 12, 2023
1 parent d4125bd commit 50806cb
Show file tree
Hide file tree
Showing 168 changed files with 9,109 additions and 7,794 deletions.
39 changes: 8 additions & 31 deletions src/admin/people/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
// tslint:disable
// eslint-disable
// Generated by Microsoft Kiota
import { createPeopleAdminSettingsFromDiscriminatorValue, deserializeIntoPeopleAdminSettings, serializePeopleAdminSettings, type PeopleAdminSettings } from '../../models/';
import { createPeopleAdminSettingsFromDiscriminatorValue, type PeopleAdminSettings } from '../../models/';
import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../models/oDataErrors/';
import { ProfileCardPropertiesRequestBuilder } from './profileCardProperties/';
import { PronounsRequestBuilder } from './pronouns/';
import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions';

export interface PeopleRequestBuilderGetQueryParameters {
Expand All @@ -26,6 +27,12 @@ export class PeopleRequestBuilder extends BaseRequestBuilder<PeopleRequestBuilde
public get profileCardProperties(): ProfileCardPropertiesRequestBuilder {
return new ProfileCardPropertiesRequestBuilder(this.pathParameters, this.requestAdapter);
}
/**
* Provides operations to manage the pronouns property of the microsoft.graph.peopleAdminSettings entity.
*/
public get pronouns(): PronounsRequestBuilder {
return new PronounsRequestBuilder(this.pathParameters, this.requestAdapter);
}
/**
* Instantiates a new PeopleRequestBuilder and sets the default values.
* @param pathParameters The raw url or the Url template parameters for the request.
Expand All @@ -50,22 +57,6 @@ export class PeopleRequestBuilder extends BaseRequestBuilder<PeopleRequestBuilde
} as Record<string, ParsableFactory<Parsable>>;
return this.requestAdapter.sendAsync<PeopleAdminSettings>(requestInfo, createPeopleAdminSettingsFromDiscriminatorValue, errorMapping);
}
/**
* Update the navigation property people in admin
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns a Promise of PeopleAdminSettings
*/
public patch(body: PeopleAdminSettings, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<PeopleAdminSettings | undefined> {
const requestInfo = this.toPatchRequestInformation(
body, requestConfiguration
);
const errorMapping = {
"4XX": createODataErrorFromDiscriminatorValue,
"5XX": createODataErrorFromDiscriminatorValue,
} as Record<string, ParsableFactory<Parsable>>;
return this.requestAdapter.sendAsync<PeopleAdminSettings>(requestInfo, createPeopleAdminSettingsFromDiscriminatorValue, errorMapping);
}
/**
* Retrieve the properties and relationships of a peopleAdminSettings object.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
Expand All @@ -77,20 +68,6 @@ export class PeopleRequestBuilder extends BaseRequestBuilder<PeopleRequestBuilde
requestInfo.headers.tryAdd("Accept", "application/json");
return requestInfo;
}
/**
* Update the navigation property people in admin
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns a RequestInformation
*/
public toPatchRequestInformation(body: PeopleAdminSettings, requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation {
if(!body) throw new Error("body cannot be undefined");
const requestInfo = new RequestInformation(HttpMethod.PATCH, this.urlTemplate, this.pathParameters);
requestInfo.configure(requestConfiguration);
requestInfo.headers.tryAdd("Accept", "application/json");
requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializePeopleAdminSettings);
return requestInfo;
}
}
const peopleRequestBuilderGetQueryParametersMapper: Record<string, string> = {
"expand": "%24expand",
Expand Down
94 changes: 94 additions & 0 deletions src/admin/people/pronouns/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
// tslint:disable
// eslint-disable
// Generated by Microsoft Kiota
import { createPronounsSettingsFromDiscriminatorValue, deserializeIntoPronounsSettings, serializePronounsSettings, type PronounsSettings } from '../../../models/';
import { createODataErrorFromDiscriminatorValue, deserializeIntoODataError, serializeODataError, type ODataError } from '../../../models/oDataErrors/';
import { BaseRequestBuilder, HttpMethod, RequestInformation, type Parsable, type ParsableFactory, type RequestAdapter, type RequestConfiguration, type RequestOption } from '@microsoft/kiota-abstractions';

export interface PronounsRequestBuilderGetQueryParameters {
/**
* Expand related entities
*/
expand?: string[];
/**
* Select properties to be returned
*/
select?: string[];
}
/**
* Provides operations to manage the pronouns property of the microsoft.graph.peopleAdminSettings entity.
*/
export class PronounsRequestBuilder extends BaseRequestBuilder<PronounsRequestBuilder> {
/**
* Instantiates a new PronounsRequestBuilder 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}/admin/people/pronouns{?%24select,%24expand}", (x, y) => new PronounsRequestBuilder(x, y));
}
/**
* Get the properties of the pronounsSettings resource for an organization. For more information on settings to manage pronouns support, see Manage pronouns settings for an organization using the Microsoft Graph API.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns a Promise of PronounsSettings
* @see {@link https://learn.microsoft.com/graph/api/peopleadminsettings-list-pronouns?view=graph-rest-1.0|Find more info here}
*/
public get(requestConfiguration?: RequestConfiguration<PronounsRequestBuilderGetQueryParameters> | undefined) : Promise<PronounsSettings | undefined> {
const requestInfo = this.toGetRequestInformation(
requestConfiguration
);
const errorMapping = {
"4XX": createODataErrorFromDiscriminatorValue,
"5XX": createODataErrorFromDiscriminatorValue,
} as Record<string, ParsableFactory<Parsable>>;
return this.requestAdapter.sendAsync<PronounsSettings>(requestInfo, createPronounsSettingsFromDiscriminatorValue, errorMapping);
}
/**
* Update the properties of a pronounsSettings object in an organization. For more information on settings to manage pronouns support, see Manage pronouns settings for an organization using the Microsoft Graph API.
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns a Promise of PronounsSettings
* @see {@link https://learn.microsoft.com/graph/api/pronounssettings-update?view=graph-rest-1.0|Find more info here}
*/
public patch(body: PronounsSettings, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<PronounsSettings | undefined> {
const requestInfo = this.toPatchRequestInformation(
body, requestConfiguration
);
const errorMapping = {
"4XX": createODataErrorFromDiscriminatorValue,
"5XX": createODataErrorFromDiscriminatorValue,
} as Record<string, ParsableFactory<Parsable>>;
return this.requestAdapter.sendAsync<PronounsSettings>(requestInfo, createPronounsSettingsFromDiscriminatorValue, errorMapping);
}
/**
* Get the properties of the pronounsSettings resource for an organization. For more information on settings to manage pronouns support, see Manage pronouns settings for an organization using the Microsoft Graph API.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns a RequestInformation
*/
public toGetRequestInformation(requestConfiguration?: RequestConfiguration<PronounsRequestBuilderGetQueryParameters> | undefined) : RequestInformation {
const requestInfo = new RequestInformation(HttpMethod.GET, this.urlTemplate, this.pathParameters);
requestInfo.configure(requestConfiguration, pronounsRequestBuilderGetQueryParametersMapper);
requestInfo.headers.tryAdd("Accept", "application/json");
return requestInfo;
}
/**
* Update the properties of a pronounsSettings object in an organization. For more information on settings to manage pronouns support, see Manage pronouns settings for an organization using the Microsoft Graph API.
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns a RequestInformation
*/
public toPatchRequestInformation(body: PronounsSettings, requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation {
if(!body) throw new Error("body cannot be undefined");
const requestInfo = new RequestInformation(HttpMethod.PATCH, this.urlTemplate, this.pathParameters);
requestInfo.configure(requestConfiguration);
requestInfo.headers.tryAdd("Accept", "application/json");
requestInfo.setContentFromParsable(this.requestAdapter, "application/json", body, serializePronounsSettings);
return requestInfo;
}
}
const pronounsRequestBuilderGetQueryParametersMapper: Record<string, string> = {
"expand": "%24expand",
"select": "%24select",
};
// tslint:enable
// eslint-enable
2 changes: 1 addition & 1 deletion src/applications/item/appManagementPolicies/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export class AppManagementPoliciesRequestBuilder extends BaseRequestBuilder<AppM
}
/**
* Gets an item from the github.com/microsoftgraph/msgraph-sdk-typescript/.applications.item.appManagementPolicies.item collection
* @param appManagementPolicyId Unique identifier of the item
* @param appManagementPolicyId The unique identifier of appManagementPolicy
* @returns a AppManagementPolicyItemRequestBuilder
*/
public byAppManagementPolicyId(appManagementPolicyId: string) : AppManagementPolicyItemRequestBuilder {
Expand Down
2 changes: 1 addition & 1 deletion src/applications/item/owners/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export class OwnersRequestBuilder extends BaseRequestBuilder<OwnersRequestBuilde
}
/**
* Gets an item from the github.com/microsoftgraph/msgraph-sdk-typescript/.applications.item.owners.item collection
* @param directoryObjectId Unique identifier of the item
* @param directoryObjectId The unique identifier of directoryObject
* @returns a DirectoryObjectItemRequestBuilder
*/
public byDirectoryObjectId(directoryObjectId: string) : DirectoryObjectItemRequestBuilder {
Expand Down
2 changes: 1 addition & 1 deletion src/applications/item/tokenIssuancePolicies/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export class TokenIssuancePoliciesRequestBuilder extends BaseRequestBuilder<Toke
}
/**
* Gets an item from the github.com/microsoftgraph/msgraph-sdk-typescript/.applications.item.tokenIssuancePolicies.item collection
* @param tokenIssuancePolicyId Unique identifier of the item
* @param tokenIssuancePolicyId The unique identifier of tokenIssuancePolicy
* @returns a TokenIssuancePolicyItemRequestBuilder
*/
public byTokenIssuancePolicyId(tokenIssuancePolicyId: string) : TokenIssuancePolicyItemRequestBuilder {
Expand Down
2 changes: 1 addition & 1 deletion src/applications/item/tokenLifetimePolicies/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export class TokenLifetimePoliciesRequestBuilder extends BaseRequestBuilder<Toke
}
/**
* Gets an item from the github.com/microsoftgraph/msgraph-sdk-typescript/.applications.item.tokenLifetimePolicies.item collection
* @param tokenLifetimePolicyId Unique identifier of the item
* @param tokenLifetimePolicyId The unique identifier of tokenLifetimePolicy
* @returns a TokenLifetimePolicyItemRequestBuilder
*/
public byTokenLifetimePolicyId(tokenLifetimePolicyId: string) : TokenLifetimePolicyItemRequestBuilder {
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);
}
/**
* Send a new reply to a chatMessage in a specified channel.
* Create 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/chatmessage-post-replies?view=graph-rest-1.0|Find more info here}
* @see {@link https://learn.microsoft.com/graph/api/channel-post-messagereply?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;
}
/**
* Send a new reply to a chatMessage in a specified channel.
* Create 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
4 changes: 2 additions & 2 deletions src/communications/calls/item/answer/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// tslint:disable
// eslint-disable
// Generated by Microsoft Kiota
import { createIncomingCallOptionsFromDiscriminatorValue, createMediaConfigFromDiscriminatorValue, Modality, serializeIncomingCallOptions, serializeMediaConfig, type IncomingCallOptions, type MediaConfig } from '../../../../models/';
import { createIncomingCallOptionsFromDiscriminatorValue, createMediaConfigFromDiscriminatorValue, Modality, ModalityObject, 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';

Expand Down Expand Up @@ -36,7 +36,7 @@ export function createAnswerPostRequestBodyFromDiscriminatorValue(parseNode: Par
}
export function deserializeIntoAnswerPostRequestBody(answerPostRequestBody: AnswerPostRequestBody | undefined = {} as AnswerPostRequestBody) : Record<string, (node: ParseNode) => void> {
return {
"acceptedModalities": n => { answerPostRequestBody.acceptedModalities = n.getCollectionOfEnumValues<Modality>(Modality); },
"acceptedModalities": n => { answerPostRequestBody.acceptedModalities = n.getCollectionOfEnumValues<Modality>(ModalityObject); },
"callbackUri": n => { answerPostRequestBody.callbackUri = n.getStringValue(); },
"callOptions": n => { answerPostRequestBody.callOptions = n.getObjectValue<IncomingCallOptions>(createIncomingCallOptionsFromDiscriminatorValue); },
"mediaConfig": n => { answerPostRequestBody.mediaConfig = n.getObjectValue<MediaConfig>(createMediaConfigFromDiscriminatorValue); },
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// tslint:disable
// eslint-disable
// Generated by Microsoft Kiota
import { ScreenSharingRole } from '../../../../models/';
import { ScreenSharingRole, ScreenSharingRoleObject } 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 @@ -20,7 +20,7 @@ export function createChangeScreenSharingRolePostRequestBodyFromDiscriminatorVal
}
export function deserializeIntoChangeScreenSharingRolePostRequestBody(changeScreenSharingRolePostRequestBody: ChangeScreenSharingRolePostRequestBody | undefined = {} as ChangeScreenSharingRolePostRequestBody) : Record<string, (node: ParseNode) => void> {
return {
"role": n => { changeScreenSharingRolePostRequestBody.role = n.getEnumValue<ScreenSharingRole>(ScreenSharingRole); },
"role": n => { changeScreenSharingRolePostRequestBody.role = n.getEnumValue<ScreenSharingRole>(ScreenSharingRoleObject); },
}
}
export function serializeChangeScreenSharingRolePostRequestBody(writer: SerializationWriter, changeScreenSharingRolePostRequestBody: ChangeScreenSharingRolePostRequestBody | undefined = {} as ChangeScreenSharingRolePostRequestBody) : void {
Expand Down
Loading

0 comments on commit 50806cb

Please sign in to comment.