Skip to content

Commit 24fec1f

Browse files
andrueastmanMicrosoft Graph DevX Tooling
and
Microsoft Graph DevX Tooling
authored
feat(generation): update request builders and models (#776)
Update generated files with build 165500 Co-authored-by: Microsoft Graph DevX Tooling <GraphTooling@service.microsoft.com>
1 parent bd43bef commit 24fec1f

File tree

114 files changed

+2486
-358
lines changed

Some content is hidden

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

114 files changed

+2486
-358
lines changed

applications/item_restore_request_builder.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func NewItemRestoreRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee26
3131
urlParams["request-raw-url"] = rawUrl
3232
return NewItemRestoreRequestBuilderInternal(urlParams, requestAdapter)
3333
}
34-
// Post restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.
34+
// Post restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.
3535
// returns a DirectoryObjectable when successful
3636
// returns a ODataError error when the service returns a 4XX or 5XX status code
3737
// [Find more info here]
@@ -54,7 +54,7 @@ func (m *ItemRestoreRequestBuilder) Post(ctx context.Context, requestConfigurati
5454
}
5555
return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DirectoryObjectable), nil
5656
}
57-
// ToPostRequestInformation restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.
57+
// ToPostRequestInformation restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.
5858
// returns a *RequestInformation when successful
5959
func (m *ItemRestoreRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemRestoreRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
6060
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)

chats/get_all_retained_messages_request_builder.go

+10-4
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
type GetAllRetainedMessagesRequestBuilder struct {
1111
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
1212
}
13-
// GetAllRetainedMessagesRequestBuilderGetQueryParameters invoke function getAllRetainedMessages
13+
// GetAllRetainedMessagesRequestBuilderGetQueryParameters get all retained messages from all chats that a user is a participant in, including one-on-one chats, group chats, and meeting chats. To learn more about how to use the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs.
1414
type GetAllRetainedMessagesRequestBuilderGetQueryParameters struct {
1515
// Include count of items
1616
Count *bool `uriparametername:"%24count"`
@@ -51,10 +51,13 @@ func NewGetAllRetainedMessagesRequestBuilder(rawUrl string, requestAdapter i2ae4
5151
urlParams["request-raw-url"] = rawUrl
5252
return NewGetAllRetainedMessagesRequestBuilderInternal(urlParams, requestAdapter)
5353
}
54-
// Get invoke function getAllRetainedMessages
54+
// Get get all retained messages from all chats that a user is a participant in, including one-on-one chats, group chats, and meeting chats. To learn more about how to use the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs.
5555
// Deprecated: This method is obsolete. Use GetAsGetAllRetainedMessagesGetResponse instead.
5656
// returns a GetAllRetainedMessagesResponseable when successful
5757
// returns a ODataError error when the service returns a 4XX or 5XX status code
58+
// [Find more info here]
59+
//
60+
// [Find more info here]: https://learn.microsoft.com/graph/api/chat-getallretainedmessages?view=graph-rest-1.0
5861
func (m *GetAllRetainedMessagesRequestBuilder) Get(ctx context.Context, requestConfiguration *GetAllRetainedMessagesRequestBuilderGetRequestConfiguration)(GetAllRetainedMessagesResponseable, error) {
5962
requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration);
6063
if err != nil {
@@ -72,9 +75,12 @@ func (m *GetAllRetainedMessagesRequestBuilder) Get(ctx context.Context, requestC
7275
}
7376
return res.(GetAllRetainedMessagesResponseable), nil
7477
}
75-
// GetAsGetAllRetainedMessagesGetResponse invoke function getAllRetainedMessages
78+
// GetAsGetAllRetainedMessagesGetResponse get all retained messages from all chats that a user is a participant in, including one-on-one chats, group chats, and meeting chats. To learn more about how to use the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs.
7679
// returns a GetAllRetainedMessagesGetResponseable when successful
7780
// returns a ODataError error when the service returns a 4XX or 5XX status code
81+
// [Find more info here]
82+
//
83+
// [Find more info here]: https://learn.microsoft.com/graph/api/chat-getallretainedmessages?view=graph-rest-1.0
7884
func (m *GetAllRetainedMessagesRequestBuilder) GetAsGetAllRetainedMessagesGetResponse(ctx context.Context, requestConfiguration *GetAllRetainedMessagesRequestBuilderGetRequestConfiguration)(GetAllRetainedMessagesGetResponseable, error) {
7985
requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration);
8086
if err != nil {
@@ -92,7 +98,7 @@ func (m *GetAllRetainedMessagesRequestBuilder) GetAsGetAllRetainedMessagesGetRes
9298
}
9399
return res.(GetAllRetainedMessagesGetResponseable), nil
94100
}
95-
// ToGetRequestInformation invoke function getAllRetainedMessages
101+
// ToGetRequestInformation get all retained messages from all chats that a user is a participant in, including one-on-one chats, group chats, and meeting chats. To learn more about how to use the Microsoft Teams export APIs to export content, see Export content with the Microsoft Teams export APIs.
96102
// returns a *RequestInformation when successful
97103
func (m *GetAllRetainedMessagesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *GetAllRetainedMessagesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
98104
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)

chats/item_members_conversation_member_item_request_builder.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ type ItemMembersConversationMemberItemRequestBuilderDeleteRequestConfiguration s
1818
// Request options
1919
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
2020
}
21-
// ItemMembersConversationMemberItemRequestBuilderGetQueryParameters retrieve a conversationMember from a chat or channel.
21+
// ItemMembersConversationMemberItemRequestBuilderGetQueryParameters retrieve a conversationMember from a chat.
2222
type ItemMembersConversationMemberItemRequestBuilderGetQueryParameters struct {
2323
// Expand related entities
2424
Expand []string `uriparametername:"%24expand"`
@@ -73,12 +73,12 @@ func (m *ItemMembersConversationMemberItemRequestBuilder) Delete(ctx context.Con
7373
}
7474
return nil
7575
}
76-
// Get retrieve a conversationMember from a chat or channel.
76+
// Get retrieve a conversationMember from a chat.
7777
// returns a ConversationMemberable when successful
7878
// returns a ODataError error when the service returns a 4XX or 5XX status code
7979
// [Find more info here]
8080
//
81-
// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-get?view=graph-rest-1.0
81+
// [Find more info here]: https://learn.microsoft.com/graph/api/chat-get-members?view=graph-rest-1.0
8282
func (m *ItemMembersConversationMemberItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMembersConversationMemberItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ConversationMemberable, error) {
8383
requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration);
8484
if err != nil {
@@ -127,7 +127,7 @@ func (m *ItemMembersConversationMemberItemRequestBuilder) ToDeleteRequestInforma
127127
requestInfo.Headers.TryAdd("Accept", "application/json")
128128
return requestInfo, nil
129129
}
130-
// ToGetRequestInformation retrieve a conversationMember from a chat or channel.
130+
// ToGetRequestInformation retrieve a conversationMember from a chat.
131131
// returns a *RequestInformation when successful
132132
func (m *ItemMembersConversationMemberItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMembersConversationMemberItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
133133
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)

chats/item_messages_request_builder.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,12 @@ func (m *ItemMessagesRequestBuilder) Get(ctx context.Context, requestConfigurati
104104
}
105105
return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ChatMessageCollectionResponseable), nil
106106
}
107-
// Post send a new chatMessage in the specified channel or a chat.
107+
// Post send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message.
108108
// returns a ChatMessageable when successful
109109
// returns a ODataError error when the service returns a 4XX or 5XX status code
110110
// [Find more info here]
111111
//
112-
// [Find more info here]: https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0
112+
// [Find more info here]: https://learn.microsoft.com/graph/api/chat-post-messages?view=graph-rest-1.0
113113
func (m *ItemMessagesRequestBuilder) Post(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ChatMessageable, requestConfiguration *ItemMessagesRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ChatMessageable, error) {
114114
requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration);
115115
if err != nil {
@@ -141,7 +141,7 @@ func (m *ItemMessagesRequestBuilder) ToGetRequestInformation(ctx context.Context
141141
requestInfo.Headers.TryAdd("Accept", "application/json")
142142
return requestInfo, nil
143143
}
144-
// ToPostRequestInformation send a new chatMessage in the specified channel or a chat.
144+
// ToPostRequestInformation send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message.
145145
// returns a *RequestInformation when successful
146146
func (m *ItemMessagesRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ChatMessageable, requestConfiguration *ItemMessagesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
147147
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)

communications/calls_item_participants_invite_request_builder.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ func NewCallsItemParticipantsInviteRequestBuilder(rawUrl string, requestAdapter
3131
urlParams["request-raw-url"] = rawUrl
3232
return NewCallsItemParticipantsInviteRequestBuilderInternal(urlParams, requestAdapter)
3333
}
34-
// Post 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.
34+
// Post invite participants to the active call. For more information about how to handle operations, see commsOperation.
3535
// returns a InviteParticipantsOperationable when successful
3636
// returns a ODataError error when the service returns a 4XX or 5XX status code
3737
// [Find more info here]
3838
//
39-
// [Find more info here]: https://learn.microsoft.com/graph/api/participant-delete?view=graph-rest-1.0
39+
// [Find more info here]: https://learn.microsoft.com/graph/api/participant-invite?view=graph-rest-1.0
4040
func (m *CallsItemParticipantsInviteRequestBuilder) Post(ctx context.Context, body CallsItemParticipantsInvitePostRequestBodyable, requestConfiguration *CallsItemParticipantsInviteRequestBuilderPostRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.InviteParticipantsOperationable, error) {
4141
requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration);
4242
if err != nil {
@@ -54,7 +54,7 @@ func (m *CallsItemParticipantsInviteRequestBuilder) Post(ctx context.Context, bo
5454
}
5555
return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.InviteParticipantsOperationable), nil
5656
}
57-
// ToPostRequestInformation 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.
57+
// ToPostRequestInformation invite participants to the active call. For more information about how to handle operations, see commsOperation.
5858
// returns a *RequestInformation when successful
5959
func (m *CallsItemParticipantsInviteRequestBuilder) ToPostRequestInformation(ctx context.Context, body CallsItemParticipantsInvitePostRequestBodyable, requestConfiguration *CallsItemParticipantsInviteRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
6060
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)

contacts/item_restore_request_builder.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func NewItemRestoreRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee26
3131
urlParams["request-raw-url"] = rawUrl
3232
return NewItemRestoreRequestBuilderInternal(urlParams, requestAdapter)
3333
}
34-
// Post restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.
34+
// Post restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.
3535
// returns a DirectoryObjectable when successful
3636
// returns a ODataError error when the service returns a 4XX or 5XX status code
3737
// [Find more info here]
@@ -54,7 +54,7 @@ func (m *ItemRestoreRequestBuilder) Post(ctx context.Context, requestConfigurati
5454
}
5555
return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.DirectoryObjectable), nil
5656
}
57-
// ToPostRequestInformation restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups cannot be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.
57+
// ToPostRequestInformation restore a recently deleted application, group, servicePrincipal, administrative unit, or user object from deleted items. If an item was accidentally deleted, you can fully restore the item. However, security groups can't be restored. Also, restoring an application doesn't restore the associated service principal automatically. You must call this API to explicitly restore the deleted service principal. A recently deleted item remains available for up to 30 days. After 30 days, the item is permanently deleted.
5858
// returns a *RequestInformation when successful
5959
func (m *ItemRestoreRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemRestoreRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
6060
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)

0 commit comments

Comments
 (0)