Skip to content

Commit

Permalink
Merge pull request #804 from microsoftgraph/v1.0/pipelinebuild/171412
Browse files Browse the repository at this point in the history
Generated  models and request builders
  • Loading branch information
baywet authored Nov 25, 2024
2 parents 8ca1fb4 + 96ac533 commit 25cfdc3
Show file tree
Hide file tree
Showing 112 changed files with 2,720 additions and 423 deletions.
8 changes: 4 additions & 4 deletions applications/delta_request_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
type DeltaRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
// DeltaRequestBuilderGetQueryParameters get newly created, updated, or deleted applications without performing a full read of the entire resource collection. For details, see Using delta query.
// DeltaRequestBuilderGetQueryParameters get newly created, updated, or deleted applications without performing a full read of the entire resource collection. For more information, see Use delta query to track changes in Microsoft Graph data for details.
type DeltaRequestBuilderGetQueryParameters struct {
// Include count of items
Count *bool `uriparametername:"%24count"`
Expand Down Expand Up @@ -51,7 +51,7 @@ func NewDeltaRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb
urlParams["request-raw-url"] = rawUrl
return NewDeltaRequestBuilderInternal(urlParams, requestAdapter)
}
// Get get newly created, updated, or deleted applications without performing a full read of the entire resource collection. For details, see Using delta query.
// Get get newly created, updated, or deleted applications without performing a full read of the entire resource collection. For more information, see Use delta query to track changes in Microsoft Graph data for details.
// Deprecated: This method is obsolete. Use GetAsDeltaGetResponse instead.
// returns a DeltaResponseable when successful
// returns a ODataError error when the service returns a 4XX or 5XX status code
Expand All @@ -75,7 +75,7 @@ func (m *DeltaRequestBuilder) Get(ctx context.Context, requestConfiguration *Del
}
return res.(DeltaResponseable), nil
}
// GetAsDeltaGetResponse get newly created, updated, or deleted applications without performing a full read of the entire resource collection. For details, see Using delta query.
// GetAsDeltaGetResponse get newly created, updated, or deleted applications without performing a full read of the entire resource collection. For more information, see Use delta query to track changes in Microsoft Graph data for details.
// returns a DeltaGetResponseable when successful
// returns a ODataError error when the service returns a 4XX or 5XX status code
// [Find more info here]
Expand All @@ -98,7 +98,7 @@ func (m *DeltaRequestBuilder) GetAsDeltaGetResponse(ctx context.Context, request
}
return res.(DeltaGetResponseable), nil
}
// ToGetRequestInformation get newly created, updated, or deleted applications without performing a full read of the entire resource collection. For details, see Using delta query.
// ToGetRequestInformation get newly created, updated, or deleted applications without performing a full read of the entire resource collection. For more information, see Use delta query to track changes in Microsoft Graph data for details.
// returns a *RequestInformation when successful
func (m *DeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *DeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
Expand Down
37 changes: 37 additions & 0 deletions applicationtemplates/item_instantiate_post_request_body.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,30 @@ func (m *ItemInstantiatePostRequestBody) GetFieldDeserializers()(map[string]func
}
return nil
}
res["serviceManagementReference"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetServiceManagementReference(val)
}
return nil
}
return res
}
// GetServiceManagementReference gets the serviceManagementReference property value. The serviceManagementReference property
// returns a *string when successful
func (m *ItemInstantiatePostRequestBody) GetServiceManagementReference()(*string) {
val, err := m.GetBackingStore().Get("serviceManagementReference")
if err != nil {
panic(err)
}
if val != nil {
return val.(*string)
}
return nil
}
// Serialize serializes information the current object
func (m *ItemInstantiatePostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
{
Expand All @@ -76,6 +98,12 @@ func (m *ItemInstantiatePostRequestBody) Serialize(writer i878a80d2330e89d268963
return err
}
}
{
err := writer.WriteStringValue("serviceManagementReference", m.GetServiceManagementReference())
if err != nil {
return err
}
}
{
err := writer.WriteAdditionalData(m.GetAdditionalData())
if err != nil {
Expand All @@ -102,12 +130,21 @@ func (m *ItemInstantiatePostRequestBody) SetDisplayName(value *string)() {
panic(err)
}
}
// SetServiceManagementReference sets the serviceManagementReference property value. The serviceManagementReference property
func (m *ItemInstantiatePostRequestBody) SetServiceManagementReference(value *string)() {
err := m.GetBackingStore().Set("serviceManagementReference", value)
if err != nil {
panic(err)
}
}
type ItemInstantiatePostRequestBodyable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackedModel
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetBackingStore()(ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)
GetDisplayName()(*string)
GetServiceManagementReference()(*string)
SetBackingStore(value ie8677ce2c7e1b4c22e9c3827ecd078d41185424dd9eeb92b7d971ed2d49a392e.BackingStore)()
SetDisplayName(value *string)()
SetServiceManagementReference(value *string)()
}
4 changes: 2 additions & 2 deletions applicationtemplates/item_instantiate_request_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func NewItemInstantiateRequestBuilder(rawUrl string, requestAdapter i2ae4187f7da
urlParams["request-raw-url"] = rawUrl
return NewItemInstantiateRequestBuilderInternal(urlParams, requestAdapter)
}
// Post add an instance of an application from the Microsoft Entra application gallery into your directory. The application template with ID 8adf8e6e-67b2-4cf2-a259-e3dc5476c621 can be used to add a non-gallery app that you can configure different single-sign on (SSO) modes like SAML SSO and password-based SSO.
// Post add an instance of an application from the Microsoft Entra application gallery into your directory. For non-gallery apps, use an application template with one of the following IDs to configure different single sign-on (SSO) modes like SAML SSO and password-based SSO.
// returns a ApplicationServicePrincipalable when successful
// returns a ODataError error when the service returns a 4XX or 5XX status code
// [Find more info here]
Expand All @@ -54,7 +54,7 @@ func (m *ItemInstantiateRequestBuilder) Post(ctx context.Context, body ItemInsta
}
return res.(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ApplicationServicePrincipalable), nil
}
// ToPostRequestInformation add an instance of an application from the Microsoft Entra application gallery into your directory. The application template with ID 8adf8e6e-67b2-4cf2-a259-e3dc5476c621 can be used to add a non-gallery app that you can configure different single-sign on (SSO) modes like SAML SSO and password-based SSO.
// ToPostRequestInformation add an instance of an application from the Microsoft Entra application gallery into your directory. For non-gallery apps, use an application template with one of the following IDs to configure different single sign-on (SSO) modes like SAML SSO and password-based SSO.
// returns a *RequestInformation when successful
func (m *ItemInstantiateRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemInstantiatePostRequestBodyable, requestConfiguration *ItemInstantiateRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type ItemMembersConversationMemberItemRequestBuilderDeleteRequestConfiguration s
// Request options
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
}
// ItemMembersConversationMemberItemRequestBuilderGetQueryParameters retrieve a conversationMember from a chat.
// ItemMembersConversationMemberItemRequestBuilderGetQueryParameters retrieve a conversationMember from a chat or channel.
type ItemMembersConversationMemberItemRequestBuilderGetQueryParameters struct {
// Expand related entities
Expand []string `uriparametername:"%24expand"`
Expand Down Expand Up @@ -73,12 +73,12 @@ func (m *ItemMembersConversationMemberItemRequestBuilder) Delete(ctx context.Con
}
return nil
}
// Get retrieve a conversationMember from a chat.
// Get retrieve a conversationMember from a chat or channel.
// returns a ConversationMemberable when successful
// returns a ODataError error when the service returns a 4XX or 5XX status code
// [Find more info here]
//
// [Find more info here]: https://learn.microsoft.com/graph/api/chat-get-members?view=graph-rest-1.0
// [Find more info here]: https://learn.microsoft.com/graph/api/conversationmember-get?view=graph-rest-1.0
func (m *ItemMembersConversationMemberItemRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMembersConversationMemberItemRequestBuilderGetRequestConfiguration)(iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.ConversationMemberable, error) {
requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration);
if err != nil {
Expand Down Expand Up @@ -127,7 +127,7 @@ func (m *ItemMembersConversationMemberItemRequestBuilder) ToDeleteRequestInforma
requestInfo.Headers.TryAdd("Accept", "application/json")
return requestInfo, nil
}
// ToGetRequestInformation retrieve a conversationMember from a chat.
// ToGetRequestInformation retrieve a conversationMember from a chat or channel.
// returns a *RequestInformation when successful
func (m *ItemMembersConversationMemberItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMembersConversationMemberItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
Expand Down
4 changes: 2 additions & 2 deletions communications/calls_item_answer_request_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func NewCallsItemAnswerRequestBuilder(rawUrl string, requestAdapter i2ae4187f7da
urlParams["request-raw-url"] = rawUrl
return NewCallsItemAnswerRequestBuilderInternal(urlParams, requestAdapter)
}
// Post enable a bot to answer an incoming call. The incoming call request can be an invitation from a participant in a group call or a peer-to-peer call. If an invitation to a group call is received, the notification will contain the chatInfo and meetingInfo parameters. The bot is expected to answer, reject, or redirect the call before the call times out. The current timeout value is 15 seconds for regular scenarios, and 5 seconds for policy-based recording scenarios. This API supports the following PSTN scenarios:
// Post enable a bot to answer an incoming call. The incoming call request can be an invitation from a participant in a group call or a peer-to-peer call. If an invitation to a group call is received, the notification contains the chatInfo and meetingInfo parameters. The bot is expected to answer, reject, or redirect the call before the call times out. The current timeout value is 15 seconds for regular scenarios and 5 seconds for policy-based recording scenarios. This API supports the following PSTN scenarios:
// returns a ODataError error when the service returns a 4XX or 5XX status code
// [Find more info here]
//
Expand All @@ -49,7 +49,7 @@ func (m *CallsItemAnswerRequestBuilder) Post(ctx context.Context, body CallsItem
}
return nil
}
// ToPostRequestInformation enable a bot to answer an incoming call. The incoming call request can be an invitation from a participant in a group call or a peer-to-peer call. If an invitation to a group call is received, the notification will contain the chatInfo and meetingInfo parameters. The bot is expected to answer, reject, or redirect the call before the call times out. The current timeout value is 15 seconds for regular scenarios, and 5 seconds for policy-based recording scenarios. This API supports the following PSTN scenarios:
// ToPostRequestInformation enable a bot to answer an incoming call. The incoming call request can be an invitation from a participant in a group call or a peer-to-peer call. If an invitation to a group call is received, the notification contains the chatInfo and meetingInfo parameters. The bot is expected to answer, reject, or redirect the call before the call times out. The current timeout value is 15 seconds for regular scenarios and 5 seconds for policy-based recording scenarios. This API supports the following PSTN scenarios:
// returns a *RequestInformation when successful
func (m *CallsItemAnswerRequestBuilder) ToPostRequestInformation(ctx context.Context, body CallsItemAnswerPostRequestBodyable, requestConfiguration *CallsItemAnswerRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
Expand Down
4 changes: 2 additions & 2 deletions communications/calls_request_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func (m *CallsRequestBuilder) Get(ctx context.Context, requestConfiguration *Cal
func (m *CallsRequestBuilder) LogTeleconferenceDeviceQuality()(*CallsLogTeleconferenceDeviceQualityRequestBuilder) {
return NewCallsLogTeleconferenceDeviceQualityRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
}
// Post create call enables your bot to create a new outgoing peer-to-peer or group call, or join an existing meeting. You will need to register the calling bot and go through the list of permissions needed as mentioned below. This API supports the following PSTN scenarios:
// Post create call enables your bot to create a new outgoing peer-to-peer or group call, or join an existing meeting. You need to register the calling bot and go through the list of permissions needed. This API supports the following PSTN scenarios:
// returns a Callable when successful
// returns a ODataError error when the service returns a 4XX or 5XX status code
// [Find more info here]
Expand Down Expand Up @@ -138,7 +138,7 @@ func (m *CallsRequestBuilder) ToGetRequestInformation(ctx context.Context, reque
requestInfo.Headers.TryAdd("Accept", "application/json")
return requestInfo, nil
}
// ToPostRequestInformation create call enables your bot to create a new outgoing peer-to-peer or group call, or join an existing meeting. You will need to register the calling bot and go through the list of permissions needed as mentioned below. This API supports the following PSTN scenarios:
// ToPostRequestInformation create call enables your bot to create a new outgoing peer-to-peer or group call, or join an existing meeting. You need to register the calling bot and go through the list of permissions needed. This API supports the following PSTN scenarios:
// returns a *RequestInformation when successful
func (m *CallsRequestBuilder) ToPostRequestInformation(ctx context.Context, body iadcd81124412c61e647227ecfc4449d8bba17de0380ddda76f641a29edf2b242.Callable, requestConfiguration *CallsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
Expand Down
8 changes: 4 additions & 4 deletions contacts/delta_request_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
type DeltaRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
// DeltaRequestBuilderGetQueryParameters get newly created, updated, or deleted organizational contacts without having to perform a full read of the entire collection. See change tracking for details.
// DeltaRequestBuilderGetQueryParameters get newly created, updated, or deleted organizational contacts without having to perform a full read of the entire collection. For more information, see Use delta query to track changes in Microsoft Graph data for details.
type DeltaRequestBuilderGetQueryParameters struct {
// Include count of items
Count *bool `uriparametername:"%24count"`
Expand Down Expand Up @@ -51,7 +51,7 @@ func NewDeltaRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb
urlParams["request-raw-url"] = rawUrl
return NewDeltaRequestBuilderInternal(urlParams, requestAdapter)
}
// Get get newly created, updated, or deleted organizational contacts without having to perform a full read of the entire collection. See change tracking for details.
// Get get newly created, updated, or deleted organizational contacts without having to perform a full read of the entire collection. For more information, see Use delta query to track changes in Microsoft Graph data for details.
// Deprecated: This method is obsolete. Use GetAsDeltaGetResponse instead.
// returns a DeltaResponseable when successful
// returns a ODataError error when the service returns a 4XX or 5XX status code
Expand All @@ -75,7 +75,7 @@ func (m *DeltaRequestBuilder) Get(ctx context.Context, requestConfiguration *Del
}
return res.(DeltaResponseable), nil
}
// GetAsDeltaGetResponse get newly created, updated, or deleted organizational contacts without having to perform a full read of the entire collection. See change tracking for details.
// GetAsDeltaGetResponse get newly created, updated, or deleted organizational contacts without having to perform a full read of the entire collection. For more information, see Use delta query to track changes in Microsoft Graph data for details.
// returns a DeltaGetResponseable when successful
// returns a ODataError error when the service returns a 4XX or 5XX status code
// [Find more info here]
Expand All @@ -98,7 +98,7 @@ func (m *DeltaRequestBuilder) GetAsDeltaGetResponse(ctx context.Context, request
}
return res.(DeltaGetResponseable), nil
}
// ToGetRequestInformation get newly created, updated, or deleted organizational contacts without having to perform a full read of the entire collection. See change tracking for details.
// ToGetRequestInformation get newly created, updated, or deleted organizational contacts without having to perform a full read of the entire collection. For more information, see Use delta query to track changes in Microsoft Graph data for details.
// returns a *RequestInformation when successful
func (m *DeltaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *DeltaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
Expand Down
Loading

0 comments on commit 25cfdc3

Please sign in to comment.